Swapping values of two variables

Grant Edwards grante at visi.com
Sat Jan 31 02:35:03 CET 2009


On 2009-01-31, Aahz <aahz at pythoncraft.com> wrote:

>>But could the swapping be done using less extra memory than this? What
>>is the minimum amount of extra memory required to exchange two 32-bit
>>quantities? What would be the pseudocode that achieves this minimum?
>
> This looks like a homework problem to me....

It looks 100% like a homework problem.

-- 
Grant




More information about the Python-list mailing list