Skip to content

ShubhamKJ123/WATER-JUG-PUZZLE-using-A.I

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WATER JUG PROBLEM - ARTIFICIAL INTELLIGENCE

  • Write a program to solve the following problem using Golang:
    1. You have two jugs, a 4-gallon and a 3-gallon. Neither of the jugs has markings on them. There is a pump that can be used to fill the jugs with water. How can you get exactly two gallons of water in the 4 gallon jug?
    1. Generalise the problem above so that the parameters to your solution include the sizes of each jug and the final amount of water to be left in the larger jug.

Reference Links

https://runestone.academy/runestone/books/published/pythonds/Graphs/toctree.html

Releases

No releases published

Packages

No packages published

Languages