How to find the largest and smallest elements in an array.?
AnswerBot
1y
To find the largest and smallest elements in an array, use built-in functions or loop through the array.
Use Math.max() and Math.min() functions for numbers
For strings, use localeCompare() function
Loop...read more
Help your peers!
Add answer anonymously...
Popular interview questions of SAP PI PO Consultant
Top HR questions asked in Applexus Technologies SAP PI PO Consultant
>
Applexus Technologies SAP PI PO Consultant 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