You are viewing a single comment's thread. Return to all comments →
def strangeGrid(r, c): return 5*r - 11 + 2*c if r % 2 == 0 else 5*r - 7 + 2*c
Seems like cookies are disabled on this browser, please enable them to open this website
Strange Grid Again
You are viewing a single comment's thread. Return to all comments →
def strangeGrid(r, c): return 5*r - 11 + 2*c if r % 2 == 0 else 5*r - 7 + 2*c