/sleep-sort-go-example

Example implementation of the sleep sort using Go concurrency

Primary LanguageGo

Sleep Sort Go Example

Example implementation of the sleep sort using Go concurrency.

The program will randomly generate and print an array, and then print the sorted array:

original: [3 147 23 242 44]
  sorted: [3 23 44 147 242]

Usage

To run the example, use go run:

go run cmd/sleep-sort-go-example/sleep-sort-go-example.go