Strings: Making Anagrams

  • + 1 comment

    Ok, this works, but why does it only work when you loop through "a" first and then "b"?

    Can't this be optimized to have one loop and increment/decrement based on the position of "a" and "b" at the same time?