Problem 3339 · Medium

Find the Number of K-Even Arrays

Track how many arrays end on an even or odd value for each count of good pairs, then extend one entry at a time.

Open the interactive visualisation