7 kyu
Convert an array of strings to array of numbers
8,698 of 16,513romerojp
Description:
Oh no!
Some really funny web dev gave you a sequence of numbers from his API response as an sequence of strings!
You need to cast the whole array to the correct type.
Create the function that takes as a parameter a sequence of numbers represented as strings and outputs a sequence of numbers.
ie:["1", "2", "3"]
to [1, 2, 3]
Note that you can receive floats as well.
Arrays
Parsing
Strings
Fundamentals
Similar Kata:
Stats:
Created | Jul 11, 2016 |
Published | Jul 11, 2016 |
Warriors Trained | 20319 |
Total Skips | 794 |
Total Code Submissions | 29991 |
Total Times Completed | 16513 |
JavaScript Completions | 8698 |
PHP Completions | 1129 |
Ruby Completions | 598 |
C# Completions | 1064 |
Python Completions | 4575 |
C++ Completions | 818 |
Prolog Completions | 8 |
Total Stars | 102 |
% of votes with a positive feedback rating | 92% of 2094 |
Total "Very Satisfied" Votes | 1804 |
Total "Somewhat Satisfied" Votes | 235 |
Total "Not Satisfied" Votes | 55 |
Total Rank Assessments | 27 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 7 kyu |
Lowest Assessed Rank | 8 kyu |