Computer Science has many problems, puzzles, and patterns to solve. Below are some of the most popular Computer Science puzzles and the solution. Many of these puzzles are asked during interviews with software companies.
In the link above are the problem sets from all of UCF's programming team contests, and the judge solutions and judge data from most of them.
There are 8 basketballs and 1 scale. 7 of them weigh the same. 1 of them has a different weight, (it's heavier or lighter). How do you find the odd ball with 2 weighs?