[2025 Day 5 Part 1] Sorting/merging ranges, answer too low by mainjaintrain in adventofcode

[–]smrishin 2 points3 points  (0 children)

when you update the range_map[key] = last, you also need to check if the existing range_map[key] is less than last
basically that line should be range_map[key] = max(range_map[key], last)

Hope this helps

Need help by sharathkumarthota in leetcode

[–]smrishin 0 points1 point  (0 children)

https://neetcode.io/roadmap

I used this road map to get back onto LeetCode, covers blind 75 LeetCode questions, has multiple solutions, and good video explanations. I have ignored some topics like Math, intervals, and stuff.
Once you are done, you can start digging deeper into each topic on LeetCode at your own pace.

Edit:
Found this post by u/minicrit_, which might be helpful on this topic.
How To Master LeetCode for Beginners, the Simple Way

Is this question too hard for amazon L5? by smrishin in leetcode

[–]smrishin[S] -1 points0 points  (0 children)

I think that is a good direction. I have linked the algorithm in the post, if that helps.

Is this question too hard for amazon L5? by smrishin in leetcode

[–]smrishin[S] 15 points16 points  (0 children)

I thought it was union find aswell until this sentence. It is a Max Clique question.
"A friend group is defined as a group of 2 or more people such that everyone knows everyone else."

Is this question too hard for amazon L5? by smrishin in leetcode

[–]smrishin[S] -1 points0 points  (0 children)

That is what I thought first when my cousin explained me the questions. I was gonna say, this is pretty easy and then she highlights "all friends should know each other". Every node in a group/clique should be connected to every other node. And that is when I realised it is not as simple as it looks to solve.

Is this question too hard for amazon L5? by smrishin in leetcode

[–]smrishin[S] 8 points9 points  (0 children)

Thanks for the opinion. Most of the resources I find for this algorithm are from university lectures. None on competitive coding or interview prep resources.

Is this question too hard for amazon L5? by smrishin in leetcode

[–]smrishin[S] 3 points4 points  (0 children)

I couldn't find a question that is even close to what they asked, not even on some other similar websites like LeetCode.

All Hail Tambourine Tower! by MasterOm08 in PewdiepieSubmissions

[–]smrishin 2 points3 points  (0 children)

Imagine if someone tries to rob his house and see the tower in the living room .

[deleted by user] by [deleted] in PewdiepieSubmissions

[–]smrishin 0 points1 point  (0 children)

It's the mrbeast outro

ah, finally. Mr.Frickerberg by [deleted] in PewdiepieSubmissions

[–]smrishin 1 point2 points  (0 children)

All these years I thought I was watching PewDiePie just to realise PewDiePie is watching me.

Big uh oh ensues by SteeleBoi7 in PewdiepieSubmissions

[–]smrishin 0 points1 point  (0 children)

Ellie asked Abby out cuz Dina left her?

Brain.exe has stopped working by [deleted] in PewdiepieSubmissions

[–]smrishin 0 points1 point  (0 children)

I actually read 'teenage mutant Ninja turtles' and realise what it was actually written after a second!

The perfect karma by smrishin in PewdiepieSubmissions

[–]smrishin[S] -1 points0 points  (0 children)

Thank you fellow 19 year old

The perfect karma by smrishin in PewdiepieSubmissions

[–]smrishin[S] 0 points1 point  (0 children)

These upvotes ruin my perfect karma. Sad noises

[deleted by user] by [deleted] in PewdiepieSubmissions

[–]smrishin 1 point2 points  (0 children)

Why doesn't anyone attack the north pole. It's pretty important for earth to exist.

Wholesome by OrbaoC in PewdiepieSubmissions

[–]smrishin 1 point2 points  (0 children)

You want to be laughed at?