| # | Time Complexity | Space Complexity | Description | Submission | Runtime (4 trials) | Memory (4 trials) |
|---|---|---|---|---|---|---|
| 1 | O(n) | O(n) | Use recursive function to do DFS, build run sum and run path during the travel and get the result list | Submission | 43 ms | 21.7 MB |
| # | Time Complexity | Space Complexity | Description | Submission | Runtime (4 trials) | Memory (4 trials) |
|---|---|---|---|---|---|---|
| 1 | O(n) | O(n) | Use recursive function to do DFS, build run sum and run path during the travel and get the result list | Submission | 43 ms | 21.7 MB |