Loading Question...
IIT
Find the number of ways to colour a 3 * n grid using 3 colours such that no row and column has all the colours the same. Print the answer modulo 10^9 + 7.
Expert in Data Structures & Algorithms. Building tools to help developers crack FAANG interviews.