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.
Don't modify the input.
I missed that, thanks
Test cases in JS don't work: they all expect empty array [] as solution even if it's not the case, e.g.:
gbwb [ 'bwbg',
'gbwb',
'gbbw',
'bspinqkn',
'ciwsgixm',
'kzhqx',
'updn',
'reuqlsjx',
'gwbb',
'pk',
'bwgb',
'wgbb',
'gwbb',
'or',
'bbwg',
'bjds',
'bgwb',
'gbwb',
'tsjlv',
'gwbb',
'bbgw',
'gvb',
'ovuxojd',
'wgbb',
'wtvth',
'fmcjosc',
'fxnyla',
'gbwb',
'aswglh',
'wgbb',
'kg',
'gwbb',
'qbg',
'vzdwe' ]
Didn't think about it, lol. Thank you!
Print the inputs.
Need help. My solution passes all sample tests but does not pass random tests at all. Is there a way to check what strings and arrays are generated in test cases so I could go through them? Thanks in advance.
This comment is hidden because it contains spoiler information about the solution
@Calgiles3 In line 4 array with directions is returned or empty array if no direction is found (instead of null). Hope it helps!
This comment is hidden because it contains spoiler information about the solution