在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:learn-co-curriculum/find-shortest-string开源软件地址:https://github.com/learn-co-curriculum/find-shortest-string开源编程语言:Ruby 69.8%开源软件介绍:Day 5: Find Shortest StringLearning Goals
InstructionsGiven an Array of strings, return the shortest string. If there is more than one string of that length, return the string that comes first in the list. The Array will have a minimum length of 1.
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:
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
请发表评论