Introduction
A puzzle is a magnificent measure of one's analytical skills and lateral thinking. Many product-based companies ask the riddles to help them filter candidates based on their real-world problem-solving skills to approach a problem they have not seen before.
A puzzle may have multiple solutions. The interviewer is generally interested in the candidate's approach to solving the mystery and the approach to building and thinking creatively about the answer to the puzzle.
On the same note, we will discuss an exciting puzzle commonly asked in interviews; Place the numbers.
Puzzle Description
Assume you are given a sequence of numbers 1,2,3,4,5,6,7,8. You are supposed to place the numbers in the following order such that no two numbers are adjacent according to the series. For example, one can not be adjacent to 2 but adjacent to 3, 4, 5, 6, 7, 8. Similarly, place the number accordingly.