InterviewDB Experience

Decode Password: Reverse a Multi-Step Encoding Scheme to Recover the Original Password

Interview Experience

Problem A password was encoded with the following steps applied in order: Reverse the string. Replace each letter with the letter k positions forward in the alphabet (wrapping: z+1=a). k is given. Swap each pair of adjacent characters (swap index 0-1, 2-3, etc.; if odd length, last char stays). Given the encoded string and k, return the original password. Follow-ups Walk through each decode step in reverse order. What is the inverse of each operation? What edge cases matter: k=0, k=26, an empty…

Full Details

🔒

Unlock all Instacart questions

Full insider details, leaked discussions, and candidate experiences.

or every company, $100/year →

About This Question

This is a candidate experience report from a instacart interview during the phone round.

It covers the following topics: Coding, Phone, Onsite, Strings .