Round 1
Questions:
Simplify Path Variation
You are provided with both the current working directory and a change directory command.
Candidate's Approach
The candidate initially attempted to split the path using cd+"/"+ cwd
instead of cwd + "/" + cd
, which caused confusion. After the interviewer pointed out the mistake, the candidate quickly corrected the order and was able to test the solution completely.
Interviewer's Feedback
No feedback provided.