You are viewing a single comment's thread. Return to all comments →
Hey @qianyonan
You have forgot to initialize the empty array i.e. array variable .
that's why little bit hard to understand to newbie.
One more thing , Don't you think you are using extra space bcz you can solve this problem using existing array too.
Seems like cookies are disabled on this browser, please enable them to open this website
Left Rotation
You are viewing a single comment's thread. Return to all comments →
Hey @qianyonan
You have forgot to initialize the empty array i.e. array variable .
that's why little bit hard to understand to newbie.
One more thing , Don't you think you are using extra space bcz you can solve this problem using existing array too.