Skip to content

Commit

Permalink
Merge pull request youngyangyang04#2472 from techick/patch-2
Browse files Browse the repository at this point in the history
Update 0343.整数拆分.md
  • Loading branch information
youngyangyang04 authored Apr 11, 2024
2 parents deea6b0 + dd80ba7 commit f5fcd62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion problems/0343.整数拆分.md
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ class Solution:
def integerBreak(self, n):
if n == 2: # 当n等于2时,只有一种拆分方式:1+1=2,乘积为1
return 1
if n == 3: # 当n等于3时,只有一种拆分方式:1+1+1=3,乘积为1
if n == 3: # 当n等于3时,只有一种拆分方式:2+1=3,乘积为2
return 2
if n == 4: # 当n等于4时,有两种拆分方式:2+2=4和1+1+1+1=4,乘积都为4
return 4
Expand Down

0 comments on commit f5fcd62

Please sign in to comment.