package
Version:
v0.0.0-...-e61498d
Opens a new window with list of versions in this module.
Published: Feb 4, 2024
License: Unlicense
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Decode converts a base 5 SNAFU string to an integer in base 10.
Encode converts an integer in base 10 to a base 5 SNAFU string.
Pow returns x^n, the base-x exponential of n.
func Reverse[T any](s []T) []T
Reverse returns a new slice with the elements of s in Reverse order.
Exercise for Advent of Code 2022 day 25.
One returns the answer to the first part of the exercise.
answer: 2==221=-002=0-02-000
Two returns the answer to the second part of the exercise.
answer:
Source Files
¶
Click to show internal directories.
Click to hide internal directories.