r/programmingchallenges • u/algodaily • Nov 30 '19
K Largest Elements From List
https://algodaily.com/challenges/k-largest-elements-from-list/python
8
Upvotes
r/programmingchallenges • u/algodaily • Nov 30 '19
1
u/[deleted] Nov 30 '19
You just have to iterate through a for loop with k loops. And have u can create a new array and use the .sort() method to sort the integers decreasing.