Count the Number of Arrays with K Matching Adjacent Elements

hardSolve on LeetCodeLast edited: July 31, 2025