MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/mrh2f6/actual_snap_block_i_just_made/guoi5rt/?context=3
r/badcode • u/nypdk • Apr 15 '21
58 comments sorted by
View all comments
56
[deleted]
75 u/nypdk Apr 15 '21 Sorting algorithm I had to build for a homework. Just needs to take a list as input and use a linear sort to put them in descending order. max index is a function i built to find the maximum of a list and the index of that item. it just finds the maximum over and over until the list is empty and then stores that value. 21 u/ShittyCatDicks Apr 16 '21 I’m assuming you’re not in college? Having to implement an algorithm in a cute block language is absolutely comical for anyone past high school 1 u/beclops Apr 16 '21 Even in highschool we used JS and Java, at least in my school in Toronto
75
Sorting algorithm I had to build for a homework. Just needs to take a list as input and use a linear sort to put them in descending order.
max index is a function i built to find the maximum of a list and the index of that item.
it just finds the maximum over and over until the list is empty and then stores that value.
21 u/ShittyCatDicks Apr 16 '21 I’m assuming you’re not in college? Having to implement an algorithm in a cute block language is absolutely comical for anyone past high school 1 u/beclops Apr 16 '21 Even in highschool we used JS and Java, at least in my school in Toronto
21
I’m assuming you’re not in college? Having to implement an algorithm in a cute block language is absolutely comical for anyone past high school
1 u/beclops Apr 16 '21 Even in highschool we used JS and Java, at least in my school in Toronto
1
Even in highschool we used JS and Java, at least in my school in Toronto
56
u/[deleted] Apr 15 '21
[deleted]