Why is this approach failing?

Правка en1, от Flvx, 2023-09-13 16:39:40

This solution fails the second testcase and I don't understand why since the logic that I have used here seems to be fine. Any help would be appreciated.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский Flvx 2023-09-13 16:39:40 242 Initial revision (published)