Skip to content
#

waterjug

Here are 3 public repositories matching this topic...

Language: All
Filter by language

The most popular Artificial Intelligence problem, the Water Jug poblem. There are two jugs of volume A litre and B litre. Neither has any measuring mark on it. There is a pump that can be used to fill the jugs with water. How can you get exactly x litre of water into the A litre jug. Assuming that we have unlimited supply of water.

  • Updated Aug 26, 2025
  • Java

Improve this page

Add a description, image, and links to the waterjug topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the waterjug topic, visit your repo's landing page and select "manage topics."

Learn more