Grid Challenge Discussions | | HackerRank

Grid Challenge

  • + 0 comments
    def gridChallenge(grid):
        return min(['YES' if list(c) == sorted(c) else 'NO' for c in zip(*[sorted(grid[r]) for r in range(len(grid))])])