Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function rosettaStone(input) {
- const templateRows = Number(input.shift());
- const templateMatrix = [];
- for (let i = 0; i < templateRows; i++) {
- let currentRow = input.shift().split(' ');
- currentRow = currentRow.map(Number)
- templateMatrix.push(currentRow);
- }
- const encodedMatrix = input.map((row) => row.split(' ').map((x) => Number(x)));
- const letterDecipher = letterCipher => {
- let num = letterCipher;
- if (letterCipher >= 27) {
- num = letterCipher % 27;
- }
- let letter = ' ';
- if (num > 0) {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement