solulubeta
Sign in
Story Problems / Strings
02.15 · Problem

Common Folder Path

Easy Vertical scanning Pro

This problem is part of solulu Pro

A file manager receives several file names/paths as strings. Find the longest common prefix shared by all of them; return an empty string if there is none.

Lifetime ₹2,000 ₹1,000 · Beta offer
Mark this problem as solved when you are finished.

Item 35 of 94 · updated 2026-10-12