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.
defgridChallenge(grid):# Write your code hereforiinrange(0,len(grid)):grid[i]=''.join(sorted(grid[i]))forcolinrange(0,len(grid[0])):anch=-999forrowinrange(0,len(grid)):ifanch>ord(grid[row][col]):return"NO"anch=ord(grid[row][col])return"YES"
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 →
PYTHON