KHTangent@lemmy.world to Programmer Humor@lemmy.mlEnglish · 1 year agoSwapping integers in Pythonlemmy.worldimagemessage-square7fedilinkarrow-up161arrow-down10cross-posted to: [email protected]python
arrow-up161arrow-down1imageSwapping integers in Pythonlemmy.worldKHTangent@lemmy.world to Programmer Humor@lemmy.mlEnglish · 1 year agomessage-square7fedilinkcross-posted to: [email protected]python
minus-square1stTime4MeInMCU@mander.xyzlinkfedilinkEnglisharrow-up1·1 year agoThat’s like the canonical “swap two pointers” trick
Version 3 is disgusting.
That’s like the canonical “swap two pointers” trick