python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Trying to sort a struct array in Descending Order
To preface what I'm trying to do - I'm trying to make a Shortest Job First (SJF), the OS algo in C.
And to handle the sort-by-burst-time, I'm pushing all the ready processes in a stack, and then sorti...
VenoM
Votes: 0
Answers: 1
how to bubble-sort or build multi-dimensional arrays in python?
I'm not sure how to phrase the question so instead I will copy/paste the prompt from my homework and hopefully that will make my question clear. I am very new to python and am almost totally lost in h...
Brenden
Votes: 0
Answers: 1
Bubble-sort program returns random numbers
I'm learning C and my bubble sort code returns a random number sometimes (although sometimes it does returns the correct array numbers).
For example, it should print {0, 1, 3, 10}. But sometimes print...
juanjuanjuanfer
Votes: 0
Answers: 1
Bubble Sort - Proof of average case runtime complexity
So, I've been given this question in my homework and I tried to solve it for a few days, but I can't reach to any solution :(
Given the enhanced Bubble Sort algorithm, the average runtime is:
whereas...
PythonAddict
Votes: 0
Answers: 0