Amazon Coding Questions
Amazon Coding Questions
CODING QUESTIONS
in
Question 1
Easy
Add Binary
Given two binary strings a and b return their sum as a
binary string. s
Question 2
Easy
Diameter of Binary Tree
Given the root of a binary tree, return the length of the
diameter of the tree.
The diameter of a binary tree is the length of the longest
path between
any two nodes in a tree. This path may or may not pass
through the root
Curated by
Question 3
Easy
Valid Anagram
the letters of a
From To
Success
Akansha Likhdari
Story
Curated by
Question 4
Easy
Binary Search
Given an array of integers nums which is sorted in
ascending order, and an integer target , write a function
to search target in nums . If target exists, then return its
index. Otherwise, return -1 .
You must write an algorithm with 0(log n) runtime
complexity.
Question 5
Easy
Longest Palindrome
Given a string s which consists of lowercase or uppercase
letters, return the length of the longest palindrome that
can be built with those letters.
Curated by
Question 6
Easy
Lowest Common Ancestor of a Binary
Search Tree
of itself).”
Design Development
Curated by
Question 7
Easy
Flood Fill
image.
pixel image[sr][sc] .
Career Hiring
Highest
Curated by
Question 8
Easy
Balanced Binary Tree
Question 9
Easy
Linked List Cycle
return false .
Curated by
Question 10
Easy
First Bad Version
find out the first bad one, which causes all the following
ones to be bad.
Tutort Benefits
Curated by
Quetsion 11
Medium
Permutations
order.
Question 12
Medium
Merge Intervals
Curated by
Question 13
Question 14
Curated by
Question 15
Question 16
Characters
Given a string s find the length of the longest substring
without repeating characters.
Curated by
Question 17
3Sum Medium
From To
Success
Gautam Verma Story
Curated by
Question 18
Curated by
Question 19
Medium
String to Integer (atoi)
Question 20
Medium
Spiral Matrix
spiral order.
Curated by
Question 21
From To
Success
Akash Shrivastava Story
Curated by
Question 22
Thank you so much to Tutort and Team for helping me crack multiple
offers. Although currently US job market is at its worst. Credit goes to
you and Team especially Sunny Mongia and my mentor Rohit Verma.
Nayana Jabisetti
Curated by
Question 23
Medium
Clone Graph
graph. ,
Question 24
Medium
Evaluate Reverse Polish Notation
Curated by
Question 25
Question 26
Curated by
Question 27
Hard
Basic Calculator
Question 28
Hard
Maximum Profit in Job Scheduling
Return the maximum profit you can take such that there
Curated by
Question 29
Hard
Merge k Sorted Lists
return it.
Question 30
Hard
Largest Rectangle in Histogram
Curated by
Start Your
Upskilling with us
Explore our courses
www.tutort.net
Follow us on