You are given an input i.e. directory name, Write an algorithm to find the absoulte path of the directory out of tens of thousands of directories, nested, and descendant directories. Dont bother about symlinks.
What is the best time complexity to solve this, and how do you solve ?
And, is there a similar LeetCode problem?