Comment by _alternator_

Comment by _alternator_ 12 hours ago

1 reply

This. Literally every problem in NP can be cast as a constraint problem. The question of whether a solver is the right solution varies a lot depending on the application, and in an interview , it’s almost by definition not the right solution.

They can also be dreadfully slow (and typically are) compared to just a simple dynamic program.

jojomodding 5 hours ago

LeetCode problems typically are in P. The challenge is finding out why.