Even solving an NP-complete problem, which is easier in general than an NP-hard problem, would do it!
https://en.wikipedia.org/wiki/NP-hardness