Code not passing all test cases

Revision en1, by ss_96, 2017-09-17 21:24:59

I was trying to solve this question:question link

My solution:solution

The problem is that it does not pass all the test cases.

Please suggest what case am I missing to handle in my code.

Thanks!

Tags #c++, #algorithms, c++ stl

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English ss_96 2017-09-17 21:24:59 475 Initial revision (published)