explanation

Reasoning-
The solution uses recursion to handle infinite-depth lookup within directories.

Time-Complexity-

Worst-Time-Complexity - O(6n+2)
Worst-Time-Complexity of order = 0(n)

Space Complexity -

Worst-Space-Complexity - O(2n)
Worst-Space-Complexity of order = 0(n)

Reasoning-
The solution uses:

Time-Complexity-

Worst-Time-Complexity - O(6n+2)
Worst-Time-Complexity of order = 0(n)

Space Complexity -

Worst-Space-Complexity - O(2n)
Worst-Space-Complexity of order = 0(n)

 
0
Kudos
 
0
Kudos

Now read this

Day #49.

Lin replied I shouldn’t tell anyone that she is getting weight. In the evening I just sat in cafe and cool off, when the impulsive nature arises it seems better to not engage instead of getting swept away by clicking and going down to... Continue →