2 ms·
Go solution to TreeWalk problem is wrong, or, rather, not real-world, because it has a memory leak. You need to make sure all goroutines finish, and not stuck o
by deepsun 4y ago
Go solution to TreeWalk problem is wrong, or, rather, not real-world, because it has a memory leak. You need to make sure all goroutines finish, and not stuck on reading/writing to a channel.
In Kotlin coroutines you can .cancel() a coroutine, but Go doesn't allow to cancel goroutines.