i
Mr Cooper
Filter interviews by
posted on 6 Sep 2024
I applied via Naukri.com and was interviewed in Aug 2024. There were 2 interview rounds.
Top trending discussions
Find an odd occurring number among even occurring numbers.
Use XOR operation to cancel out even occurring numbers and get the odd occurring number.
Iterate through the array and XOR each element with the result variable.
The final result will be the odd occurring number.
Print the spiral order of a binary tree and matrix.
For binary tree, use level order traversal and alternate direction for each level.
For matrix, use four pointers to traverse in spiral order.
Example for binary tree: 1 -> 2 -> 3 -> 4 -> 5 -> 6 -> 7 -> 8 -> 9
Example for matrix: 1 2 3 4 -> 8 7 6 5 -> 9 10 11 12 -> 16 15 14 13
Finding pairs in an array with a given sum.
Iterate through the array and for each element, check if the difference between the given sum and the element exists in the array.
Use a hash table to store the elements of the array and their indices for faster lookup.
If there are multiple pairs with the same sum, return any one of them.
If no pair is found, return null or an empty array.
Find total number of k element with given avg in an array in minimum time complexity.
Use sliding window technique to traverse the array in O(n) time complexity.
Maintain a sum variable to keep track of the sum of elements in the window.
If the sum of elements in the window is equal to k times the given avg, increment the count.
Move the window by subtracting the first element and adding the next element in the array.
Printing non-boundary elements of a binary tree
Traverse the tree in any order (preorder, inorder, postorder)
Check if the current node is not a boundary node (not the first or last node in its level)
If it is not a boundary node, print its value
Recursively traverse its left and right subtrees
I applied via Campus Placement and was interviewed in Jul 2021. There were 3 interview rounds.
Use reduce method to calculate sum of array elements without loop
Use Array.reduce() method to sum up the array elements
Convert array elements to numbers before summing them up
Example: const arr = ['1', '2', '3']; const sum = arr.reduce((acc, curr) => acc + Number(curr), 0);
I applied via Campus Placement and was interviewed before Sep 2023. There were 2 interview rounds.
Simple coding questions for 1 hour duration
Implementing hashmap using OOPS involves creating a class with key-value pairs and methods for adding, retrieving, and deleting entries.
Create a class with private data members for storing key-value pairs
Implement methods for adding a key-value pair, retrieving a value by key, and deleting a key-value pair
Use hashing function to map keys to indices in an array for efficient retrieval
Handle collisions by using technique
I want to switch to explore new technologies and challenges in a different industry.
Interested in learning new skills and technologies
Seeking new challenges and opportunities for growth
Want to explore different industry perspectives
I applied via Naukri.com and was interviewed before Dec 2022. There were 4 interview rounds.
Basic Math and English Questions
I applied via Referral and was interviewed in Apr 2024. There were 2 interview rounds.
Program to find 2 biggest numbers in array of strings
Iterate through the array and convert each element to integer
Keep track of the two biggest numbers found so far
Return the two biggest numbers at the end
I applied via Campus Placement and was interviewed in Nov 2023. There were 3 interview rounds.
It had 3 questions, the level was medium hardish
based on 1 interview
Interview experience
Process Associate
726
salaries
| ₹2 L/yr - ₹3.8 L/yr |
Senior Process Associate
192
salaries
| ₹2.4 L/yr - ₹4.3 L/yr |
Senior Software Engineer
66
salaries
| ₹8.5 L/yr - ₹22 L/yr |
Software Engineer
48
salaries
| ₹7 L/yr - ₹14 L/yr |
Senior Associate
43
salaries
| ₹2.7 L/yr - ₹6 L/yr |
Axis Direct
Kotak Securities
FactSet
Sharekhan