Confusion regarding formtion of error in best case

why we make base arry

becoz we haven’t initialized the indices array
coz we dont know the the size
so we r counting first how many there r elements
and returning the array after initializing that with required size

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.