• + 0 comments

    def strangeGrid(r, c): return 5*r - 11 + 2*c if r % 2 == 0 else 5*r - 7 + 2*c