Algorithm · Uber · Medium
You receive a folder structure described through three aligned arrays (idList, children, and nameList) along with a single targetId. idList: the collection of all folder IDs. Every value is unique. children: a list of lists. children[i] holds the IDs of the immediate subfolders of the folder with ID idList[i]. nameList: nameList[i] is the human-readable name for the folder whose ID is idList[i]. targetId: the ID of the folder whose complete path you must compute. The data…
Checking your access…