Glossary: Data Structures and Algorithms in JavaScript
In place
Also written: in-place
Changing an array itself instead of making a copy. Swapping from both ends reverses an array in place using O(1) extra space.
Glossary: Data Structures and Algorithms in JavaScript
Also written: in-place
Changing an array itself instead of making a copy. Swapping from both ends reverses an array in place using O(1) extra space.