7 kyu
Testing 1-2-3
1,931 of 80,851acr
Description:
Your team is writing a fancy new text editor and you've been tasked with implementing the line numbering.
Write a function which takes a list of strings and returns each line prepended by the correct number.
The numbering starts at 1. The format is n: string
. Notice the colon and space in between.
Examples: (Input --> Output)
[] --> []
["a", "b", "c"] --> ["1: a", "2: b", "3: c"]
Arrays
Fundamentals
Similar Kata:
Stats:
Created | Jan 21, 2015 |
Published | Jan 21, 2015 |
Warriors Trained | 117433 |
Total Skips | 10923 |
Total Code Submissions | 168326 |
Total Times Completed | 80851 |
Ruby Completions | 1931 |
Haskell Completions | 706 |
Clojure Completions | 462 |
JavaScript Completions | 33062 |
Python Completions | 27986 |
Java Completions | 7953 |
R Completions | 332 |
CoffeeScript Completions | 25 |
C# Completions | 3507 |
C++ Completions | 3429 |
Julia Completions | 55 |
TypeScript Completions | 1860 |
Lua Completions | 284 |
Rust Completions | 815 |
Crystal Completions | 7 |
PHP Completions | 150 |
Total Stars | 712 |
% of votes with a positive feedback rating | 93% of 6056 |
Total "Very Satisfied" Votes | 5255 |
Total "Somewhat Satisfied" Votes | 713 |
Total "Not Satisfied" Votes | 88 |
Total Rank Assessments | 814 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 2 kyu |
Lowest Assessed Rank | 8 kyu |