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

blocker - fear !

there are things that comes into the way and fear is leader of them for me. it is seriously affecting quality of my life. and I am experiencing unhealthy amount of it these days. to the point where it is shattering my confidence... Continue →