Filter interviews by
45 Basic aptitude question
1 hr Heap and String
Top trending discussions
I applied via campus placement at National Institute of Technology (NIT), Raipur and was interviewed in Dec 2023. There were 4 interview rounds.
3 questions - DFS, Greedy and Priority Queue
Max heap is a data structure where the parent node is always greater than or equal to its child nodes.
Start by creating an array to store the elements of the max heap.
Insert elements into the array and maintain the heap property by swapping elements if necessary.
Implement functions like insert, extractMax, and heapify to maintain the max heap structure.
Example: If we have elements 10, 7, 15, 3, 8, the max heap would be
Find the second largest number in an array of strings.
Convert the array of strings to an array of integers.
Sort the array in descending order.
Return the second element in the sorted array.
I applied via campus placement at National Institute of Technology (NIT), Raipur and was interviewed in Dec 2023. There were 4 interview rounds.
3 questions - DFS, Greedy and Priority Queue
Max heap is a data structure where the parent node is always greater than or equal to its child nodes.
Start by creating an array to store the elements of the max heap.
Insert elements into the array and maintain the heap property by swapping elements if necessary.
Implement functions like insert, extractMax, and heapify to maintain the max heap structure.
Example: If we have elements 10, 7, 15, 3, 8, the max heap would be
Find the second largest number in an array of strings.
Convert the array of strings to an array of integers.
Sort the array in descending order.
Return the second element in the sorted array.
posted on 22 Oct 2023
I applied via Naukri.com and was interviewed before Oct 2022. There were 4 interview rounds.
posted on 31 Aug 2022
I applied via Campus Placement and was interviewed before Aug 2021. There were 2 interview rounds.
based on 1 interview
Interview experience
based on 2 reviews
Rating in categories
Assistant Vice President
2.3k
salaries
| ₹17 L/yr - ₹45 L/yr |
Senior Analyst
1.1k
salaries
| ₹3 L/yr - ₹11.4 L/yr |
Assistant Manager
986
salaries
| ₹7.9 L/yr - ₹24 L/yr |
Process Advisor
936
salaries
| ₹1 L/yr - ₹8.3 L/yr |
Analyst
898
salaries
| ₹5 L/yr - ₹20 L/yr |
Deutsche Bank
Accenture
Amazon
Deloitte