Sorting to Find the Smallest Number
Interviewer: Write code for finding the smallest number in the list My code: 1 a.sort() 2 print(a[0])
An interviewer asks for code that finds the smallest number in a list. The programmer sorts the entire list and prints the first element, humorously using a simple but inefficient solution when a direct minimum operation would be more appropriate. EN: An interviewer asks for code that finds the smallest number in a list. The programmer sorts the entire list and prints the first element, humorously using a simple but inefficient solution when a direct minimum operation would be more appropriate.
- @gentoomemes / 4529 2023-05-14
- Type
- image
- Size
- 800×623 · 44.6 KiB
- Mood
- саркастичный, абсурдный
- Language
- en
- Added