8 kyu
Add Length
18,998 of 37,878debri
Description:
What if we need the length of the words separated by a space to be added at the end of that same word and have it returned as an array?
Example(Input --> Output)
"apple ban" --> ["apple 5", "ban 3"]
"you will win" -->["you 3", "will 4", "win 3"]
Your task is to write a function that takes a String and returns an Array/list with the length of each word added to each element .
Note: String will have at least one element; words will always be separated by a space.
Arrays
Lists
Fundamentals
Similar Kata:
Stats:
Created | Jul 8, 2015 |
Published | Jul 8, 2015 |
Warriors Trained | 49503 |
Total Skips | 1692 |
Total Code Submissions | 76420 |
Total Times Completed | 37878 |
JavaScript Completions | 18998 |
Python Completions | 14429 |
Ruby Completions | 1634 |
CoffeeScript Completions | 65 |
Elixir Completions | 405 |
C# Completions | 1742 |
Rust Completions | 696 |
D Completions | 16 |
TypeScript Completions | 614 |
Scala Completions | 39 |
Java Completions | 320 |
Total Stars | 347 |
% of votes with a positive feedback rating | 94% of 3388 |
Total "Very Satisfied" Votes | 3028 |
Total "Somewhat Satisfied" Votes | 326 |
Total "Not Satisfied" Votes | 34 |