GoLang Solution For UVa Online Judge: 10037 - Bridge
GO Solution For UVa 10037 - Bridge. In this post we will see how we can solve this challenge in GoLang for UVa Online Judge.
n people wish to cross a bridge at night. A group of at most two people may cross at any time, and each group must have a flashlight. Only one flashlight is available among the n people, so some sort of shuttle arrangement must be arranged in order to return the flashlight so that more people may cr...
You can find the full details of the problem Bridge at UVa Online Judge
1 4 1 2 5 10
17 1 2 1 5 10 2 1 2
Solution: Please check the main.go snippet for the solution.
Solution originally posted at: Github by @codingsince1985