Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Wow, took me like a minute to realize that it was actually properly indented, just on the wrong side...
-
lo98be6188y
-
lo98be6188y
-
lo98be6188y@jpichardo Whitesmiths... That's new to me, I'm not really into indentation styles π
-
tytho23168yIndenting from the right... I knew someone who did this to troll... he's a music major now
-
@lo98be hahaha me neither I just know 2, the K&R (Java) and Allman (C#), and yeah, I looked up the names π
-
Forside14598y@lo98be It's bubble sort, but with the outer loop missing. Either just not in the Screenshot or entirely missing, who knows.
-
@Forside Yeah, it's swaping elements in an array. For loop starts with j until i, so we can assume that it's wrapped in another for loop. Looks closest to bubble sort.
Bubble wrong wrap sort. -
RakNoel6738ySaw the algorithm.
Cried because x,y,i,j variable names.
Cried more because i recognized the indentention.
Fucking died the moment i saw that it's bubble sort πππ
How bout insertion / merge sort? They're easy enough... -
Mirinum1075yYeah, it seems like my classmates code
One function written with 4 spaces, other one with tabs, third one without any, etc.
It's always fun to help them with that goddamned code
Tho' we're students, we're gonna learn :)
Related Rants
I don't even know....
undefined
gore
formatting