Merge pull request #2731 from markwang1992/kama57-climbStairs

kama57.爬楼梯补充Go解法package和import
This commit is contained in:
程序员Carl 2024-09-23 11:11:50 +08:00 committed by GitHub
commit 351b5d316e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 10 additions and 0 deletions

View File

@ -184,6 +184,16 @@ if __name__ == '__main__':
### Go ### Go
```go ```go
package main
import (
"bufio"
"fmt"
"os"
"strconv"
"strings"
)
func climbStairs(n int, m int) int { func climbStairs(n int, m int) int {
dp := make([]int, n+1) dp := make([]int, n+1)
dp[0] = 1 dp[0] = 1