Search
⌘K

Leetcode 1609. Even Odd Tree

Check by level-order traversal that each even-indexed level contains only odd values in strictly increasing order (left-to-right) and each odd-indexed level contains only even values in strictly decreasing order; return true iff all levels satisfy these parity and monotonicity constraints.

Asked at:

Meta


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Early September, 2024

Meta

Staff

Even Odd Tree - Given a binary tree, determine whether it is Even-Odd.

Comments

Your account is free and you can post anonymously if you choose.