Data Structured58_q3_unary
Count Unary
fbeedca2-bf78-4b2c-98b3-1c8122b2004c.cppC++
1// Loading code...Selected Submission
100 / 100
0.04s
1640 KB
Tree
Time Comp.
O(N)
Space Comp.
O(H)
Readability
7/10
"The code implements a recursive traversal of a binary search tree to count the number of nodes with only one child (unary nodes). The core data structure is a tree, and recursion is used to process the tree nodes."
History
| Attempt | Points | Time ↓ |
|---|---|---|
| Try #4 | 100 | 11/17/2024 |
| Try #3 | 0 | 11/17/2024 |
| Try #2 | 0 | 11/17/2024 |
| Try #1 | 0 | 11/17/2024 |