Lasherz@lemmy.world to memes@lemmy.world · 2 days agoBut it kinda works tho...lemmy.worldimagemessage-square25fedilinkarrow-up1619arrow-down116
arrow-up1603arrow-down1imageBut it kinda works tho...lemmy.worldLasherz@lemmy.world to memes@lemmy.world · 2 days agomessage-square25fedilink
minus-squaresga@piefed.sociallinkfedilinkEnglisharrow-up2·13 hours agobut how do you know you are done. maybe there are different ideas of what bogo sort is, but as i remember, it is basically a while true (or while false loop) with condition - while list_is_not_sorted { return_a_random_ordering }
minus-squareJimbabwe@lemmy.worldlinkfedilinkarrow-up1·13 hours agoYeah but I said in the best case. In the best case, your randomization is correct so you don’t need to check it
but how do you know you are done. maybe there are different ideas of what bogo sort is, but as i remember, it is basically a while true (or while false loop) with condition - while list_is_not_sorted { return_a_random_ordering }
Yeah but I said in the best case. In the best case, your randomization is correct so you don’t need to check it