Esempio n. 1
0
        public void UniqueOccurrences_3()
        {
            var solution = new _1207_UniqueNumberOfOccurrences();
            var result   = solution.UniqueOccurrences(new int[] { -3, 0, 1, -3, 1, 1, 1, -3, 10, 0 });

            Assert.IsTrue(result);
        }
Esempio n. 2
0
        public void UniqueOccurrences_1()
        {
            var solution = new _1207_UniqueNumberOfOccurrences();
            var result   = solution.UniqueOccurrences(new int[] { 1, 2, 2, 1, 1, 3 });

            Assert.IsTrue(result);
        }
Esempio n. 3
0
        public void UniqueOccurrences_2()
        {
            var solution = new _1207_UniqueNumberOfOccurrences();
            var result   = solution.UniqueOccurrences(new int[] { 1, 2 });

            Assert.IsFalse(result);
        }