Data Structures and Algorithms Interview Questions in Mumbai
36 practice questions with answers for Data Structures and Algorithms interviews in Mumbai.
Data Structures and Algorithms jobs in Mumbai
Mumbai is India's financial capital, so banks, fintechs, insurers, media and consulting firms drive much of the hiring. Data and QA interviews often include domain questions on payments, risk, trading or customer analytics.
Below are 36 questions that match the mix of service, product and domain employers hiring software engineer (fresher / sde-1)s in Mumbai.
A sorted array has been rotated at an unknown point. How can you still search it in O(log n)?
Show answer
Implement merge sort.
Show answer
What is Kadane's algorithm?
Show answer
How would you generate friend suggestions as friends of friends in a social network?
Show answer
Explain the recurrence for the 0/1 knapsack problem.
Show answer
How does Dijkstra's algorithm work and why does it fail with negative edge weights?
Show answer
How do you handle pressure during a timed online coding test?
Show answer
Why do you want to work at a product company as a software engineer?
Show answer
Find the first and last position of a target in a sorted array.
Show answer
How do you prioritise when several tasks have deadlines at the same time?
Show answer
What is amortised analysis? Explain it with dynamic array append.
Show answer
Design a rate limiter that allows at most 100 requests per user in any rolling 60-second window.
Show answer
Detect whether a linked list has a cycle and return the node where the cycle begins.
Show answer
In a company org chart stored as a tree, how would you find the closest common manager of two employees?
Show answer
An application needs sorted data with frequent inserts, deletes and range queries such as all orders between two timestamps. Which structure fits?
Show answer
Find the shortest path length from the top-left to the bottom-right of a grid where 1 is a wall.
Show answer
Your brute-force solution for the longest substring without repeating characters is O(n cubed). How would you improve it?
Show answer
A satellite image is a grid of land and water cells. How do you count the islands?
Show answer
Find the next greater element for every element of an array.
Show answer
Write a function to validate a binary search tree.
Show answer
You must merge two sorted arrays where the first array has enough empty space at the end for the second. How would you do it in place?
Show answer
A search box must suggest the closest dictionary words when a user makes a typo. How would you approach it?
Show answer
Find the lowest common ancestor of two nodes in a binary tree.
Show answer
What does binary search on the answer mean?
Show answer
How does Floyd's cycle detection algorithm work and why is it correct?
Show answer
Tell me about a time you explained a technical idea to a non-technical person.
Show answer
How can you reduce the space used by a DP solution?
Show answer
You need to build a tool that shows the differences between two versions of a file line by line. What algorithm would you use?
Show answer
Find the minimum number of railway platforms needed given arrival and departure times.
Show answer
A build system hangs because some services depend on each other in a loop. How would you detect and report the cycle?
Show answer
Design a simple scheduler that gives each job a fixed time slice in turn.
Show answer
HR wants an employee list sorted by department, and by salary within each department. How would you do it?
Show answer
What are the complexities of heap operations, and why does building a heap take O(n)?
Show answer
What is the Dutch National Flag algorithm?
Show answer
Implement fast exponentiation to compute x to the power n in O(log n).
Show answer
Companies with offices in Mumbai (9)
Data Structures and Algorithms interview questions
Bengaluru, Hyderabad, Gurugram +2
View questionsMeta
Data Structures and Algorithms interview questions
Gurugram, Bengaluru, Hyderabad +1
View questionsApple
Data Structures and Algorithms interview questions
Hyderabad, Bengaluru, Mumbai +1
View questionsSalesforce
Data Structures and Algorithms interview questions
Hyderabad, Bengaluru, Mumbai +1
View questionsOracle
Data Structures and Algorithms interview questions
Bengaluru, Hyderabad, Noida +2
View questionsData Structures and Algorithms interview questions
Bengaluru, Gurugram, Mumbai
View questionsGoldman Sachs
Data Structures and Algorithms interview questions
Bengaluru, Hyderabad, Mumbai
View questionsRazorpay
Data Structures and Algorithms interview questions
Bengaluru, Mumbai
View questionsTCS
Data Structures and Algorithms interview questions
Mumbai, Chennai, Pune +2
View questionsFrequently asked questions
Which companies hire Data Structures and Algorithms professionals in Mumbai?
Companies with large offices in Mumbai include Google, Meta, Apple, Salesforce, Oracle, LinkedIn, Goldman Sachs, Razorpay, TCS. Use their company pages below to practise employer-specific sets.
Are Data Structures and Algorithms interviews in Mumbai different from other cities?
The questions depend more on the company than the city. Mumbai's mix of employers decides the style: Data and QA interviews often include domain questions on payments, risk, trading or customer analytics
How do I find Data Structures and Algorithms jobs in Mumbai?
Shortlist companies with Mumbai offices, keep your CV focused on Data Structures and Algorithms projects, apply on company career pages and job portals with the Mumbai filter, and practise the questions on this page before each interview.