>_
longest_common_prefix.py
Python 3.14
Not run yet

+ 7 hidden

Input
strs = ["interval", "internet", "interior"]
Expected
"inter"

All three start with inter; at index 5 the characters are v, n and i.