public void RepeatedNTimes_1() { var solution = new _0961_NRepeatedElementInSize2NArray(); var result = solution.RepeatedNTimes(new int[] { 1, 2, 3, 3 }); Assert.AreEqual(3, result); }
public void RepeatedNTimes_3() { var solution = new _0961_NRepeatedElementInSize2NArray(); var result = solution.RepeatedNTimes(new int[] { 5, 1, 5, 2, 5, 3, 5, 4 }); Assert.AreEqual(5, result); }