Leetcode 1598. Crawler Log Folder
Simulate the folder navigation described by the logs and track the current depth (or stack height): "x/" increments depth, "./" is a no-op, "../" decrements depth but not below 0. Return the final depth as the minimum number of "../" operations needed to return to the main folder.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Hello Interview Premium
Your account is free and you can post anonymously if you choose.