Creating the Matrix (AKA Binary block)
Description:
So creating "the matrix" was probably pretty complicated and required advanced fictional tech although at some point they probably just needed some code to turn strings into cool looking blocks of binary. Part of this challenge includes figuring out how to turn a string into binary. Hint: all characters have a unique numerical value.
The object of this kata is to take a given string and return it in binary format as a square or binary block of n x n (e.g. 4x4) by inserting new line characters "\n"
at every nth index
"0101\n1101\n1001\n1001"
Some of the string will be lost creating a block, but its all in the name of symmetry and coolness so its fine. The console should log your 'cool' binary block!^^ (you can pass without this but wont see the block)
Similar Kata:
Stats:
Created | Nov 26, 2016 |
Warriors Trained | 44 |
Total Skips | 1 |
Total Code Submissions | 143 |
Total Times Completed | 14 |
JavaScript Completions | 14 |
Total Stars | 3 |
% of votes with a positive feedback rating | 33% of 6 |
Total "Very Satisfied" Votes | 2 |
Total "Somewhat Satisfied" Votes | 0 |
Total "Not Satisfied" Votes | 4 |
Total Rank Assessments | 4 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 7 kyu |