The input to a function is an array of n elements.Output of that function is also an array where each element is product of all elements in the input array except the one with same index.
Input ::::: 1 2 3 4
Output ::::: 2*3*4 1*3*4 1*2*4 1*2*3
Those two were the main questions ... rest were follow-up questions.
Other than these...OOPs concept questions...Polymorphism
Different Datastructures...access time and so on...
I applied online. I interviewed at Amazon (Vancouver, BC)
Interview
One online assessment and one virtual interview included a coding round and leadership principle questions; overall, the process was fairly straightforward and not overly challenging for me throughout the experience.
2 rounds:
1st round: 3 behaviorals: Tell me about yourself, tell me about a time you used Gen AI, tell me about a time you faced a problem in one of your experiences
Leetcode similar to LRU Cache but a variant
2nd round: 3 more behaviorals; tell me about yourself, a specific experience in my internship, a time you disagreed with manager/peer on a project
I applied online. I interviewed at Amazon (Seattle, WA)
Interview
Pretty difficult OA didn't need to get full score. One round technical interview with SDE. Interview was pretty easy, most people I knew at school and friends ended up passing the interview. Took about 1 month to hear back after interview