In how many different ways can four books A, B, C and D be arranged one above another in a vertical order such that the books A and B are never in continuous position?
There are two identical red, two identical black, and two identical white balls.In how many different ways can the balls be placed in the cells (Each cell to contain one ball) shown above such that balls of the same colour do not occupy any two consecutive cells?