Top "In-place" questions

Use this tag on questions about algorithms that modify the data in-place, as opposed to making a copy.

Sort a part of a list in place

Let's say we have a list: a = [4, 8, 1, 7, 3, 0, 5, 2, 6, 9] Now, a.sort() will sort the list in place. What if we want …

python sorting in-place
What is an in-place constructor in C++?

Possible Duplicate: C++'s “placement new” What is an in-place constructor in C++? e.g. Datatype *x = new(y) Datatype();

c++ constructor placement-new in-place
How to remove trailing whitespaces for multiple files?

Are there any tools / UNIX single liners which would remove trailing whitespaces for multiple files in-place. E.g. one that …

shell find whitespace removing-whitespace in-place
Is Quicksort in-place or not?

So the space efficiency of Quicksort is O(log(n)). This is the space required to maintain the call stack. …

algorithm computer-science quicksort in-place space-efficiency
Numpy modify array in place?

I have the following code which is attempting to normalize the values of an m x n array (It will …

python arrays numpy in-place
In-Place Radix Sort

This is a long text. Please bear with me. Boiled down, the question is: Is there a workable in-place radix …

algorithm language-agnostic sorting radix-sort in-place
Replace entire HTML document in-place

I'm trying to avoid using a data URI because I do not want the generated document to be stored in …

jquery html in-place
In-place replacement of all occurrences of an element in a list in python

Assume I have a list: myl = [1, 2, 3, 4, 5, 4, 4, 4, 6] What is the most efficient and simplest pythonic way of in-place (double emphasis) replacement …

python list replace in-place
Pandas: peculiar performance drop for inplace rename after dropna

I have reported this as an issue on pandas issues. In the meanwhile I post this here hoping to save …

python performance pandas in-place
In-place processing with grep

I've got a script that calls grep to process a text file. Currently I am doing something like this. $ grep …

unix grep in-place