DatadogSoftware Engineer · Phone ScreenCodemia practiceValidate binary tree complete
Given a binary tree, implement a function to determine if it is a complete binary tree. A complete binary tree is defined as every level, except possibly the last, being completely filled, and all nodes are as far left as possible. The function should return a boolean value: `true` if the tree is complete, and `false` otherwise.
Medium
Coding & Algorithms