[Community Puzzle] Scary Ride at the Haunted Mansion

Coding Games and Programming Challenges to Code Better

Send your feedback or ask for help here!

Created by @nguyen.lam,validated by @Justalk,@brubru777 and @justhalf.
If you have any issues, feel free to ping them.

My code passes all the tests before submissions. Then passes all the tests after submission - except one: “4: do not mix the groups more adults”

Wondering where is the error. Can’t see the details of the case that it doesn’t pass.


[Mod edit: Please avoid posting codes on the forum. Please describe your approach instead.]

Please try this custom case:

Input

4
kAA AkA AkAAA Ax

Output

1
/< | A | A | A | A | A | A | A | A | D | D |
\< | k | D | k | D | k | A | D | x | D | D |

5DN1L, thank you so much for your kind response and the additional details. I’m humbled that people like you keep reading the forums and helping other people.

The case helped me to understand my error and I was able to submit with 100%. I am happy. :slight_smile:

Thank you again

1 Like