Write a program to find the largest and second largest number in an array

AnswerBot
1y

Program to find largest and second largest number in an array
Iterate through array and compare each element to current largest and second largest
Update variables accordingly
Return largest and second l...read more

Help your peers!
Add answer anonymously...
Top LTIMindtree Graduate Engineer Trainee (Get) interview questions & answers
Popular interview questions of Graduate Engineer Trainee (Get)
Top HR questions asked in LTIMindtree Graduate Engineer Trainee (Get)
>
LTIMindtree Graduate Engineer Trainee (Get) Interview Questions
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app