News for hackers. Stuff that matters.
Re:Many Hard LeetCode Problems Are Easy Constraint Problems by didibus on Friday September 12, 2025 @06:30PM (#45227509)
> Leetcode mostly relies on memorizing patterns

Math is like that as well though. It's about learning all the prior axioms, laws, knowing allowed simplifications, and so on.

Re:Many Hard LeetCode Problems Are Easy Constraint Problems by aeonik on Friday September 12, 2025 @07:42PM (#45227960)
In the same way that writing and performing a new song is "just memorizing prior patterns and law"

or that writing a new book is the same.

I.e. it's not about that. Like sure it helps to have a base set of shared language, knowledge, and symbols, but math is so much more than just that.

Re:Many Hard LeetCode Problems Are Easy Constraint Problems by Jensson on Saturday September 13, 2025 @03:53AM (#45230181)
Programming competition problems are also much more than just memorizing patterns, that was the point of his post.
Re:Many Hard LeetCode Problems Are Easy Constraint Problems by catlifeonmars on Friday September 12, 2025 @11:42PM (#45229127)
In math, you usually need to prove said simplifications. So just memorizing is not enough. As you get more advanced, you then start swapping out axioms.
Re:Many Hard LeetCode Problems Are Easy Constraint Problems by Jensson on Saturday September 13, 2025 @03:54AM (#45230184)
In programming the simplifications has to be correct even if you don't prove them, and being correct isn't that easy.
Re:Many Hard LeetCode Problems Are Easy Constraint Problems by catlifeonmars on Saturday September 13, 2025 @12:01PM (#45233144)
Pedantic: how do you know something is correct without proving it? How do you know you have covered all possible edge cases? /Pedantic

In all seriousness, the intersection between correctness and project delivery is where engineering sits. Solutions must be good enough, correct enough, and cheap enough to fit the use case, but ideally no more than that.

Re:Many Hard LeetCode Problems Are Easy Constraint Problems by tomatocracy on Sunday September 14, 2025 @04:29AM (#45238410)
I think you've missed a big part of maths - yes knowing those things is necessary. But then you also need to be able to see how a difficult or complex problem could be restated or broken down in a different way which lets you use those techniques. Sometimes this is something as trivial as using the right notation or coordinates, sometimes it's much more involved.