Deduce row order from logic clues
MathWorksSoftware Engineer · Online AssessmentLast updated
This question evaluates logical deduction, constraint satisfaction, and basic combinatorial reasoning used to infer ordering from positional clues. Commonly asked to assess a candidate's ability to apply discrete math and spatial reasoning within the Statistics & Math domain, it targets conceptual understanding of constraints rather than practical implementation.
Four coworkers—A, B, C, and D—are standing in a single row facing north. The following clues hold: (
- A is somewhere to the left of C. (
- B is not at either end. (
- D stands next to exactly one of A or C. (
- There is exactly one person between A and B. Determine the exact order from left to right and explain your deduction steps.
Solution walkthrough is for members
Get the full walkthrough with reference code and complexity analysis, plus Kitty Coach at 300 messages a day. Hints, the code runner and community answers stay free.