Austin It's O(n) since it's one pass through the string and then one pass through the array whose size is constant no matter how big the string gets.
Bring it on! If I can't quickly solve it in BASIC, I probably could in 1983 8-bit Atari LOGO
Still more edits lol β If you're looking for some really crazy challenges, try some Knuth
yetanothertroll
Hey, you're back! Well, for this I'd use a simple two column array
BASIC code at forums.craigslist.org
I neglected to put a guard around that first For loop in case the string was empty, oops