Categorygithub.com/ayjaygee/go-swapMaxMin
repositorypackage
0.0.0-20241028212259-f9cbd7aafc63
Repository: https://github.com/ayjaygee/go-swapmaxmin.git
Documentation: pkg.go.dev

# README

go-swapMaxMin

The Maxxie and Minnie exercise

Given an input number, find the largest and smallest number that can be found after a single swap from the starting number.

For example:
With input 213
Max value with only 1 swap = 312
Min value with only 1 swap = 123

Inspired by https://jcarroll.com.au/2024/10/26/polyglot-maxxie-and-minnie/