How to sort a list in Scratch! [2.5 ways]

Поділитися
Вставка
  • Опубліковано 30 січ 2025

КОМЕНТАРІ • 10

  • @J_i_m_
    @J_i_m_ Місяць тому +1

    There is a 🪳 in the mergesort code for example [1,1,1,1,1,2,2,3,3,3]. Also, why not drop the else and move the last statement below the if?

    • @STEMMC
      @STEMMC  Місяць тому

      interesting, on my end it's replacing one of the threes with a two, I'll pin this comment so others can see
      regarding the if-else statement, well, ummmmm...oh

    • @J_i_m_
      @J_i_m_ Місяць тому +1

      @@STEMMC It's a small fix: instead of repeat until (leftindex=end) or (rightindex>end) use repeat until not(leftindexend) 😉

  • @dinoeebastian
    @dinoeebastian 24 дні тому +1

    the first time I made a sorting algorithm I didn't really have any knowledge of sorting algorithms, so my first was just the same idea as the improved bubble sort that you made, and my second time I ended up making a really inefficient heapsort iirc, but it still ended up being much better than the bubble sort

  • @Goofynaas204
    @Goofynaas204 3 місяці тому +2

    Thank you so much! This was very helpful because I couldn't figure out how to implement merge sorting into Scratch. This helped me with a big project I'm working on

  • @GoofyCoderYT
    @GoofyCoderYT 19 днів тому

    underrated youtuber

  • @Dylanlamprecht
    @Dylanlamprecht 4 місяці тому +1

    Thanks

  • @JosiahBultman
    @JosiahBultman 2 місяці тому

    Pumpkin
    🙃

    • @tyelel7548
      @tyelel7548 Місяць тому

      why did UA-cam think this wasn't English

  • @AKASHIMAINCHANNEL
    @AKASHIMAINCHANNEL 4 місяці тому +3

    1st Comment i subbed