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
|
471 Discussions
|
Please Login in order to post a comment
My Java 8 Solution
No clever way of solving this; You have to iterate through the list, convert each string into a char array, sort them, create a new sorted gridand than iterate through the new grid with a nested for loop, and and check if the vertical lines are in order.
The answers for some of the hidden test cases are literally wrong according to the definition presented in the problem
static string gridChallenge(List grid) { for (int i = 0; i < grid.Count; i++) { char[] caracteres = grid[i].ToCharArray();
}
This question is garbage in its current state. The test cases do not conform to the requirements in the problem description, and the input parameters themselves contradict eachother.