Creating Main Class

public static void Main()
{
    int[] arr = { 8, 1, 2, 12 };
    int n = arr.Length;
    Console.WriteLine("Max Subarray XOR is " + maxSubarrayXOR(arr, n));
}

We will using maxSubarrayXOR as our function.

results matching ""

    No results matching ""