Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I can see the solution for those 6 numbers {−2, −3, 15, 14, 7, −10}

The program should be able to work on any set given by the user.

the more numbers you add, the longer it takes to solve and p=np is that it should get all the answers instantly?

The more numbers there are, the longer it takes. If and only if P=NP, there is a solution which always finds the answer in polynomial time.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: