You are viewing a single comment's thread. Return to all comments →
Pyton
return (5*r-5+2*(c-1)) if r % 2 == 1 else (5*r-9+2*(c-1))
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 →
Pyton
return (5*r-5+2*(c-1)) if r % 2 == 1 else (5*r-9+2*(c-1))