Build a Palindrome

  • + 1 comment

    This one is really annoying, because the description of the problem must be wrong. It specifically says find the longest s possible, and for the example given, the longest possible palindrome from substrings in bac bac, would be 'abba' or 'cbbc' (but I guess abba since it says if multiple exist choose the first alphabetically). aba is NOT the longest.