8 kyu
CSV representation of array
10,575 of 19,711Dmitry Kudla
Description:
Create a function that returns the CSV representation of a two-dimensional numeric array.
Example:
input:
[[ 0, 1, 2, 3, 4 ],
[ 10,11,12,13,14 ],
[ 20,21,22,23,24 ],
[ 30,31,32,33,34 ]]
output:
'0,1,2,3,4\n'
+'10,11,12,13,14\n'
+'20,21,22,23,24\n'
+'30,31,32,33,34'
Array's length > 2.
More details here: https://en.wikipedia.org/wiki/Comma-separated_values
Note: you shouldn't escape the \n
, it should work as a new line.
Fundamentals
Arrays
Strings
Similar Kata:
Stats:
Created | Dec 16, 2017 |
Published | Dec 16, 2017 |
Warriors Trained | 32285 |
Total Skips | 1420 |
Total Code Submissions | 50431 |
Total Times Completed | 19711 |
JavaScript Completions | 10575 |
Python Completions | 6101 |
Ruby Completions | 361 |
C Completions | 195 |
C# Completions | 666 |
D Completions | 12 |
Go Completions | 766 |
Rust Completions | 376 |
TypeScript Completions | 459 |
PHP Completions | 384 |
Scala Completions | 32 |
CoffeeScript Completions | 11 |
Java Completions | 603 |
Julia Completions | 7 |
Prolog Completions | 5 |
Total Stars | 346 |
% of votes with a positive feedback rating | 91% of 2303 |
Total "Very Satisfied" Votes | 1942 |
Total "Somewhat Satisfied" Votes | 297 |
Total "Not Satisfied" Votes | 64 |
Total Rank Assessments | 3 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 7 kyu |
Lowest Assessed Rank | 8 kyu |