Monday, December 9, 2013

[Amazon]: Decode a run length encoded String

Decode a run length encoded string. Don't use extra space. Time Complexity- O(n)
Input String: A3B4C
Output: AAABBBBC

No comments:

Post a Comment