int arr1[N];
int arr2[N];
If we are using arr1 and arr2 in the program what will be the overall space complexity of the program O(n^2)
or O(n)
?
int arr1[N];
int arr2[N];
If we are using arr1 and arr2 in the program what will be the overall space complexity of the program O(n^2)
or O(n)
?