We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Grid Challenge
- Discussions
Grid Challenge
Grid Challenge
Sort by
recency
|
481 Discussions
|
Please Login in order to post a comment
Yeah kinda annoying for them to say square grid which implies elements in input have the same length as the number of inputs.
Problem and tests are not consistent, the problem states square grids but the test have non square grids.
Scala Solution
I had to assume column length can differ from number of strings/rows/n;
int cols = grid[0].Length;
Using JS, I couldn't get test case 10 to work.
It is too large for a custom input to test and doing it manually I got pretty deep into the test case file and was passing all the test cases,
I passed all other test cases...and got it to work with Python, so yay...
Not to mention the lies about the 'n' variable in the description.
Overall, this was a great problem!