Example #1
0
        static void Main(string[] args)
        {
            var soln  = new Solution();
            var list1 = soln.CreateListFromNumber("180");
            var list2 = soln.CreateListFromNumber("20");

            PrintList(list1);
            PrintList(list2);

            var ans = soln.AddTwoNumbers(list1, list2);

            System.Console.WriteLine("Adding two lists: ");
            PrintList(ans);
        }