Frage im Vorstellungsgespräch bei Meta

String compression: Input string: "aaabbbcc" Ouput string: "a3b3c2" . Constraint: Do it inplace. No extra memory

Antworten zu Vorstellungsgespräch

Anonym

6. Jän. 2016

what is if the inpute is "abc"?

Anonym

10. Jän. 2016

if the input is abc then we need linear extra memory