About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
January 2020 - Solution
There is a simple solution for 4 barrels and 1 day: A;B;C;D.
Adding the prefix E,F,G,H provides a trivial solution for the example with 8 barrels and 2 days:
E.A;F.B;G.C;H.D
Alas, it does not work for our 12-barrel 3-day problem since I.E.A;J.F.B;K.G.C;K.H.D does not distinguish, for example, between IA and IE.
However, the example we gave included a (very) large hint. You can add an I,J,K,L prefix to it and get the solution:
I.B.DG;J.DF.AB;K.AH.CF;L.C.GH