can anyone help me optimize and crct the code!

Revision en1, by shreyanks, 2024-08-04 14:22:05

I am currently going thru pashka '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)