idonthatephy's blog

By idonthatephy, history, 2 years ago, In English

This is the problem My sol is-Runtime error in test case 4 can someone look at the code and tell me where the runtime error could have come from?

  • Vote: I like it
  • +10
  • Vote: I do not like it

»
2 years ago, # |
  Vote: I like it +1 Vote: I do not like it

Comparator must return false if both elements are same. But your comp returns true. Change that and it will get accepted.