akshitagit / CPP

Repository for C++/C codes and algos.
https://github.com/akshitagupta15june
MIT License
493 stars 434 forks source link

I have shifted the array elements towards left #637

Closed shivam-kumar123 closed 3 years ago

shivam-kumar123 commented 3 years ago

Initially, you were just printing not actually shifting Time Complexity: O(N) Space Complexity: O(1)