Filter interviews by
Merge overlapping intervals in an array of integers
Sort the intervals based on the start value
Iterate through the intervals and merge overlapping ones
Return the merged intervals
Merge two sorted arrays into a single sorted array
Create a new array to store the merged result
Compare elements from both arrays and add the smaller one to the result array
Continue this process until all elements from both arrays are merged
Sort an array of strings containing only 0s, 1s, and 2s.
Use counting sort algorithm to sort the array in linear time complexity.
Count the occurrences of 0s, 1s, and 2s in the array.
Reconstruct the array with the sorted counts.
Print the left view of a binary tree
Traverse the tree in a level order traversal
Print the first node at each level encountered
Use a queue to keep track of nodes at each level
Test cases for testing history in YouTube-like channel
Verify that the history page displays the correct list of videos watched by the user
Test if the history can be cleared successfully
Check if the history is updated in real-time as the user watches videos
Ensure that the history is accessible only to the logged-in user
Verify that the history page loads quickly and efficiently
Use SQL query with GROUP BY and HAVING clause to find and remove duplicates in a table.
Use SELECT statement with COUNT() function to identify duplicates
Use GROUP BY clause to group duplicate records
Use HAVING clause to filter out groups with count greater than 1
Use DELETE statement to remove duplicates based on identified criteria
Random Forest is an ensemble learning algorithm that builds multiple decision trees and combines their outputs.
Random Forest is a supervised learning algorithm.
It can be used for both classification and regression tasks.
It creates multiple decision trees and combines their outputs to make a final prediction.
Each tree is built on a random subset of the training data and a random subset of the features.
Random Forest...
Deadlock occurs when two or more processes are unable to proceed because each is waiting for the other to release resources.
Deadlock can happen in multi-threaded applications when resources are locked.
Example: Thread A locks Resource 1 and waits for Resource 2, while Thread B locks Resource 2 and waits for Resource 1.
Deadlock detection algorithms can help identify deadlocks in systems.
Avoiding deadlock can be achi...
Program to find the Next Smaller Element
Create an empty stack
Traverse the array from right to left
Pop elements from stack until a smaller element is found
If no smaller element is found, output -1
Push the current element onto the stack
Return odd and even numbers from two stacks, one full and one empty, without using any other memory.
Pop elements from full stack and check if it's odd or even
Push odd elements to one stack and even elements to another
Push elements back to full stack in alternating order
Time complexity: O(n), Space complexity: O(1)
Merge overlapping intervals in an array of integers
Sort the intervals based on the start value
Iterate through the intervals and merge overlapping ones
Return the merged intervals
Merge two sorted arrays into a single sorted array
Create a new array to store the merged result
Compare elements from both arrays and add the smaller one to the result array
Continue this process until all elements from both arrays are merged
Sort an array of strings containing only 0s, 1s, and 2s.
Use counting sort algorithm to sort the array in linear time complexity.
Count the occurrences of 0s, 1s, and 2s in the array.
Reconstruct the array with the sorted counts.
Print the left view of a binary tree
Traverse the tree in a level order traversal
Print the first node at each level encountered
Use a queue to keep track of nodes at each level
Use SQL query with GROUP BY and HAVING clause to find and remove duplicates in a table.
Use SELECT statement with COUNT() function to identify duplicates
Use GROUP BY clause to group duplicate records
Use HAVING clause to filter out groups with count greater than 1
Use DELETE statement to remove duplicates based on identified criteria
Test cases for testing history in YouTube-like channel
Verify that the history page displays the correct list of videos watched by the user
Test if the history can be cleared successfully
Check if the history is updated in real-time as the user watches videos
Ensure that the history is accessible only to the logged-in user
Verify that the history page loads quickly and efficiently
I applied via Approached by Company and was interviewed before Jun 2023. There were 4 interview rounds.
I applied via Approached by Company and was interviewed before May 2023. There were 2 interview rounds.
I applied via Approached by Company and was interviewed before Sep 2022. There were 3 interview rounds.
I applied via Referral and was interviewed before May 2022. There were 3 interview rounds.
Round One - Two Coding Tests. easy Level one was from String other was from Array.
Round Two - Interview Question on Testing Fundamental.
Separate 0's and 1's from string and reverse the string word-wise.
Iterate through the string and separate 0's and 1's into separate arrays
Join the arrays back into a single string with 0's first and 1's second
Split the string into an array of words and reverse the order of the array
Join the array back into a single string with words in reverse order
Automation Framework is a set of guidelines and standards for creating and maintaining automated tests.
Automation Framework provides a structure for organizing test code and data
It helps in reducing maintenance efforts and increasing test coverage
Examples of Automation Frameworks are Selenium, Appium, and TestNG
HTTP codes are status codes returned by a server in response to a client's request
Some common HTTP codes are ...
I applied via LinkedIn and was interviewed in Jul 2021. There was 1 interview round.
Design a URL shortener
Generate a unique short code for each URL
Store the mapping of short code to original URL in a database
Redirect users to the original URL when they access the short code
Find two elements in an array that sum up to a specified target value.
Use a hash set to store elements as you iterate through the array.
For each element, check if (target - element) exists in the set.
If it exists, you've found a pair; if not, add the element to the set.
Example: For array [1, 2, 3, 4] and sum 5, the pair is (1, 4) or (2, 3).
Time complexity is O(n) due to single pass through the array.
LRU cache implementation using doubly linked list and hash map.
Use a doubly linked list to keep track of the order of elements in the cache.
Use a hash map to store the key-value pairs for fast access.
When a new element is added, check if the cache is full and remove the least recently used element.
When an element is accessed, move it to the front of the linked list.
I applied via Naukri.com and was interviewed in Sep 2021. There was 1 interview round.
Program to find the Next Smaller Element
Create an empty stack
Traverse the array from right to left
Pop elements from stack until a smaller element is found
If no smaller element is found, output -1
Push the current element onto the stack
Return odd and even numbers from two stacks, one full and one empty, without using any other memory.
Pop elements from full stack and check if it's odd or even
Push odd elements to one stack and even elements to another
Push elements back to full stack in alternating order
Time complexity: O(n), Space complexity: O(1)
I applied via LinkedIn and was interviewed before Mar 2022. There were 2 interview rounds.
Random Forest is an ensemble learning algorithm that builds multiple decision trees and combines their outputs.
Random Forest is a supervised learning algorithm.
It can be used for both classification and regression tasks.
It creates multiple decision trees and combines their outputs to make a final prediction.
Each tree is built on a random subset of the training data and a random subset of the features.
Random Forest redu...
CAP theorem states that a distributed system cannot guarantee consistency, availability, and partition tolerance at the same time.
Consistency: all nodes see the same data at the same time
Availability: every request receives a response, without guarantee that it contains the most recent version of the information
Partition tolerance: the system continues to function even when network partitions occur
Examples: Cassandra p...
Deadlock occurs when two or more processes are unable to proceed because each is waiting for the other to release resources.
Deadlock can happen in multi-threaded applications when resources are locked.
Example: Thread A locks Resource 1 and waits for Resource 2, while Thread B locks Resource 2 and waits for Resource 1.
Deadlock detection algorithms can help identify deadlocks in systems.
Avoiding deadlock can be achieved ...
Top trending discussions
Some of the top questions asked at the Airtel X- Labs interview -
The duration of Airtel X- Labs interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 8 interview experiences
Difficulty level
Duration
based on 105 reviews
Rating in categories
Senior Software Engineer
164
salaries
| ₹17.5 L/yr - ₹30 L/yr |
Software Engineer
84
salaries
| ₹12.8 L/yr - ₹20 L/yr |
Lead Engineer
41
salaries
| ₹25 L/yr - ₹40 L/yr |
Software Developer
18
salaries
| ₹12 L/yr - ₹19.4 L/yr |
Sdet Lead
17
salaries
| ₹25.2 L/yr - ₹38 L/yr |
Quess
L&T Construction
Ekart Logistics
Udaan