[Community Puzzle] Couple's Picture-Frame

Coding Games and Programming Challenges to Code Better

Send your feedback or ask for help here!

Created by @Lisa-Has-Ideas,validated by @luigidaddy and @FredericLocquet.
If you have any issues, feel free to ping them.

Not a bad easy puzzle, but the problem statement really needs to be improved. It’s not at all clear that the intent is to have each name repeated without spaces such that the height and width of the frame are the least common multiple of the lengths of the names. A reasonable person might guess that the intent was to pad the shorter name with blanks, or pad the shorter name with a truncated version of itself.

The provided example is not very helpful, since it is a trivial case where the lengths of the two names are equal.

It was really only by running the test cases and seeing the “expected” output one line at a time that I was able to infer the intent of the author.