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

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

I came across this problem on hacker earth contest. I was only able to think of a solution in O(n^2) time complexity. Can anyone share their approach with better time complexity.

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