# [Community Puzzle] Tabloid Couple-Names đź’•

Coding Games and Programming Challenges to Code Better

Created by @Lisa-Has-Ideas,validated by @cedricdd,@_O-MEGA and @MrWaldron.
If you have any issues, feel free to ping them.

Failure
Found: Frida plus Diego = Dida Fridiego Friego
Expected: Frida plus Diego = Fridiego Friego

Question : why not Dida ? beginning of â€śDIegoâ€ť with the end of â€śfrIDAâ€ť with only 1 common letter. There is also 1 common letter in Fridiego and Friedo.

âž¤ Must not be shorter than the shortest individual-name.
1 Like

Dida would be a great Couple Name, but it violates the minimum length rule

OK I missed this rule, thank you.

1 Like

I never thought I would ever click on such banner picture and link name of my own free willâ€¦
Nice easy puzzle idea - as now becoming usual from you

1 Like

Haha, thank you for the high- praise

a nice challenge with lots of rules to trip up on
excellent tests

1 Like

Hello,

Ben and Jennifer
Why not : Jennifen ?

Tarzan and Jane
Why not : Jarzan Tane

Heidi and Spencer
Why not : Spenceidi Hencer

for the first 2:
âž¤ Include only Couple-Names with the most overlapping-letters possible

for the 3rd one:
there are 3 possible results and they must be listed in alphabetical order

2 Likes

thx and for finish

Ben and Jennifer
Why not : Jen

Jen is not Ben and not Jennifer

Rule ?!
Cannot be the same as either of the individual names because thatâ€™s just silly

Thanks for playing my puzzle

Ben plus Jennifer could be â€śBenniferâ€ť: That has 2-overlapping letters (â€śenâ€ť from Ben and â€śenâ€ť from ennifer).
So per rule â€śOnly Max Overlappingâ€ť we will NOT include any other options where there are less than 2 overlapping letters.

For Ben plus Jennifer to equal Jen (and have 2 over-lapping lettters), you would have to take the first part of Jennifer (Jen) and smoosh it with the last part of Ben (en). (The 2 over-lapping letters are â€śenâ€ť).
That is not acceptable since it violates the â€śMust contain at least one letter from each person, that isnâ€™t part of the overlapping-letter(s).â€ť rule. Benâ€™s entire contribution would be just the overlapping letters (â€śenâ€ť). (Poor Ben)

3 Likes

Only Max Overlapping:
âž¤ Include only Couple-Names with the most overlapping-letters possible. For example, if there is a Couple-Name that has 2 overlapping-letters, donâ€™t show others that have less than 2 overlapping-letters.

Iâ€™m passing all tests and all but one validatorâ€“failing validator 12. Can you provide the inputs or a distinguishing test?

Hi sammck
Thanks for playing my puzzle.

I just private messaged you the input.
(At least I think I did, but I canâ€™t seem to confirm that. So if you donâ€™t see it, let me know)

Let me know if you have any concerns or want the output also

1 Like

Hello. Nice puzzle idea.
I also have trouble with the 12th validator.
Could you provide me the input ?
Maybe in a public message ? Iâ€™m guessing other people will have the same problem in the future.

A public message is probably a bad idea. However, if a number of people have trouble with that validator, the author should think about whether a pair of test and validator should be added to cover any particular aspects of that validator.

2 Likes
Found: Aladdin plus Jasmine = Alasmine

What is wrong with Alasmine?

I am probably overlooking a rule, but I donâ€™t see why Alasmine is incorrect:
âž¤ Comparisons aren't case-sensitive. CHECK
âž¤ No spelling changes other than â€śsub-stringing" CHECK
âž¤ Must contain at least one letter from each person, that isn't part of the overlapping-letter(s). CHECK
âž¤ Must not be shorter than the shortest individual-name. CHECK
âž¤ Cannot be the same as either of the individual names because that's just silly CHECK

Then there is the MAX overlapping rule:
âž¤ Include only Couple-Names with the most overlapping-letters possible.

a l a s m i n e
a l l a d i n
j a s m i n e
^ ^

Alasmine: 2 overlapping characters

a l l a d i n e
a l l a d i n
j a s m i n e
^ ^

You didnâ€™t mention the first rule:

The overall process is:
Smoosh a left-substring (or whole name) of one person together with a right-substring (or whole name) of the other person, in such a way that there is at least 1 overlapping-letter (aka shared letter, aka common letter).

So, the proper way to check overlapping is:

[a l a] d d i n    <- "in" is not overlapping
+   j [a s m i n e]
^
=  a l a s m i n e
[a l a d d i n]    <- "in" is overlapping
+   j a s m [i n e]
^ ^
=  a l a d d i n e

2 Likes

Oops even more typos - In the second half of my post I use alladin, but it should be aladdin. So I have to check why my code produces alasmine instead of aladdine, rather than complaining here.

a l a d d i n e
a l a d d i n
j a s m i n e
^     ^ ^  <<a, i and n are overlapping

Is this counted as three overlaps (a, i and n) or two (only i and n)?

Added later - wait a moment, Iâ€™m getting crazy. Back to alasmine:

a l a s m i n e
a l a d d i n    <- You say: "in" is not overlapping - but why not?
j a s m i n e]
^     ^ ^

Why is alasmine not counted as having three overlapping characters (a, i and n)? From the statement I do not read that the overlapping letters must be at the start of the second part only - smoozing together should happen such that there are overlapping letters, which is happening with alasmine .