You are given an integer n representing the number of rows in a grid of size n $ imes$
Return the total number of ways to paint the grid. Since the result can be very large, return it modulo
Constraints:
n == grid.length
n
You are given an integer n representing the number of rows in a grid of size n $ imes$
Return the total number of ways to paint the grid. Since the result can be very large, return it modulo
Constraints:
n == grid.length
n