Skip to content

Commit

Permalink
Update algo.go
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanisham committed May 17, 2024
1 parent 7d35a9d commit a1b7641
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions algo.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ func Count[T comparable](source []T, memory int) float64 {
for n := 0; n < round; n++ {
if c := coin(); c != previousCoin {
delete(pen, t)
break
} else {
previousCoin = c
}
Expand Down

0 comments on commit a1b7641

Please sign in to comment.