Grid Challenge Discussions | | HackerRank

Grid Challenge

  • + 0 comments

    `def gridChallenge(grid): # Write your code here fixed = list(map(lambda x: sorted(x), grid)) n = len(grid) for index in range(len(grid[0])): for i in range(n-1): if (ord(fixed[i][index]) > ord(fixed[i+1][index])): return "NO" return "YES"