i was doing this question in leetcode its not passing all testcase–>
(similar to cb numbers)
code–>
Doubt in comparator function in strings
thx is it possible to this uisng character array or its basically a stl question
so ‘0’ was not added in my string array , and if s[0]==‘0’ then total string itself becomes zero right
yeah correct.
yeah, we can solve almost every problem without stl.
we use stl becuase it makes implementation easy
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.