Amazon Interview Questions for Programmer Analyst

amazon logo
amazon
programmer analystOffer
October 13, 20215 reads

Summary

I recently interviewed at Amazon for a Programmer Analyst role, undergoing multiple technical and behavioral rounds, and successfully received an offer.

Full Experience

My interview journey at Amazon for the Programmer Analyst position involved several stages. It kicked off with an Online Assessment on HackerEarth, where I tackled 3 programming questions within a 2-hour window. Following this, I proceeded to two separate 1-hour technical interview rounds, each focusing on coding challenges. The fourth round was a blend of technical and behavioral questions, with no coding involved. Finally, I had my fifth and final interview, which again combined technical discussions with behavioral aspects. I'm delighted to share that I was extended an offer.

Interview Questions (5)

Q1
Next Greater Element with Index Tweak
Data Structures & AlgorithmsMedium

Given an array, for each element, find the index of the next greater element. If no greater element is present, return -1. For example, if arr = [72,73,74,70,69,70,75,76,73,72], the expected output is [1, 1, 4, 3, 1, 1, 1, -1, -1, -1].

Q2
Two Sum
Data Structures & AlgorithmsEasy

Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You may assume that each input would have exactly one solution, and you may not use the same element twice.

Q3
Validate Binary Search Tree
Data Structures & AlgorithmsMedium

Given the root of a binary tree, determine if it is a valid binary search tree (BST). A valid BST is defined as follows: The left subtree of a node contains only nodes with keys less than the node's key. The right subtree of a node contains only nodes with keys greater than the node's key. Both the left and right subtrees must also be binary search trees.

Q4
Remove Nth Node From End of List
Data Structures & AlgorithmsMedium

Given the head of a linked list, remove the n-th node from the end of the list and return its head.

Q5
Symmetric Tree
Data Structures & AlgorithmsEasy

Given the root of a binary tree, check whether it is a mirror of itself (i.e., symmetric around its center).

Discussion (0)

Share your thoughts and ask questions

Join the Discussion

Sign in with Google to share your thoughts and ask questions

No comments yet

Be the first to share your thoughts and start the discussion!