Can anyone tell why this 2 pointer approach is not working ?

Revision en1, by alt59, 2021-03-11 18:47:27

problem : https://codeforces.com/contest/1354/problem/B

solution1 (failed) : https://codeforces.com/contest/1354/submission/109710078 solution2 (passed) : https://codeforces.com/contest/1354/submission/109540870

I am unable to understand why solution1 failed and solution2 passed, unable to see the test case on which it failed.

Tags #2 pointers

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English alt59 2021-03-11 18:47:27 397 Initial revision (published)