Amazon Interview Questions + Coding Solutions – codewindow.in

Hot Topics Amazon Solution Technical Round Question 1 Given a string “aaabbbcc”, compress it, = “a3b3c2”. Given that output string’s length is always smaller than input string, you have do it in place. No extra space Answer #include <iostream> using namespace std; void compress(string str) { int len = str.length(); for (int i = 0; […]

Amazon Interview Questions + Coding Solutions – codewindow.in Read More »