Simple Fun #265: The Janitor And His Mop
Last updated
Was this helpful?
Last updated
Was this helpful?
it must iterate 26 times (all charaters)from a-z
count difference last to begin
make new 26 size array and fill with 0
repeat all array and
make character use index
check fist index and last index
if index exists return lastIndex - firstIndex +1
if the index does not exist return 0