GoalScope — longest_common_prefix (Qwen2.5-Coder-32B-Instruct) — hover a token to see the patched verbalization
↵
<code>↵
def longest_common_prefix(strs):↵
"""Find the longest common prefix string amongst an array of strings."""↵
if not strs:↵
return ""↵
prefix = strs[0]↵
for s in strs[1:]:↵
while not s.startswith(prefix):↵
prefix = prefix[:-1]↵
if not prefix:↵
return ""↵
return prefix↵
</code>