Determine if a word or phrase is an isogram.
An isogram (also known as a "non-pattern word") is a word or phrase without a repeating letter, however spaces and hyphens are allowed to appear multiple times.
Examples of isograms:
The word isograms, however, is not an isogram, because the s repeats.
Register | Usage | Type | Description |
---|---|---|---|
$a0 |
input | address | null-terminated input string |
$v0 |
output | boolean | input is an isogram (0 = false , 1 = true ) |
$t0-9 |
temporary | any | used for temporary storage |
Sign up to Exercism to learn and master MIPS Assembly with 54 exercises, and real human mentoring, all for free.