What is included in Part 1: Coding Assessment?
At Amazon, it’s important that SDEs demonstrate both technical skills and our Leadership Principles. Part 1 of the Online Assessment includes a Coding Assessment.
The Coding Assessment asks you to solve two coding problems. You will have the choice of coding in C, C++, C#, Go, Java, JavaScript, Kotlin, Objective C, Python, Ruby, Scala, or Swift.
The Coding Assessment takes approximately 70 minutes to complete.
A simple cipher is built on the alphabet wheel, which has uppercase English letters ('A'-'Z') written on it. Given an encrypted string consisting of English letters ('A'-'Z') only, decrypt the string by replacing each character with the kth character away on the wheel in the counter-clockwise direction. Counter-clockwise is the opposite direction in which the hands on a clock usually move.
Example: encrypted = 'VTAOG' k = 2
Looking back 2 from 'V' returns 'T', from 'T' returns 'R', and so on. The decrypted string is 'TRYME'.
Function Description
Complete the simpleCipher function in the editor below.
simpleCipher has the following parameter(s):
encrypted: a stringk: an integerReturns:
Constraints
encrypted.length ≤ 105k ≤ 105encrypted[i] ∈ ascii['A'-'Z']Input Format
For Custom Testing:
Sample Case 0 Sample Input: STDIN Function CDEF 2 encrypted = 'CDEF' k = 2
Sample Output: ABCD
Explanation: Each character is replaced by the character k = 2 positions away in the counter-clockwise direction. 'C' → 'A', 'D' → 'B', and so on. The decrypted string is "ABCD".
Sample Case 1 Sample Input: STDIN Function DGEO 3 encrypted = 'DGEO' k = 3
Sample Output: ADBL
Explanation: Each character is replaced by the character k = 3 positions away in the counter-clockwise direction. 'D' → 'A', 'G' → 'D', and so on. The decrypted string is 'ADBL'.
Input (stdin): 1 VGXGPU 2
Your Output (stdout): no output
Expected Output: 1 JULUDI
The following metrics were computed from 56 interview experiences for the Amazon Software Engineer role in Ireland.
Amazon's interview process for their Software Engineer roles in Ireland is extremely selective, failing the vast majority of engineers.
Candidates reported having very good feelings for Amazon's Software Engineer interview process in Ireland.