Filter interviews by
I applied via Naukri.com and was interviewed in Jun 2024. There was 1 interview round.
Iterate through the array to find the second largest number.
Sort the array in descending order and return the second element.
Initialize two variables to keep track of the largest and second largest numbers while iterating through the array.
If the array contains duplicates, consider whether to include them in the comparison for the second largest number.
Top trending discussions
Interview experience
Assistant Engineer
898
salaries
| ₹1 L/yr - ₹5.4 L/yr |
Engineer
667
salaries
| ₹2 L/yr - ₹7 L/yr |
Assistant Manager
602
salaries
| ₹4 L/yr - ₹13.2 L/yr |
Senior Engineer
497
salaries
| ₹2.8 L/yr - ₹9.5 L/yr |
Production Engineer
496
salaries
| ₹1 L/yr - ₹6 L/yr |
Bharat Forge
Tata Motors
Mahindra & Mahindra
TVS Motor