Filter interviews by
Clear (1)
Top trending discussions
posted on 10 Nov 2024
I applied via Recruitment Consulltant and was interviewed in May 2024. There were 2 interview rounds.
Function to return mutual friends given two ids and getFriends(id) function
Call getFriends(id) for both ids to get their respective friend lists
Iterate through both lists and compare to find mutual friends
Return the list of mutual friends
Function to return list of friends of friends in decreasing order of mutual friends
Use a set to store all friends of friends
Iterate through the list of friends of the given id
For each friend, iterate through their list of friends and count mutual friends
Sort the set of friends of friends by decreasing number of mutual friends
Given time slots, find a specific time with maximum overlap. Prove solution.
Create a list of all start and end times
Sort the list in ascending order
Iterate through the list and keep track of the number of overlaps at each time
Return the time with the maximum number of overlaps
Prove solution by testing with different input sizes and edge cases
Find the longest sub-array with increasing order of integers.
Iterate through the array and keep track of the current sub-array's start and end indices.
Update the start index whenever the current element is smaller than the previous element.
Update the end index whenever the current element is greater than or equal to the next element.
Calculate the length of the sub-array and compare it with the longest sub-array found s
Find the length of longest increasing subsequence and print the sequence from an array of integers.
Use dynamic programming to solve the problem
Create an array to store the length of longest increasing subsequence ending at each index
Traverse the array and update the length of longest increasing subsequence for each index
Print the sequence by backtracking from the index with the maximum length
Time complexity: O(n^2)
Exam...
Code to find a given integer in a rotated sorted array.
Use binary search to find the pivot point where the array is rotated.
Divide the array into two subarrays and perform binary search on the appropriate subarray.
Handle edge cases such as the target integer not being present in the array.
Use a min-heap to keep track of the largest K numbers seen so far.
Create a min-heap of size K.
For each incoming integer, add it to the heap if it's larger than the smallest element in the heap.
If the heap size exceeds K, remove the smallest element.
At the end, the heap will contain the largest K numbers in the input.
LRU Cache is a data structure that stores the most recently used items and discards the least recently used items.
Use a doubly linked list to keep track of the order of items in the cache
Use a hash map to store the key-value pairs for fast access
When an item is accessed, move it to the front of the linked list
When the cache is full, remove the least recently used item from the back of the linked list and the hash map
posted on 7 Jan 2015
Developed a web-based project management tool for a software development company.
Used Agile methodology for development
Implemented user authentication and authorization using JWT
Integrated with GitHub for version control
Used React for front-end and Node.js for back-end
Implemented real-time chat feature using Socket.io
posted on 4 Feb 2017
I appeared for an interview before Feb 2016.
The Indian deodorant market is a growing industry with a large consumer base and increasing demand for premium and natural products.
The deodorant market in India has been experiencing steady growth over the years.
The market is driven by factors such as increasing disposable income, urbanization, and changing lifestyles.
There is a growing awareness among consumers about personal hygiene and grooming, leading to higher d...
Approximately 50,000 tractors are sold in Haryana every year.
Consider the population of Haryana and the number of farmers in the state.
Look at the agricultural output of Haryana and the demand for tractors in the region.
Take into account the number of tractor dealerships in Haryana and their sales figures.
Research the sales figures of major tractor manufacturers in Haryana.
Assume a growth rate based on the previous yea...
I appeared for an interview in Sep 2016.
based on 1 interview
Interview experience
Application Development Analyst
11
salaries
| ₹11 L/yr - ₹16 L/yr |
Senior Claims Representative
10
salaries
| ₹4 L/yr - ₹6.5 L/yr |
Senior Analyst
10
salaries
| ₹12 L/yr - ₹25 L/yr |
Architect
9
salaries
| ₹42.8 L/yr - ₹46.3 L/yr |
Senior Customer Service Representative
8
salaries
| ₹4 L/yr - ₹5.4 L/yr |
Anthem
UnitedHealth
Aetna
Humana