Hacker News new | ask | show | jobs
by Google234 2019 days ago
Leetcode requires you to know all the common algorithms and data structures. Every software engineer should know these
1 comments

LOL. The data structures I can see, but what algorithms are considered standard will vary from domain to domain. A good engineer can look these up. I dare you to find an engineer that knows ALL of the LeetCode perfectly on the first try.
I don’t get the “LOL” from you but ok. Anyway, the fundamentals are in textbooks for a reason, they aren’t domain specific. To answer your other question, I could definitely solve most leetcode and so could my colleagues. Maybe not perfectly optimally first try for all but who cares about that.
"Maybe not perfectly optimally first try for all but who cares about that."

That's the purpose of LeetCode. If you're saying you can't solve all of them, what happens when you get one of the ones you don't know?

Then you keep interviewing until you get the ones you know. There's luck involved with everything. Luck in the sense of the right time at the right place.
This is a very unserious reply. You have a bad habit of misconstruing my words into a straw man
Perhaps you're not using the correct words.
Sorry. Yeah, I probably misread wha you wrote or read some other comment. Anyway, to answer your earlier question, good interviews are a conversation and allow you to demonstrate your knowledge and problem solving abilities. It’s ok to start with a suboptimal solution to a problem and iterate. If you already know the perfect solution to one problem then a good interview will move on to another problem so it’s not that useful.
This is a very unserious reply.