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

Правка en1, от 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.

Теги #2 pointers

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский alt59 2021-03-11 18:47:27 397 Initial revision (published)