• + 0 comments

    def strangeGrid(r, c): if (r-1) % 2 == 0: first_number = (r // 2) * 10 else: first_number = (((r-1) //2) * 10) + 1 return first_number + ((2 * c)-2)