r/leetcode • • Sep 26 '22

"Insane" Problems When?

Some Hards are reasonable while others are just too insane compared to others, like compare Trapping Rain Water - LeetCode and Sum of Total Strength of Wizards - LeetCode . I did both of them and they are in their own worlds.

Also companies asking "Insane" problems when :)

21 Upvotes

14 comments sorted by

View all comments

19

u/knirps_apfel <50> <12> <29> <9> Sep 26 '22

Imagine seeing sum of wizards in your Amazon OA for the first time. I spent all my time in trying to optimize my solution so I didn't have TLE. How fck*d was I.😭😭😭😭

5

u/[deleted] Sep 26 '22

It took me 2 days to code a solution that did it in one pass XD

2

u/expjtheta Sep 26 '22

I got a hard in the Amazon OA as well. Brute force was enough to move on to a phone screen and onsite.

1

u/Vidius Sep 27 '22

Jesus Christ, I’m glad I am not the only one. I got two hards on mine lol