Goldman Sachs Interview Question

Sequencing an input string based on consecutive letters without using collections. Eg: input: aabbbbcccdaaa output: a2b4c3d1a3

Interview Answer

Anonymous

Jul 2, 2021

Coded the answer in java but using a notepad for an IDE resulted in a bad coding experience and I ended up misspelling classes and methods causing delayed completion time.