Esempio n. 1
0
        public string[] FindAllFor(int inputValue)
        {
            var allExpressions        = _permutator.FindAll();
            var calculableExpressions = allExpressions.Select(x => new Expression(x)).ToList();

            return(calculableExpressions.Where(e => e.Value() == inputValue).Select(e => e.Format()).ToArray());
        }
Esempio n. 2
0
        public int FindAllPossibleEquations(string setupDigits, string definedOperations)
        {
            _permutator = new Permutator(setupDigits, ArrayOf(definedOperations));

            var result = _permutator.FindAll();

            Display(result);
            return(result.Length);
        }