Close
change directory

Interview Questions – Implement linux change directory command

Problem Given an absolute path of the directory that may contain special symbols like .(Current directory), ..(Patent directory) & actual directory name. Write an effecient algorithm to get the actual path where the cd will land. Example Input: /com/./../working/../example/./interview output: /example/interview [1] . Will keep us in the current direction [2] .. Will take the…