Excellent explanation. Very clear and to the point.
@mandy13392 жыл бұрын
Finally understood this problem
@ANKURSingh-yl2lj3 жыл бұрын
wow very easily explained!
@tejasj54852 жыл бұрын
its just easy , just do print(set(string))
@pallavibansode65883 жыл бұрын
Good work...everything is understood 🙌
@insane25392 жыл бұрын
what is the time and space complexity?
@shashanksah39153 жыл бұрын
thank you for the explanation. It really helps
@neslierivera91173 жыл бұрын
Paano po pag nakalock tpos nag do doble ang letter paano un
@ImranKhan-mc6vf3 жыл бұрын
Your logic would fail for 'bcadbc'. According to your logic you compare with prev visited character. So, b goes in, then c is greater so c goes too, then you check 'a' that is less than c, so in result [b, a], similarly d goes in too. Thus result is [b,a,d,c] instead of [a,d,b,c]. Let me know what am I missing?
@learncoderepeat2 жыл бұрын
You have to remove the previous element in a loop, not just one time. Check the explanation from 14:30 - 15:15