8. Write a program to sort an array of elements in descending order with minimum lines of code?
AnswerBot
1y
Program to sort an array in descending order with minimum lines of code
Use built-in sort function with reverse parameter
Alternatively, use a lambda function with sorted() method
Both methods can be imp...read more
Help your peers!
Add answer anonymously...
Top Infosys Technology Analyst interview questions & answers
Popular interview questions of Technology Analyst
Top HR questions asked in Infosys Technology Analyst
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