lainchan / λ

What's wrong with this

Tyrell Wellick · 2022-04-08 20:20
>Do a simple leetcode exercise >"well, it works alright but it's not fast enough lol" >Check the solutions >In order for it to be accepted it has to be optimized for that SPECIFIC problem, instead of using a logical solution Is there a better site?
Joey · 2022-04-08 20:43
>>30689 Just assume it works and move on. No need to waste your time if you accepted your solution works.
Iverson · 2022-04-08 23:34
The point is to get a better than brute force solution. It is very easy to find a brute force solution to any of the exercises after you have done a few.