Daily challenge for 2026-05-23
508. Count Nodes with Even Values
Given an array representing a binary tree in level-order traversal (where null represents an empty node), return the number of nodes that contain an even integer value.
Example:Input: tree = [1, 2, 3, 4, null, 6]Output: 3
Explanation: The even values are 2, 4, and 6.
Run this challenge interactively in Python or JavaScript when the app loads.