Questions tagged [bubble]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
131 views

Problem with plurality

when i check50 my code I get this message : :( print_winner identifies Bob as winner of election print_winner function did not print winner of election :( print_winner identifies Charlie as ...
0
votes
1answer
59 views

Question about Bubble Sort

I actually try to get the hang of using bubble sort. So i did a little practice in a online code space with a 10 int array, but somehow it doesn´t work competely right yet. #include <stdio.h> ...
0
votes
1answer
50 views

Pset3 - my bubble sort breaks the find function

I have tried to code bubble sort as my sort function, but when I run find it no longer exits when using ctrl d and just gives me a blank terminal line. My code is below, i'd be grateful if someone ...
0
votes
2answers
2k views

pset3 --> bubble sort

I am in sort section of pset3. I am implementing a bubble sort algorithm, but it seems that, although values[] is being sorted, elements are being moved one position forward in memory. For example: ...