Reported interview periodDec 2025
Normalize a Change-Directory Path
Implement the path-resolution part of a shell cd command.
Practice focusRequirements - cwd is an absolute normalized path. - An absolute dest starts from / ; a relative destination starts from cwd . - Ignore empty components and . . - .. removes one component but never moves above / . - Collapse repeated slashes, remove trailing slashes except for root, and keep / as / . - Treat names literally; filesystem existence and permissions are outside the first stage. Examples should cover root, nested parents, absolute destinations, repeated separators, and names containing dots that are not exactly . or .. . Follow-ups 1.…