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.
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.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Grid Challenge
You are viewing a single comment's thread. Return to all comments →
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.