Simulate a file explorer's folder navigation using a stack-like log of operations.
Constraints
Example
['>>> min_operations(["d1/","d2/","../","d21/","./"])', '2', '>>> min_operations(["d1/","d2/","./","d3/","../","d31/"])', '3', '>>> min_operations(["../","../","./"])', '0', '>>> min_operations(["a/","b/","../","c/","./","../"])', '1']
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints