Exemplo n.º 1
0
 static void Main(string[] args)
 {
     GroceryBagger x = new GroceryBagger();
     string[] a = {"DAIRY",
      "DAIRY",
      "PRODUCE",
      "PRODUCE",
      "PRODUCE",
      "MEAT"};
     Console.WriteLine(x.minimumBags(2, a));
     Console.ReadLine();
 }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            GroceryBagger x = new GroceryBagger();

            string[] a = { "DAIRY",
                           "DAIRY",
                           "PRODUCE",
                           "PRODUCE",
                           "PRODUCE",
                           "MEAT" };
            Console.WriteLine(x.minimumBags(2, a));
            Console.ReadLine();
        }