セクション 2. 章 10
single
Challenge: Finding the Top 3 Hardest-Working Employees
メニューを表示するにはスワイプしてください
タスク
スワイプしてコーディングを開始
Several employees work at the factory, and we need to identify the three hardest-working employees based on the number of hours worked.
- Sort the list of
workersin ascending order by the number ofhoursWorkedusing thecomparingInt()method. - Reverse the list of
workersto make it descending by the number ofhoursWorkedusing thereversed()method. - Select the top three workers with the highest
hoursWorkedusing thelimit()method. - Print each of these three workers to the console.
解答
すべて明確でしたか?
フィードバックありがとうございます!
セクション 2. 章 10
single
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください