From fd3c25b7daadb73a36f785754328b8a53c140164 Mon Sep 17 00:00:00 2001 From: sangge-rockpi <2251250136@qq.com> Date: Sat, 20 Jan 2024 12:53:20 +0800 Subject: [PATCH] update 14 --- leetcode/14.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/leetcode/14.py b/leetcode/14.py index 1aa3e8a..6e02e8a 100644 --- a/leetcode/14.py +++ b/leetcode/14.py @@ -11,9 +11,8 @@ class Solution: for string in strs: if string[i] != strs[0][i]: break - - i += 1 return_string += strs[0][i] + i += 1 except: break