Amazon Interview | Set 77 (Off-Campus For SDE-1 / 1.5yrs experienced)
Amazon SDE1 Off campus
Written Round
Discussion about my projects (nearly 20 mins)
1. Given an array of positive numbers, find the maximum sum of a subsequence with the constraint that no 2 numbers in the sequence should be adjacent in the array. (extended to negative numbers)
2nd f2f
Small discussion about my projects
2.Given 2 strings str1 and str2. What is the efficient way to navigate from str1 to str2? The constraints are i) a string can be changed to another string by changing only one character. ii) all the intermediate strings must be present in dictionary. If not possible, return “not possible to navigate from str1 to str2”. (pre-processing is allowed and enough memory is available). for example: str1 = feel and str2 = pelt, then the navigation is feel -> fell -> felt -> pelt (Hint: Graph)
3rd f2f
Discussion about my projects (nearly 20 mins)
1. Given two numbers represented by two linked lists, write a function that returns sum list. The sum list is linked list representation of addition of two input numbers. It is not allowed to modify the lists. Also, not allowed to use explicit extra space.
2. Given a matrix of characters and a string, find whether the string can be obtained from the matrix. From each character in the matrix, we can move up/down/right/left. for example, if the matrix[3][4] is
o f a s l l q w z o w k
and the string is follow, then the function should return true.
4th f2f Hiring Manager
Deep discussion about my current project (nearly 45 mins)
(application architecture, challenges faced and a lot of technical discussion)
5th f2f Bar Raiser
Deep discussion about my current project (challenges faced, etc) nearly 20 mins
Deep discussion on REST api authentications (Hash key vs Encryption & Decryption) nearly 20 mins
1. Given an input string, write a function that returns the compressed string for the input string in INPLACE. (no extra memory) (length of compressed string < = length of input string) For example, if the input string is “aaabcdeeee”, then the function should return “a3b1c1d1e4?. w3wiki helped me a lot in improving my skills in DS and Algorithms.
Contact Us