public SkyscraperNxNDataLists(int[] constraints, int n, SkyscrapersPrecalcData precalc)
        {
            Lists = new SkyscrapersNxNDataObject[4 * n];  //tablica list zainicjalizowana nulami

            //zainicjalizowanie list dla wszystkich ograniczen
            for (int i = 0; i < Lists.Length; i++)
            {
                if (constraints[i] != 0)
                {
                    Lists[i] = new SkyscrapersNxNDataObject(precalc.GetList(constraints[i]));
                }
            }
        }
Esempio n. 2
0
 public SkyscrapersNxN_Perms(int n, SkyscrapersPrecalcData precalc)
 {
     _n       = n;
     _precalc = precalc;
 }