One simple test case that OJ fails to solve.


  • 0
    E

    Seems that OJ uses DP to solve the problem. But DP fails when target is HUGE. like this test case:
    [2147483647]
    2147483647
    I think it would be better to mention that target is relatively small.

    (Just little upset when finding out my solution based on combination only beats 1.8%. SO ANNOYING....)


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.