static void Main(string[] args) { string rowNum = "AA"; var solution = new Solution(); Console.WriteLine("{0} = {1}", rowNum, solution.TitleToNumber(rowNum)); }
public void Test(int n, bool expected) { var actual = new Solution().IsPowerOfTwo(n); Assert.Equal(expected, actual); }
public Program() { solution = new Solution(); }
public void Test(int[] nums, bool expected) { var actual = new Solution().ContainsDuplicate(nums); Assert.Equal(expected, actual); }
public void Test(int num, int expected) { var actual = new Solution().AddDigits(num); Assert.Equal(expected, actual); }
public void Test(int[] arr, int expected) { int actual = new Solution().MissingNumber(arr); Assert.Equal(expected, actual); }