Ad
  • Default User Avatar

    Anyone trying to solve using c++, add a terminating '\0' character at the end of char pointer which you will return from function.
    Also the char pointers should now be replaced by string. I wasted so much time when my logic was ok, but using pointers wasted a lot of time.

  • Default User Avatar

    Hey i am confused between two straight flush ("JS 9S TS KS QS", "JD AD TD KD QD").
    What will be the result of this? Who will win first or second?

  • Default User Avatar

    These knapsacks without memoization has more time complexity than just generating all the combinations