#numbers #finding #digits

digit-loops

Rust crate for finding the number of loops in given numbers

1 stable release

1.0.0 Jun 21, 2022

#33 in #digits

MIT license

600KB
58 lines

digit-loops

Description

Rust library for finding out how many loops there are in a given string of digits

Inspired by this puzzle found somewhere on Facebook:

puzzle_image

Usage

use digit_loops;

digit_loops::number_of_loops_in_number("8888");
// => 8

No runtime deps