Exemple #1
0
    static void PrintOutput()
    {
        int mostFrequentNumber = ValueFromArray.MostFrequentNumber(arr);

        Console.WriteLine(mostFrequentNumber + " - " + NumberOfOccurences(mostFrequentNumber) + " times");
    }
Exemple #2
0
 static void PrintOutput()
 {
     int[] maxSumSequence = FindArraySequence.MaxSum(arr);
     Console.WriteLine("Sequence: " + ArrayTo.String(maxSumSequence));
     Console.WriteLine("Sum: " + ValueFromArray.SumOfArray(maxSumSequence));
 }