Why is this approach failing?

Revision en1, by 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.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Flvx 2023-09-13 16:39:40 242 Initial revision (published)