You are viewing a single comment's thread. Return to all comments →
Hey, my solution's the same, however it fails for Test Case #10. Any ideas?
string gridChallenge(vector<string> grid) { for(int i=0;i<grid.size();i++){ sort(grid[i].begin(),grid[i].end()); } if(is_sorted(grid.begin(),grid.end())) return "YES"; else return "NO"; }
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 →
Hey, my solution's the same, however it fails for Test Case #10. Any ideas?