Re:Many Hard LeetCode Problems Are Easy Constraint Problems
by shmerl on Friday September 12, 2025 @04:44PM
(#45226560)
More exactly, you can't invent algorithms on a spot which took who knows how many years for others to invent. I.e. the question ends up being more if you know about a specific algorithm, which results in "invent it if you don't know about it". It's absolutely silly to test for ability to invent one on the spot, so it's a pretty pointless interview question really.
[ Parent
| on HN ]
Re:Many Hard LeetCode Problems Are Easy Constraint Problems
by IshKebab on Friday September 12, 2025 @05:31PM
(#45227006)
You can for simple algorithms. It's just really easy for interviewers to overestimate how simple an algorithm is when they have been told the answer.
Re:Many Hard LeetCode Problems Are Easy Constraint Problems
by shmerl on Friday September 12, 2025 @05:32PM
(#45227017)
Yeah, that's exactly the point. These kind of algorithms are far from easy to invent even if they look simple once they are known.
Re:Many Hard LeetCode Problems Are Easy Constraint Problems
by mcmoor on Saturday September 13, 2025 @12:54AM
(#45229412)
I hate when it asks for a memorized specific problem, but most of the hard ones I found needs a clever twist of a well-known algorithm, and I still struggle at that too for hard LC.