Microsoft Interview Question

Implement a function to simplify a unix based path. Example: input: /a/b/../c/. output: /a/c

Interview Answers

Anonymous

Jul 2, 2019

Implemented with a stack.

Anonymous

Oct 19, 2019

Leetcode: simply path