64 Tiny Algorithmic Puzzles in Go

362 views
Skip to first unread message

BUGFIX 66

unread,
Mar 2, 2024, 12:42:51 PM3/2/24
to golang-nuts

Solve each puzzle by making a tiny change to a short piece of Go code.
Edited code is compiled and tested on the host server.
Each puzzle is a useful little algorithm or idea.
Unfortunately, most users can't solve puzzle #3 and give up.
Enjoy.

qiulaidongfeng

unread,
Mar 2, 2024, 8:25:33 PM3/2/24
to golang-nuts
I wrote a correct one, as shown here:

peterGo

unread,
Mar 2, 2024, 11:36:47 PM3/2/24
to golang-nuts
qiulaidongfeng,

A simpler, solution:


peter

BUGFIX 66

unread,
Mar 3, 2024, 11:05:00 AM3/3/24
to peterGo, golang-nuts
Exactly!

--
You received this message because you are subscribed to a topic in the Google Groups "golang-nuts" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/golang-nuts/2bjj9Ftm0zw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/1f2d2c9b-0b07-4030-8f49-37f22210be8en%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages