Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Not with rec((x + 1) % 9, y + 1), but with rec((x + 1) % 9, y). But even in this case, to move to the next row, the recursion would need to walk through the current row once again. And only in the second walk, when it is on the last cell, it checks that the cell is filled, it moves to the next row. If (y + 1) is used, then the recursion would change the row every time it meets empty cell.
Already raised as issue
This also will have some issues no? For example if I put "!!!" at the end it will return wrong string. Even with only "!" at the end or any single character for that matter, You forgot to put the character back, 'if(el.length > 1)' will simply skip the single character :)
This is a good point. The instructions state that the input map is not a traditional computer science map, which is traditionally configured as you state; each subarray is a row (not a column), and the values of the subarray refer to the columns (not rows). I can handle this flip because it's explained in the instructions, but what is very confusing is that the instructions do not state how x and y are related to columns and rows. All that is stated is that x: 0, y: 0 refers to top-left. It should be stated more clearly in the instructions whether the x refers to the columns (i.e. the sub arrays in the map) or the rows, (the value of each sub array), especially since they redefined how a 2D map is configured with 2D arrays.