This was a coding question, I had to give the algorithm, after he was convinced, I had to write the working code: Given a string like “aaabbbdddaccc” compress it IN PLACE . (Basically, run length encoding, but elements that occur once you do not have to mention their count, as in abc remains abc )
Be the first one to answer
Add answer anonymously...
Top Microsoft Corporation interview questions & answers
Top HR questions asked in Microsoft Corporation
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app