Compress a string aaabbbcc into a3b3c2 in java || amazon Coding Interview Question

preview_player
Показать описание
#amazoninterviewpreparation
#amazoninterview
#algorithmart
Рекомендации по теме
Комментарии
Автор

Hashmap doesn't maintain the sequence. How we will guarantee that result will print in the same insertion sequence?

varunkashyap
Автор

What will be the expected output for this
aaabbbcca-> a3b3c2a1 or a4b3c2

jagansubramanian