Data Structured66_f1_lcrs
Left Child Right Sibling
0a45f2f0-2be5-42a7-a658-4e650231dbfb.cppC++
1// Loading code...Selected Submission
100 / 100
0.697s
2460 KB
TreeImplementation
Time Comp.
O(N)
Space Comp.
O(H)
Readability
6/10
"The code operates on a tree-like structure with 'left_child' and 'right_sibling' pointers, indicating a non-standard tree. The depth function recursively traverses this structure to calculate the depth of a node."
History
| Attempt | Points | Time ↓ |
|---|---|---|
| Try #12 | 100 | 11/17/2024 |
| Try #11 | 0 | 11/17/2024 |
| Try #10 | 0 | 11/17/2024 |
| Try #9 | 0 | 11/17/2024 |
| Try #8 | 0 | 11/17/2024 |
| Try #7 | 0 | 11/17/2024 |
| Try #6 | 0 | 11/17/2024 |
| Try #5 | 0 | 11/17/2024 |
| Try #4 | 0 | 11/17/2024 |
| Try #3 | 0 | 11/17/2024 |
| Try #2 | 0 | 11/17/2024 |
| Try #1 | 0 | 11/17/2024 |