A,B,C,D,E are teachers who may teach: math, physics, chemistry, biology or geography(one subject per person, we don't know who teaches what).
They teach in classrooms 110,111,112,113,114. Tell which teacher teaches which subject in which classroom
- D teaches in classroom which's number is bigger or smaller by 2 than number of classroom that E teaches in.
- A teaches in classroom which's number is smaller by 1 than number of classroom, that B teahes in.
- C teaches maths or physics.
- A does not teaches chemistry. Chemistry is not taught in 110 or 112.
- Bilogy is not taught by A nor E.
- In classroom 113 there is no physics or geography.
- B teaches in classroom which's number is bigger than C's,D's and E's classroom.
The problem is that I don't know how to draw a table for that puzzle. Should it be 3 dimensional, or 3 2d arrays?
You have three things which you want to put together.
So the table could look like this:
There seem to be two solutions though :/