public Entry() : base() { removeNthFromEnd = new RemoveNthFromEnd(); integerToRoman = new IntegerToRoman(); deleteColumnsMakeSorted = new DeleteColumnsMakeSorted(); minCoinChallenge = new MinCoinChallenge(); FuncTable.Add((int)FunctionIndex.RemoveNthFromEnd, removeNthFromEnd); FuncTable.Add((int)FunctionIndex.IntegerToRoman, integerToRoman); FuncTable.Add((int)FunctionIndex.DeleteColumnsMakeSorted, deleteColumnsMakeSorted); FuncTable.Add((int)FunctionIndex.MinCoinChallenge, minCoinChallenge); }
public Entry() : base() { integerReverse = new IntegerReverse(); palindromeNumber = new PalindromeNumber(); romanToInteger = new RomanToInteger(); validParentheses = new ValidParentheses(); findLongestCommonPrefix = new FindLongestCommonPrefix(); mergeTwoSortedArray = new MergeTwoSortedArray(); FuncTable.Add((int)FunctionIndex.IntegerReverse, integerReverse); FuncTable.Add((int)FunctionIndex.PalindromeNumber, palindromeNumber); FuncTable.Add((int)FunctionIndex.RomanToInteger, romanToInteger); FuncTable.Add((int)FunctionIndex.ValidParentheses, validParentheses); FuncTable.Add((int)FunctionIndex.FindLongestCommonPrefix, findLongestCommonPrefix); FuncTable.Add((int)FunctionIndex.MergeTwoSortedArray, mergeTwoSortedArray); }