Filter interviews by
The react application needs to be completed with given functionalities.
Implement state management using Redux or Context API
Create components for different sections of the application
Fetch data from an API and display it in the application
Add routing using React Router for navigation
Implement form handling for user input
The Three Sum problem involves finding unique triplets in an array that sum to zero.
Use a sorted array to simplify the search for triplets.
Utilize a two-pointer technique to find pairs that complement a fixed element.
Example: For array [-1, 0, 1, 2, -1, -4], the triplets are [-1, -1, 2], [-1, 0, 1].
Avoid duplicates by skipping over repeated elements in the sorted array.
Merge K-Sorted Linked List
Create a min heap of size k
Insert the first element of each linked list into the heap
Pop the minimum element from the heap and add it to the result list
Insert the next element from the linked list of the popped element into the heap
Repeat until all elements are processed
To break a linked list into two lists, we can traverse the list and add nodes to respective lists based on their value.
Traverse the linked list and add nodes to positive or negative list based on their value
Create two empty lists for positive and negative nodes
Iterate through the linked list and add nodes to respective lists
Join the two lists at the end to get the final result
Determine if a string can be segmented into space-separated words from a given dictionary.
Use dynamic programming to build a boolean array that tracks segmentability.
Example: For s = 'leetcode' and dict = ['leet', 'code'], return true.
Iterate through the string, checking if the substring can be formed using the dictionary.
Example: For s = 'applepenapple' and dict = ['apple', 'pen'], return true.
Determine if a path exists in a matrix filled with directional indicators from a start to an end point.
Use Depth-First Search (DFS) or Breadth-First Search (BFS) to explore paths.
Check if the current position is within matrix bounds and not visited.
Example: In a 2D grid, 'U' means up, 'D' means down, 'L' means left, 'R' means right.
Track visited nodes to avoid cycles and infinite loops.
Given an array of integers, find if a subarray exists whose sum equals to k.
Use a hashmap to store the prefix sum and its frequency.
Iterate through the array and check if the difference between current prefix sum and k exists in the hashmap.
If it exists, then a subarray with sum k exists.
Time complexity: O(n), Space complexity: O(n).
Left view of a binary tree is the set of nodes visible when the tree is viewed from the left side.
Traverse the binary tree level by level using BFS or DFS.
Keep track of the first node encountered at each level (leftmost node).
Store the leftmost nodes in an array to get the left view of the binary tree.
1st round was based on DSA and mostly leetcode medium questions
The react application needs to be completed with given functionalities.
Implement state management using Redux or Context API
Create components for different sections of the application
Fetch data from an API and display it in the application
Add routing using React Router for navigation
Implement form handling for user input
Included Medium Questions
I applied via Recruitment Consulltant and was interviewed before Jan 2024. There was 1 interview round.
I applied via Recruitment Consulltant and was interviewed before Apr 2023. There was 1 interview round.
Left view of a binary tree is the set of nodes visible when the tree is viewed from the left side.
Traverse the binary tree level by level using BFS or DFS.
Keep track of the first node encountered at each level (leftmost node).
Store the leftmost nodes in an array to get the left view of the binary tree.
The Three Sum problem involves finding unique triplets in an array that sum to zero.
Use a sorted array to simplify the search for triplets.
Utilize a two-pointer technique to find pairs that complement a fixed element.
Example: For array [-1, 0, 1, 2, -1, -4], the triplets are [-1, -1, 2], [-1, 0, 1].
Avoid duplicates by skipping over repeated elements in the sorted array.
I applied via Approached by Company and was interviewed in Aug 2021. There were 6 interview rounds.
Merge K-Sorted Linked List
Create a min heap of size k
Insert the first element of each linked list into the heap
Pop the minimum element from the heap and add it to the result list
Insert the next element from the linked list of the popped element into the heap
Repeat until all elements are processed
Determine if a path exists in a matrix filled with directional indicators from a start to an end point.
Use Depth-First Search (DFS) or Breadth-First Search (BFS) to explore paths.
Check if the current position is within matrix bounds and not visited.
Example: In a 2D grid, 'U' means up, 'D' means down, 'L' means left, 'R' means right.
Track visited nodes to avoid cycles and infinite loops.
To break a linked list into two lists, we can traverse the list and add nodes to respective lists based on their value.
Traverse the linked list and add nodes to positive or negative list based on their value
Create two empty lists for positive and negative nodes
Iterate through the linked list and add nodes to respective lists
Join the two lists at the end to get the final result
Given an array of integers, find if a subarray exists whose sum equals to k.
Use a hashmap to store the prefix sum and its frequency.
Iterate through the array and check if the difference between current prefix sum and k exists in the hashmap.
If it exists, then a subarray with sum k exists.
Time complexity: O(n), Space complexity: O(n).
I applied via Approached by company and was interviewed in Jan 2022. There were 3 interview rounds.
Do as much medium level problems from leetcode as possible
Same as round 1
I applied via Approached by Company and was interviewed in Jun 2017. There were 5 interview rounds.
Top trending discussions
I applied via Company Website and was interviewed before Oct 2019. There were 4 interview rounds.
posted on 16 Sep 2021
I appeared for an interview before Sep 2020.
Round duration - 50 minutes
Round difficulty - Easy
This was a Data Structural round.
Given a two-dimensional array/list consisting of integers 0s and 1s, where 1 represents land and 0 represents water, determine the number of distinct islands. A group of...
Count the number of distinct islands in a 2D array of 0s and 1s.
Identify islands by performing depth-first search (DFS) on the grid
Use a set to store the shape of each island and check for duplicates
Consider translations to determine distinct islands
Round duration - 50 minutes
Round difficulty - Easy
This was a Data Structural round.
You are tasked with arranging 'N' words of varying lengths such that each line contains at most 'M' characters, with each word separated by a space. The challenge is to minimiz...
The goal is to minimize the total cost of arranging 'N' words on each line with a maximum character limit 'M'.
Calculate the cost of each line as the cube of extra space characters needed to reach 'M'.
Minimize the total cost by arranging words to fit within the character limit on each line.
Ensure each word appears fully on one line without breaking across lines.
Round duration - 60 minutes
Round difficulty - Easy
This was a System Design round.
Design a system similar to Red Bus for handling bookings and onboarding vendors and customers.
Implement a user-friendly interface for customers to search and book tickets
Create a vendor portal for vendors to manage their offerings and availability
Include payment gateway integration for secure transactions
Develop a robust backend system for managing bookings, cancellations, and refunds
Utilize a database to store user in...
Round duration - 50 minutes
Round difficulty - Easy
This was a System Design round
Round duration - 50 minutes
Round difficulty - Easy
This was an HR round.
Tip 1 : Practice as much as you can.
Tip 2 : Prepare for company, not in general.
Tip 3 : Your past work should be objective and your contribution should be very clear
Tip 1 : Keep only relevant things for the job you are applying.
Tip 2 : Minimal data with measurable contribution and effect.
based on 5 interview experiences
Difficulty level
Duration
based on 28 reviews
Rating in categories
Computer Scientist
498
salaries
| ₹34.9 L/yr - ₹61.7 L/yr |
Technical Consultant
315
salaries
| ₹13 L/yr - ₹24.1 L/yr |
Computer Scientist 2
310
salaries
| ₹46.5 L/yr - ₹80 L/yr |
Software Engineer
288
salaries
| ₹14.2 L/yr - ₹25 L/yr |
Senior Software Engineer
244
salaries
| ₹22.4 L/yr - ₹39.6 L/yr |
Salesforce
Oracle
Microsoft Corporation
Amazon