mayur's Avatar

mayur

@mayurbhoi.com.bsky.social

computer nerd guy

24 Followers  |  35 Following  |  25 Posts  |  Joined: 08.09.2024  |  1.8257

Latest posts by mayurbhoi.com on Bluesky

Post image

spending the weekend fixing breaking changes introduced by tailwind v4

25.01.2025 13:48 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

โ€œbest way to learn a new topic is to write it downโ€ ๐Ÿฅธ

23.12.2024 14:34 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
Advent of Code '24 Some mind-bending problems from AOC'24

today's #AdventOfCode problem was a NP-hard problem in graph theory which means it warrants an explainer

so i wrote one:
www.mayurbhoi.com/posts/advent...

23.12.2024 11:36 โ€” ๐Ÿ‘ 3    ๐Ÿ” 1    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Post image

shaky camera and shaky concepts of grids. didnโ€™t want to miss #AdventOfCode but i wish i did because almost reached the breaking point today

i have a sneaking suspicion i might be a noob :(

15.12.2024 06:12 โ€” ๐Ÿ‘ 4    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Screenshot of a comment block in a file that reads the following:

โ€œHello, before you use this program for your inputs, I want you
to read this disclaimer because this solution may not work for
your input or may provide multiple possible answers.

Why does this happen? The ask for P2 is really vague, and there are
several ways in which the answer can be determined. Here, we generate
the grid after every second, mark the robots, and count the connected
components. The logic behind this heuristic is that when a shape is
formed (e.g., a Christmas tree), the number of connected components sees
a significant drop. This is because, in other cases, the robots are spread
fairly evenly, thus increasing the number of connected components.

However, the answer here completely depends on the values you choose for
various thresholds.

CHECK_THRESHOLD: The number of frames to check before stopping the search.
The check threshold is a random number I chose that felt big enough to
contain my answer. It is possible that for you, the answer might be larger
than this limit, in which case you will not get any frame number.

CONNECTED_COMPONENT_LIMIT: The limit below which you might get a xmas tree.
This, again, is a value I came up with using trial and error with my input
If this value is too high, you'll get multiple frame numbers, any of which can
be the answer. Set it too low, and you won't get any frame number. Choose
this according to your input.

I feel this is the best solution to this puzzle. I have seen some people go
through thousands of frames and get the answer when they see a Christmas tree.
Unfortunately, I don't have that level of patience.โ€

Screenshot of a comment block in a file that reads the following: โ€œHello, before you use this program for your inputs, I want you to read this disclaimer because this solution may not work for your input or may provide multiple possible answers. Why does this happen? The ask for P2 is really vague, and there are several ways in which the answer can be determined. Here, we generate the grid after every second, mark the robots, and count the connected components. The logic behind this heuristic is that when a shape is formed (e.g., a Christmas tree), the number of connected components sees a significant drop. This is because, in other cases, the robots are spread fairly evenly, thus increasing the number of connected components. However, the answer here completely depends on the values you choose for various thresholds. CHECK_THRESHOLD: The number of frames to check before stopping the search. The check threshold is a random number I chose that felt big enough to contain my answer. It is possible that for you, the answer might be larger than this limit, in which case you will not get any frame number. CONNECTED_COMPONENT_LIMIT: The limit below which you might get a xmas tree. This, again, is a value I came up with using trial and error with my input If this value is too high, you'll get multiple frame numbers, any of which can be the answer. Set it too low, and you won't get any frame number. Choose this according to your input. I feel this is the best solution to this puzzle. I have seen some people go through thousands of frames and get the answer when they see a Christmas tree. Unfortunately, I don't have that level of patience.โ€

so unhappy with todayโ€™s puzzle that i yapped for 30 lines #AdventOfCode

github.com/Mayur57/AOC/...

14.12.2024 10:57 โ€” ๐Ÿ‘ 5    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

check vitamin d and b12

13.12.2024 19:37 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

need to shift fav xeeters here

13.12.2024 19:36 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

kya bhai myntra me jara

12.12.2024 06:17 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Day 11 - Advent of Code 2024

I've completed "Plutonian Pebbles" - Day 11 - Advent of Code 2024 #AdventOfCode
adventofcode.com/2024/day/11
โ€”
part 2 made me try out all the optimisation tricks i know ๐Ÿฅฒ

11.12.2024 06:35 โ€” ๐Ÿ‘ 3    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

did you do something like
console.log = โ€œlolโ€

07.12.2024 07:00 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Day 7 - Advent of Code 2024

I've completed "Bridge Repair" - Day 7 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/7

07.12.2024 06:31 โ€” ๐Ÿ‘ 3    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

I've completed "Guard Gallivant" - Day 6 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/6

06.12.2024 06:56 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

nice one bro

05.12.2024 04:42 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

incredible things happening in gukesh vs ding match

03.12.2024 12:52 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Day 3 - Advent of Code 2024

I've completed "Mull It Over" - Day 3 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/3

My submission: github.com/Mayur57/AOC/...

03.12.2024 05:53 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

every morning 10:30am ๐Ÿ’ช๐Ÿผ

02.12.2024 17:32 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

resisting a strong urge to have tiramisu

02.12.2024 17:30 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

crazy bro post on github

02.12.2024 15:38 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

I need an entire Advent of Code that's just day 1s, because 2024 has beat me up so much that's about all I have the heart for.

01.12.2024 05:37 โ€” ๐Ÿ‘ 53    ๐Ÿ” 3    ๐Ÿ’ฌ 3    ๐Ÿ“Œ 0

lol this is so me

02.12.2024 06:30 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Post image

there is a reason mayurbhoi.com is my main domain

02.12.2024 06:25 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
GitHub - Mayur57/AOC: Solutions of Advent of Code Solutions of Advent of Code. Contribute to Mayur57/AOC development by creating an account on GitHub.

i missed advent of code so much. back in business. so much positivity in the community too

tracking my solutions here: github.com/mayur57/AOC

01.12.2024 16:26 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
AI & My Existential Crisis Generative AI is also generating anxiety

please read

www.mayurbhoi.com/posts/ai

30.11.2024 16:42 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

my pfp is literally an original character i created for myself back in my graphic design era of 2020. a cute ghost.

feels good to look back.

29.11.2024 16:00 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

SAMEE i was packing a few days ago and it was so melancholic even though i am moving to a better place

29.11.2024 15:56 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

is this twitter

31.10.2024 06:01 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

@mayurbhoi.com is following 20 prominent accounts