Commits

Miki Tebeka  committed d340bc7

uint64

  • Participants
  • Parent commits 6fdbe5f

Comments (0)

Files changed (1)

 	"strconv"
 )
 
-func fib(n int) []int {
-	fibs := make([]int, n)
-	a, b := 1, 1
+func fib(n int) []uint64 {
+	var a, b uint64
+	fibs := make([]uint64, n)
+	a, b = 1, 1
 	for i := 0; i < n-1; i++ {
 		fibs[i] = a
 		a, b = b, a+b