vikas07's blog

By vikas07, history, 5 years ago, In English

There is a string s and an integer n. If n contiguous characters in the string are same, delete them. Display the final result. Ex- aabcccbb and n=3. First triple c is removed. Then aabbb remains and then triple b is deleted. In the end, the result is aa.

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it