diff --git a/practice/algorithms/warmup/staircase.go b/practice/algorithms/warmup/staircase.go index 932f54e..405d924 100644 --- a/practice/algorithms/warmup/staircase.go +++ b/practice/algorithms/warmup/staircase.go @@ -19,7 +19,7 @@ func main() { for j := 0; j < n-i-1; j++ { fmt.Print(" ") } - for j := 0; j <= i; j++ { + for j := 0; j <= i+1; j++ { fmt.Print("#") } fmt.Println()