Precision error or logical error?

Revision en1, by MohamedHassan499, 2020-02-19 13:07:04

I tried so solve this problem using two pointer technique but I'm getting some precision error in the last test, Is it a precision error, or there's something my code isn't handling, or my logic from the very beginning is wrong?

And thank you for your time.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English MohamedHassan499 2020-02-19 13:07:42 72
en1 English MohamedHassan499 2020-02-19 13:07:04 342 Initial revision (published)