Data Structures and Algorithms Interview Questions in Bangalore
36 practice questions with answers for Data Structures and Algorithms interviews in Bangalore.
Data Structures and Algorithms jobs in Bangalore
Bangalore (Bengaluru) is India's largest technology hub, with global product companies, engineering centres, unicorn start-ups and big IT-services campuses. Product-company interviews here are usually deeper, with more scenario, design and hands-on rounds.
Below are 36 questions that match the mix of service, product and domain employers hiring software engineer (fresher / sde-1)s in Bangalore.
What is the difference between full, complete and perfect binary trees?
Show answer
Merge K sorted linked lists using a min-heap.
Show answer
What are lower bound and upper bound, and what common bugs appear in binary search?
Show answer
You must build autocomplete for a search box over one million product names. Which data structure would you use?
Show answer
In activity selection, why do we sort by end time rather than start time or duration?
Show answer
A problem has n up to 100000. Which time complexities are acceptable for a 1-second limit?
Show answer
How does merge sort work and what are its properties?
Show answer
How does heap sort work and how does it compare with quicksort and merge sort?
Show answer
What is the difference between a linked list and an array?
Show answer
A cashier system uses the greedy rule of always giving the largest coin first. When can this fail?
Show answer
Find the minimum number of railway platforms needed given arrival and departure times.
Show answer
Explain the sliding window technique with fixed and variable windows.
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
Why are you looking for a change from your current job?
Show answer
Tell me about yourself for a software engineer role.
Show answer
What is a greedy algorithm and when does it give the optimal answer?
Show answer
Packages with given weights must be shipped in order within D days. How do you find the minimum ship capacity?
Show answer
A trading application needs a stack that also returns the current minimum in O(1). How would you design it?
Show answer
Your brute-force solution for the longest substring without repeating characters is O(n cubed). How would you improve it?
Show answer
Solve house robber: maximise money robbed from houses in a row without robbing two adjacent houses.
Show answer
Users enter formulas with brackets in a spreadsheet tool. How do you validate that the brackets are balanced?
Show answer
Your recursive solution passes with memoisation, but the interviewer asks for a bottom-up version. How do you convert it?
Show answer
Check whether a string is a palindrome, ignoring case and non-alphanumeric characters.
Show answer
How do you prioritise when several tasks have deadlines at the same time?
Show answer
What is edit distance and where is it used?
Show answer
Implement Kadane's algorithm for the maximum subarray sum.
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
What is time complexity and what does Big-O notation mean?
Show answer
Solve climbing stairs: how many ways are there to climb n steps taking 1 or 2 steps at a time?
Show answer
What is a heap and how is it stored in an array?
Show answer
How do you find the lowest common ancestor in a BST versus in a general binary tree?
Show answer
Explain best, average and worst case complexity using quicksort.
Show answer
Implement topological sort using Kahn's algorithm.
Show answer
Generate all permutations of a list of distinct numbers using backtracking.
Show answer
What is backtracking?
Show answer
Companies with offices in Bangalore (20)
Amazon
Data Structures and Algorithms interview questions
Bengaluru, Hyderabad, Chennai +2
View questionsData Structures and Algorithms interview questions
Bengaluru, Hyderabad, Gurugram +2
View questionsMicrosoft
Data Structures and Algorithms interview questions
Hyderabad, Bengaluru, Noida +2
View questionsMeta
Data Structures and Algorithms interview questions
Gurugram, Bengaluru, Hyderabad +1
View questionsAdobe
Data Structures and Algorithms interview questions
Noida, Bengaluru, Gurugram
View questionsApple
Data Structures and Algorithms interview questions
Hyderabad, Bengaluru, Mumbai +1
View questionsFlipkart
Data Structures and Algorithms interview questions
Bengaluru, Hyderabad
View questionsWalmart
Data Structures and Algorithms interview questions
Bengaluru, Chennai, Gurugram
View questionsUber
Data Structures and Algorithms interview questions
Bengaluru, Hyderabad, Gurugram
View questionsAtlassian
Data Structures and Algorithms interview questions
Bengaluru
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 questionsIntuit
Data Structures and Algorithms interview questions
Bengaluru
View questionsGoldman Sachs
Data Structures and Algorithms interview questions
Bengaluru, Hyderabad, Mumbai
View questionsDE Shaw
Data Structures and Algorithms interview questions
Hyderabad, Bengaluru, Gurugram
View questionsSwiggy
Data Structures and Algorithms interview questions
Bengaluru, Hyderabad
View questionsPhonePe
Data Structures and Algorithms interview questions
Bengaluru, Pune
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 Bangalore?
Companies with large offices in Bangalore include Amazon, Google, Microsoft, Meta, Adobe, Apple, Flipkart, Walmart, Uber, Atlassian. Use their company pages below to practise employer-specific sets.
Are Data Structures and Algorithms interviews in Bangalore different from other cities?
The questions depend more on the company than the city. Bangalore's mix of employers decides the style: Product-company interviews here are usually deeper, with more scenario, design and hands-on rounds
How do I find Data Structures and Algorithms jobs in Bangalore?
Shortlist companies with Bangalore offices, keep your CV focused on Data Structures and Algorithms projects, apply on company career pages and job portals with the Bangalore filter, and practise the questions on this page before each interview.