fossilesque@mander.xyzM to Science Memes@mander.xyzEnglish · 3 months agoMarge Sortmander.xyzexternal-linkmessage-square6fedilinkarrow-up1188arrow-down17
arrow-up1181arrow-down1external-linkMarge Sortmander.xyzfossilesque@mander.xyzM to Science Memes@mander.xyzEnglish · 3 months agomessage-square6fedilink
minus-squareSmoothLiquidation@lemmy.worldlinkfedilinkEnglisharrow-up11arrow-down1·3 months agoWhen you merge two sorted lists, you only have to compare the first element of each, since you can trust that all of the other elements are bigger. All the steps before that are there to make sure that is true.
When you merge two sorted lists, you only have to compare the first element of each, since you can trust that all of the other elements are bigger. All the steps before that are there to make sure that is true.