Module string

Source

Modules§

atoi_alt

Functions§

atoi
longest_substring
Loops through the string putting the current iterator against the character in a hashmap. It counts the total characters by subtracting the iterator from where the first character started. If the character is duplicated when inserting into the hashmap, the new start becomes where the first duplicated character occurred, So anything after that is still valid as unique string