Microsoft Interview Question

Given a directory string "c/a/../b/./d" write a method that outputs the final directory. (In this example, "c/b/d"). A "." input stays in the current directory, a ".." input goes back one.

Interview Answer

Anonymous

Dec 15, 2015

Think stack

2