Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions course/13-channels/exercises/6-range/code.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ import (
"time"
)

func concurrrentFib(n int) {
func concurrentFib(n int) {
// ?
}

// TEST SUITE - Don't touch below this line

func test(n int) {
fmt.Printf("Printing %v numbers...\n", n)
concurrrentFib(n)
concurrentFib(n)
fmt.Println("==============================")
}

Expand Down
4 changes: 2 additions & 2 deletions course/13-channels/exercises/6-range/complete.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"time"
)

func concurrrentFib(n int) {
func concurrentFib(n int) {
ch := make(chan int)
go fibonacci(n, ch)

Expand All @@ -18,7 +18,7 @@ func concurrrentFib(n int) {

func test(n int) {
fmt.Printf("Printing %v numbers...\n", n)
concurrrentFib(n)
concurrentFib(n)
fmt.Println("==============================")
}

Expand Down
2 changes: 1 addition & 1 deletion course/13-channels/exercises/6-range/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This example will receive values over the channel (blocking at each iteration if

It's that time again, Mailio is hiring and we've been assigned to do the interview. For some reason, the [Fibonacci sequence](https://en.wikipedia.org/wiki/Fibonacci_number) is Mailio's interview problem of choice. We've been tasked with building a small toy program we can use in the interview.

Complete the `concurrrentFib` function. It should:
Complete the `concurrentFib` function. It should:

* Create a new channel of `int`s
* Call `fibonacci` in a goroutine, passing it the channel and the number of Fibonacci numbers to generate, `n`
Expand Down