Search
⌘K

Design a path validation system

Design a system that validates file or URL paths, ensuring they meet specified criteria and security requirements.

Asked at:

Microsoft

Microsoft


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Late December, 2025

Microsoft

Microsoft

Mid-level

Late December, 2025

Microsoft

Microsoft

Mid-level

given a path, I have to write a function that validate if this path: - have one node with no incoming edge. - have one node with no outcoming edge. - between each two nodes there are exactly one edge. - there is no cycles

Comments

Your account is free and you can post anonymously if you choose.