how can we use a array to store sum because in question there is written constant space
How can we take extra space
Yes it is mentioned constant space which means that the space complexity should not be order of n. And for this question, you require an array of fixed size 64, which implies constant space.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.