Challenge: Sum With Goroutines

Test the concepts we learned with a coding exercise.

Problem statement

For this challenge, implement a multi-threaded application to sum the numbers in the provided lists. The function will be provided with a slice of integer slices containing numbers to be added. It will then create one goroutine for each given slice that will process and return the sum of its list. The main function will then receive sums from all the other goroutines, and calculate and return the global sum.

Don't worry if the requirements seem unclear at this stage, a look at the sample input and output below would clarify further.

Sample input

Get hands-on with 1200+ tech skills courses.