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

Coding Games and Programming Challenges to Code Better

Send your feedback or ask for help here!

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 :slight_smile:

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 :wink:

1 Like

Haha, thank you for the high- praise :smile_cat:

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 :slight_smile:

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
Expected: Aladdin plus Jasmine = Aladdine

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
          ^ ^

Alladine: 2 overlapping characters.

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).

(By the way, there’s a typo in the second half of your post: “aladdine” instead of “alladine”.)

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.

To get deeper on aladdine:

   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 :thinking:.