You are viewing a single comment's thread. Return to all comments →
How is it in O(1) Auxiliary space althoug you initialize array of n+1 long ints here
long int *a=new long int[N+1]();
you may use dictionary to shrink the used space.
Seems like cookies are disabled on this browser, please enable them to open this website
Array Manipulation
You are viewing a single comment's thread. Return to all comments →
How is it in O(1) Auxiliary space althoug you initialize array of n+1 long ints here
you may use dictionary to shrink the used space.