在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:learn-co-curriculum/selection-sort开源软件地址:https://github.com/learn-co-curriculum/selection-sort开源编程语言:Ruby 69.6%开源软件介绍:Day 4: Selection SortLearning Goals
InstructionsSort an Array of numbers using selection sort. The selection sort algorithm sorts an array by repeatedly finding the minimum element (lowest value) in the input Array, and then putting it at the correct location in the sorted Array.
Use the language of your choosing. We've included starter files for some languages where you can pseudocode, explain your solution and code. BenchmarkingFor this task, we are also asking you to calculate the average runtime of your solution. In other words, you run it a bunch of times and then divide the total time it took for the solution to run by the number of times it ran. Here is the pseudocode for creating your own basic benchmarking procedure:
We have provided you with the long input to use for benchmarking. Before you start coding
And remember, don't run our tests until you've passed your own! How to run your own testsRuby
JavaScript
How to run our testsRuby
JavaScript
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论