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.
c++ solution
because strings are essentially vectors of chars, we can sort them alphabetically using built in sort function.
then we check all columns for any pair of consecutive characters that are not in ascending order
Grid Challenge
You are viewing a single comment's thread. Return to all comments →
c++ solution because strings are essentially vectors of chars, we can sort them alphabetically using built in sort function. then we check all columns for any pair of consecutive characters that are not in ascending order