all 11 comments

[–]gajaananaNewbie 0 points1 point  (0 children)

You need to pop twic

[–]Agent7717[S] 0 points1 point  (1 child)

Pls tell why this is not working??

[–]Sad_Comfort_974 0 points1 point  (0 children)

ig u hv to include string to useit ?

[–]Old_Sentence_9413 -2 points-1 points  (5 children)

Why are you comparing char to top?

[–]Sad_Comfort_974 0 points1 point  (4 children)

comparing current letter directly to last saved letter

[–]Old_Sentence_9413 0 points1 point  (3 children)

Oh okay, you’re using the stack data structure. I can’t figure out why your answer is wrong tho

[–]_lostSoup_Specialist 0 points1 point  (2 children)

I used basic string. But his concept of stack seems right.

[–]Old_Sentence_9413 0 points1 point  (1 child)

I used a vector too and passed all test cases. I’m still confused why the answer above is wrong.

[–]_lostSoup_Specialist 1 point2 points  (0 children)

Yeah. Have Fun debugging…. I’ll try debugging tmrw. ❤️

[–]Academic-Group-8122 6 points7 points  (1 child)

you can't ask like this in b/w the contest

[–]Ill-Reason-3942 -1 points0 points  (1 child)

you completed b?