Exemple #1
0
        // [TestCase(1000000000, Result = -1)] // Turns out an Int[] can't handle 1,000,000,000 items, the max is 268435456
        public int LargeNonUniqueNumbers(int count)
        {
            int[] A;

            var items = new List <int>();

            for (int i = 1; i < count; i++)
            {
                items.Add(2);
            }

            A = items.ToArray();

            var underTest = new Uniqueness();

            return(underTest.findUniqueItem(A));
        }
Exemple #2
0
        public int SimpleNumbers(int[] A)
        {
            var underTest = new Uniqueness();

            return(underTest.findUniqueItem(A));
        }