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

More By Author:

Check out these other kata created by romerojp

Stats:

CreatedJul 11, 2016
PublishedJul 11, 2016
Warriors Trained20319
Total Skips794
Total Code Submissions29991
Total Times Completed16513
JavaScript Completions8698
PHP Completions1129
Ruby Completions598
C# Completions1064
Python Completions4575
C++ Completions818
Prolog Completions8
Total Stars102
% of votes with a positive feedback rating92% of 2094
Total "Very Satisfied" Votes1804
Total "Somewhat Satisfied" Votes235
Total "Not Satisfied" Votes55
Total Rank Assessments27
Average Assessed Rank
7 kyu
Highest Assessed Rank
7 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • romerojp Avatar
  • jhoffner Avatar
  • 10XL Avatar
  • user5036852 Avatar
  • asedov Avatar
  • Voile Avatar
  • hobovsky Avatar
  • stellartux Avatar
  • albertogcmr Avatar
  • SergeySinyavskiy Avatar
  • ejini战神 Avatar
Ad