Filter interviews by
I applied via Campus Placement and was interviewed in Jan 2024. There was 1 interview round.
The question is about finding the second largest element in an array using Java/C++ and SQL.
Iterate through the array and keep track of the largest and second largest elements
Use a for loop or while loop to iterate through the array
In Java, you can use Arrays.sort() method to sort the array in ascending order and then access the second last element
In SQL, you can use the ORDER BY clause to sort the array in descending ...
Top trending discussions
Interview experience
Automation Developer
47
salaries
| ₹3 L/yr - ₹5.5 L/yr |
Senior Automation Engineer
39
salaries
| ₹7.3 L/yr - ₹21 L/yr |
Automation Engineer
24
salaries
| ₹4 L/yr - ₹12.6 L/yr |
RPA Developer
20
salaries
| ₹3.5 L/yr - ₹11 L/yr |
Technical Automation Lead
15
salaries
| ₹21 L/yr - ₹25 L/yr |
Infosys
TCS
Wipro
HCLTech