7 kyu
Convert an array of strings to array of numbers
8,864 of 16,904romerojp
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 | 20753 |
Total Skips | 807 |
Total Code Submissions | 30752 |
Total Times Completed | 16904 |
JavaScript Completions | 8864 |
PHP Completions | 1141 |
Ruby Completions | 602 |
C# Completions | 1086 |
Python Completions | 4747 |
C++ Completions | 845 |
Prolog Completions | 9 |
Total Stars | 102 |
% of votes with a positive feedback rating | 92% of 2115 |
Total "Very Satisfied" Votes | 1822 |
Total "Somewhat Satisfied" Votes | 238 |
Total "Not Satisfied" Votes | 55 |
Total Rank Assessments | 27 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 7 kyu |
Lowest Assessed Rank | 8 kyu |