Tech IndustrySep 8, 2019
eBayKaNaaaaa

What do you do when you're stuck on an LC problem?

Currently I'm trying to fight through it but wasted alot of time. Is it better to look up the answer? I'm worried if I look up the answer I'll never learn anything? Do you time box your attempts at solving something? My current one is an LC hard.

Add a comment
Amazon newAz Sep 8, 2019

Make a coffee then start crying

Microsoft hontou Sep 8, 2019

I’m stubborn and spend a few days thinking about it before caving in. It’s probably why I’ve only done 40 or so leetcode questions so far

Bloomberg F.U. money Sep 8, 2019

Competitive programmers and leetcode pros recommend against that approach.

New
bytec Sep 8, 2019

I feel like you’ll only get so much out of banging your head against a problem. What I like to do if possible is solve some easier related problems, take a break, then try to solve the hard problem again. A lot of the time I’ll have a Jimmy Neutron brain blast and solve it that time around.

Athenahealth JuliaT Sep 8, 2019

That helps indeed!

Spotify bubbedty Sep 8, 2019

+1 for the Jimmy Neutron reference

Athenahealth JuliaT Sep 8, 2019

I spend about 20 to 30 mins. And look solutions if it doesn't work for me.

Bloomberg F.U. money Sep 8, 2019

☝🏻 That’s the right thing to do IMO. People who spend days on problems they can’t solve can’t take the ego bruise and make their situation even worse. You do learn how not to solve a problem that way, but that’s all you learn and that still doesn’t get people jobs.

Yelp fGGg31 Sep 8, 2019

Whats the question?

Google wFatDuck2 Sep 8, 2019

Fap

Amazon cbaz123 Sep 8, 2019

Get back to work until you get an a new idea :P

Bloomberg F.U. money Sep 10, 2019

When you’re stuck, solve it and move on to the next one. 💁🏼‍♂️

eBay KaNaaaaa OP Sep 11, 2019

That's brilliant. I never thought of that