// 5. How do you find duplicate numbers in an array if it contains multiple duplicates? (solution) void Question5(int[] arr) { var h = new HelperFunctions(); h.ArrayPrinter(arr); h.ArrayAscendingSorter(arr); h.DuplicateDetailsFinder(arr); }
// 1. How do you find the missing number in a given integer array of 1 to 100? (solution) void Question1(int[] arr) { Console.WriteLine("Hello World!"); var h = new HelperFunctions(); h.ArrayPrinter(arr); h.ArrayAscendingSorter(arr); // Since arrays are passed by value, // the array doesn't need to be passed around h.ArrayPrinter(arr); h.FindMissingNumberFromSortedArray(arr); }