Mercari

1 DSA problems asked in Mercari coding interviews

1 Easy
0 Medium
0 Hard
​

1 problem

Stack
1
Crawler Log Folder
Easy

A file system logs every folder change a user makes. `"../"` moves to the parent folder (staying put if already in the main folder), `"./"` stays in the current folder, and `"x/"` moves into the child folder `x`, which always exists. The user starts in the main folder. Given the list `logs`, return the minimum number of operations needed to go back to the main folder after all of them.