Filter interviews by
Clear (1)
HashMap is a data structure that stores key-value pairs and uses hashing to efficiently retrieve values based on keys.
HashMap internally uses an array of linked lists to store key-value pairs.
When a key-value pair is added, the key is hashed to determine the index in the array where it will be stored.
If multiple keys hash to the same index, a linked list is used to handle collisions.
To retrieve a value, the key is hash...
Find anagrams from a string array
Iterate through each string in the array
Sort the characters of each string to create a key for comparison
Use a hashmap to group anagrams together
Return the grouped anagrams as arrays
A top view of a binary tree shows the nodes visible when looking at the tree from the top.
The top view of a binary tree is the set of nodes visible when looking at the tree from the top.
Nodes at the same horizontal distance from the root are considered at the same level.
Use a map to store the horizontal distance of each node and only keep the first node encountered at each horizontal distance.
Height of a binary tree is the maximum number of edges on the longest path from the root node to a leaf node.
Height of an empty tree is -1
Height of a tree with only one node is 0
Height of a binary tree can be calculated recursively by finding the height of left and right subtrees and adding 1 to the maximum of the two heights
I applied via Naukri.com and was interviewed in Jul 2024. There was 1 interview round.
Top trending discussions
I applied via Campus Placement and was interviewed before Oct 2020. There were 3 interview rounds.
I applied via Recruitment Consultant and was interviewed before Jan 2020. There was 1 interview round.
I applied via Naukri.com and was interviewed before Nov 2020. There was 1 interview round.
I applied via Naukri.com and was interviewed before Dec 2020. There were 3 interview rounds.
I applied via Campus Placement and was interviewed before Aug 2020. There were 5 interview rounds.
I applied via Naukri.com and was interviewed before Sep 2020. There were 3 interview rounds.
I applied via Naukri.com and was interviewed in Oct 2019. There were 3 interview rounds.
based on 2 interviews
Interview experience
Software Engineer
1.1k
salaries
| ₹0 L/yr - ₹0 L/yr |
System Engineer
533
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Software Engineer
402
salaries
| ₹0 L/yr - ₹0 L/yr |
Automation Test Engineer
362
salaries
| ₹0 L/yr - ₹0 L/yr |
Software Engineer II
300
salaries
| ₹0 L/yr - ₹0 L/yr |
Siemens
Veradigm
McKesson
Siemens Healthineers