testcase 0 showing runtime error
plz point out mistake in my code
Problem unlock: testcase 0 showing runtime error
@Piyush-Pandey-2580479718941914
Include a statement !s.empty() with condition of i<k. So while loop becomes while(!s.empty()&& i<k)
Then your code would work just fine.
hope it helps.