News for hackers. Stuff that matters.
Re:Many Hard LeetCode Problems Are Easy Constraint Problems by deepsun on Saturday September 13, 2025 @02:12AM (#45229738)
I did quite a bit of competitive programming in school, and pretty much all the world-class competitive problems are reduced to well-known algorithms. It's quite hard to come up with something new (not proven to be unsolvable for its constraints). I believe problem setters just try to disguise a known algorithm as much as possible.

Then comes the ability/memorization to actually code it, e.g. if I knew it needs coding red-black tree I wouldn't even start.

Re:Many Hard LeetCode Problems Are Easy Constraint Problems by notemap on Saturday September 13, 2025 @01:15PM (#45233672)
Solve one of my problems :)

https://www.acmicpc.net/problem/33797

Try with an LLM too :)

Re:Many Hard LeetCode Problems Are Easy Constraint Problems by deepsun on Sunday September 14, 2025 @04:09PM (#45242831)
403 Forbidden :(