From 2fe1729f5be41eb55fbc80e1862bf4779b463ace Mon Sep 17 00:00:00 2001 From: jonghoonpark Date: Sat, 4 May 2024 19:19:32 +0900 Subject: [PATCH] update post --- _posts/2024-02-18-leetcode-3.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/_posts/2024-02-18-leetcode-3.md b/_posts/2024-02-18-leetcode-3.md index 69b8b34..fbc57d1 100644 --- a/_posts/2024-02-18-leetcode-3.md +++ b/_posts/2024-02-18-leetcode-3.md @@ -37,9 +37,7 @@ class Solution: return length for i, char in enumerate(characters): - length = findLongestSubstring(i) - if length > longest: - longest = length + longest = max(longest, findLongestSubstring(i)) return longest ```