[Community Puzzle] Hotel

Coding Games and Programming Challenges to Code Better

Send your feedback or ask for help here!

Created by @Darazdeblek,validated by @DrMeyss,@Rutger and @DaNinja.
If you have any issues, feel free to ping them.

I love when you can solve a puzzle with just logic, without the need for brute force or searching for combinations.

Hi,

The rule “customer_name is NOT at the same floor as customer_name” is never used in any of the tests/validators, it probably should be removed from the statement.

1 Like

Hi,
Damn, you’re right ! Maybe I should just add a new test…

OK, I’m stuck. I pass all test cases but cannot pass validators 1 and 3. Usually test cases have some kind of detail in the name, but these seem to just be random. For example, can I assume that validator 1 uses the same hotel rules as test case 1, or is it just random? I’m trying every combination of names and rules that I can think of for custom cases and my code is getting them right. Any help/hints would be appreciated. Thanks!

Only some rules in Validators 1 and 3 are of the same kind as those in the corresponding tests.

Thank you!