#need help understanding sorting

1 messages · Page 1 of 1 (latest)

marble flower
#

I need help understanding this type of sorting, how does it even check the numbers and how does it understand the whole thing, please and thank you

calm flameBOT
#

<@&987246399047479336> please have a look, thanks.

round beacon
#

do u see the < in there ?

#

it uses that to check the values and swap them over

marble flower
#

Talking about the first loop what really happens there l, if j is now equal to I what does that mean

round beacon
#

it grabs the value of i

#

to reduce each pass it does on sorting

marble flower
#

Interesting, I think I’m overcomplicating it for no reason

round beacon
#

basicly its just a pure brute force approach

lunar mountain
#

just take a pen and paper and run it manually on the example step by step

#

visualize it. then its very easy to follow and understand

marble flower
#

🤝

#

I understand it now LOL just realized how easy it was