downpunxx@fedia.io to Lemmy Shitpost@lemmy.world · 7 months agogotdamnfedia.ioexternal-linkmessage-square111fedilinkarrow-up11.07Karrow-down121
arrow-up11.05Karrow-down1external-linkgotdamnfedia.iodownpunxx@fedia.io to Lemmy Shitpost@lemmy.world · 7 months agomessage-square111fedilink
minus-squarespujb@lemmy.cafelinkfedilinkEnglisharrow-up3·edit-27 months ago@Hadriscus@lemm.ee if you assign a number 1-4 from top to bottom, reading order is then the indices 3, 2, 4, 1 alternatively, if you assign 4, 2, 1, 3 to each element top to bottom, reading order is then 1, 2, 3, 4 different algorithms, same result. i had chatgpt help me out with some fancy ass notation for those interested:
I don’t understand
@Hadriscus@lemm.ee
if you assign a number 1-4 from top to bottom, reading order is then the indices 3, 2, 4, 1
alternatively, if you assign 4, 2, 1, 3 to each element top to bottom, reading order is then 1, 2, 3, 4
different algorithms, same result. i had chatgpt help me out with some fancy ass notation for those interested: