flashlight(2, b, w), --- flashlight(2, 8, 4)

7 views
Skip to first unread message

henh...@gmail.com

unread,
Aug 31, 2022, 2:55:27 PM8/31/22
to

flashlight(2, Batteries, Working)

(on the Net) i only see flashlight(2, 8, 4) being asked, mentioned,

but flashlight(2, 6, 3) is interesting too.


flashlight(2, 6, 4)

flashlight(2, 5, 3)


flashlight(3, 5, 3)


_____________________________________________

A flashlight takes 2 (working) batteries.

There are 8 batteries (on the Table), but some of them may be Dead (and Non-Conducting).

To guarantee that the flashlight gets turned on, what is the minimum number of battery pairs you need to test ?

henh...@gmail.com

unread,
Aug 31, 2022, 2:59:54 PM8/31/22
to

where D = (b - w)

flashlight(1, b, w) = D+1



> flashlight(2, Batteries, Working)

> flashlight(Spec, Batteries, Working)
Reply all
Reply to author
Forward
0 new messages