Search⌘ K
AI Features

Quiz on Problem Solving with Simple Programs

Test your knowledge of problem solving with simple programs.

We'll cover the following...
Technical Quiz
1.

Let’s start with a real-world problem:

  • We have 9 stones that are visually identical, but 1 of them is slightly heavier.
  • We have a beam balance to weigh and analyze the stones.
  • In every cycle, the same number of stones must be placed on each side of the balance. Known normal stones may be used to fill the remaining positions.

What is the most efficient way to definitively locate the heavier stone?

Note: A cycle refers to a round of events or actions that repeat.

A.

Measuring the stones by putting 1 stone on each side of the balance. Maximum 4 cycles.

B.

Measuring the stones by putting 2 stones on each side of the balance. Maximum 3 cycles.

C.

Measuring the stones by putting 3 stones on each side of the balance. Maximum 2 cycles.

D.

Measuring the stones by putting 4 stones on each side of the balance. Maximum 3 cycles.


1 / 5
...