KHTangent@lemmy.world to Programmer Humor@lemmy.mlEnglish · 1 year agoSwapping integers in Pythonlemmy.worldimagemessage-square7fedilinkarrow-up168arrow-down11cross-posted to: bumba@boomer.casinopython@programming.dev
arrow-up167arrow-down1imageSwapping integers in Pythonlemmy.worldKHTangent@lemmy.world to Programmer Humor@lemmy.mlEnglish · 1 year agomessage-square7fedilinkcross-posted to: bumba@boomer.casinopython@programming.dev
minus-square1stTime4MeInMCUlinkfedilinkEnglisharrow-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