Most Asked Coding QUESTIONS
Most Asked Coding QUESTIONS
Curated by
Given the head of a singly linked list, return the middle node of the linked list.
If there are two middle nodes, return the second middle node.
Question 2
longest path from the root node down to the farthest leaf node.
Excellent platform for anyone interested in technology, particularly those who work
with computers and programming. One of the best features is their live classes
and small batch sizes, which ensure that you receive undivided attention.
Question 3
Add Binary Easy
Given two binary strings a and b return their sum as a binary string. s
Question 4
Diameter of Binary Tree Easy
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
From To
Anjali Joshi
Data Engineer - L2 at Twilio
Question 5
Valid Anagram Easy
Given two strings s and t , return true if t is an anagram of s , and
false otherwise.
An Anagram is a word or phrase formed by rearranging the letters of a
different word or phrase, typically using all the original letters exactly once.
Practice Question asked in:
Question 6
Binary Search Easy
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.
those letters.
You are also given three integers sr , sc and color . You should perform
Question 9
Lowest Common Ancestor of a Binary
Given a binary search tree (BST), find the lowest common ancestor (LCA)
Question 11
Given head , the head of a linked list, determine if the linked list has
a cycle in it.
There is a cycle in a linked list if there is some node in the list that can be
reached again by continuously following the next pointer . Internally, pos
is used to denote the index of the node that tail's next pointer is connected
to. Note that pos is not passed as a parameter.
Return true if there is a cycle in the linked list. Otherwise, return false .
Suppose you have n versions [1, 2, ..., n] and you want to find out
the first bad one, which causes all the following ones to be bad.
Tutort Benefits
Each time you can either climb 1 or 2 steps. In how many distinct ways
Question 14
LRUCache(int capacity) Initialize the LRU cache with positive size capacity
int get(int key) Return the value of the key if the key exists.
void put(int key, int value) Update the value of the key
Question 16
Kth Smallest Element in a BST Medium
Best part about this academy is that before joining the program you can talk with the
Data Scientist. They have projects from companies so you will work on Real-Time
Projects and also got many job referrals from Tutort Academy & got a job as at EY.
Question 17
Question 18
repeating characters.
Given the root of a binary tree, return the level order traversal
of its nodes' values. (i.e., from left to right, level by level).
Tutort Benefits
Question 22
of the expression.
From To
There are a total of numCourses courses you have to take, labeled from
Return true if you can finish all courses. Otherwise, return false .
Question 24
void insert(String word) Inserts the string word into the trie.
boolean sear ch(String word) Returns true if the string word is in the trie
Return the fewest number of coins that you need to make up that amount.
If that amount of money cannot be made up by any combination
of the coins, return -1
Question 26
Product of Array Except Self Medium
Given an integer array nums return an array answer such that answer[i]
is equal to the product of all the elements of nums except nums[i]
You must write an algorithm that runs in O(n) time and without using
the division operation.
Design a stack that supports push, pop, top, and retrieving the minimum
You must implement a solution with O(1) time complexity for each function.:
Question 28
lands horizontally or vertically. You may assume all four edges of the grid
Question 30
Rotting Oranges Medium
You are given an m x n grid where each cell can have one of
three values:
Return the minimum number of minutes that must elapse until no cell
has a fresh orange. If this is impossible, return -1
There is an integer array nums sorted in ascending order (with distinct values).
Given the array nums after the possible rotation and an integer target
return the index of target if it is in nums , or -1 is not in nums
Question 32
Given an array nums of distinct integers, return all the possible permutations.
You can return the answer in any order.
Question 34
Merge Intervals Medium
The courses well structured, and I use them to learn new things every day as well as revise
concepts by solving multiple problems. It also helps you a lot when preparing for an
interview because most of the questions were similar to which I solved during the course.
Question 35
Lowest Common Ancestor of a
Binary Tree Medium
Given a binary tree, find the lowest common ancestor (LCA) of two given
Question 36
Time Based Key-Value Store Medium
where the first element accounts[i][0] is a name, and the rest of the
After merging the accounts, return the accounts in the following format:
the first element of each account is the name, and the rest of the elements
in any order.
Question 38
Given an array nums with n objects colored red, white, or blue, sort them
in-place so that objects of the same color are adjacent, with the colors
in the order red, white, and blue.
You must solve this problem without using the library's sort function.
Question 40
From To
Avishkar Dalvi
MTS 3 at VMware
Question 41
Subsets Medium
The solution set must not contain duplicate subsets. Return the
Question 42
Binary Tree Right Side View Medium
Given the two integers m and n , return the number of possible unique
paths that the robot can take to reach the bottom-right corner.
Tutort Benefits
The median is the middle value in an ordered integer list. If the size
of the list is even, there is no middle value, and the median is the mean
Day 46
Day 48
Return the maximum profit you can take such that there are no two
Two things I love the most about Tutort Academy. First before enrolling your profile is
reviewed by a Data Scientist and Secondly real time projects from companies with small
Merge all the linked-lists into one sorted linked-list and return it.
Day 50
height where the width of each bar is 1 , return the area of the largest
Upskilling with us
Join our Job-Oriented Programs
Explore more
www.tutort.net
Follow us on
. . . . . .