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

View File

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