can anyone help me optimize and crct the code!

Revision en2, by shreyanks, 2024-08-04 14:22:48

[submission:https://codeforces.net/edu/course/2/lesson/9/2/practice/status#:~:text=0%C2%A0KB-,274306659,-Aug/04/2024]I am currently going thru [user:pashka,2024-08-04] 's two pointers course at edu section i was struck at G of set 2 and i was trying to solve in O(n) but i couldnt pass the test case can anyone help me learn what my mistake was [submission:274306659] thank you....

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en5 English shreyanks 2024-08-04 14:25:08 1 Tiny change: '274306659)and i was ' -> '274306659) and i was '
en4 English shreyanks 2024-08-04 14:24:49 112
en3 English shreyanks 2024-08-04 14:23:39 140
en2 English shreyanks 2024-08-04 14:22:48 117
en1 English shreyanks 2024-08-04 14:22:05 317 Initial revision (published)