Блог пользователя idonthatephy

Автор idonthatephy, история, 2 года назад, По-английски

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?

  • Проголосовать: нравится
  • +10
  • Проголосовать: не нравится

»
2 года назад, # |
  Проголосовать: нравится +1 Проголосовать: не нравится

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