Motorola Solutions Interview Question: How to find the three biggest... | Glassdoor

Interview Question

Software Engineer Interview(Student Candidate) Chicago, IL

How to find the three biggest numbers in a list?

Answer

Interview Answer

1 Answer

0

Easiest way is to sort the list with a library function like qsort, then choose the last 3, as they will be in ascending order.

Andrew Lenart on May 27, 2016

Add Answers or Comments

To comment on this, Sign In or Sign Up.