Questions tagged [selectionsort]

The tag has no usage guidance.

2 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0
votes
1answer
60 views

is my selection code correct?

I used printf to check the process and final result. The final result is technically correct (the array is sorted in ascending order) but I saw the behaivior of the algorithm and it doesnt look like ...
0
votes
1answer
437 views

pset 3's selection sort

#include <cs50.h> #include <stdio.h> #include <stdlib.h> #include <string.h> void swap(int *a, int *b){ int tmp = *a; *a = *b; *b = tmp; } int main(void){ int s = 5; int size[s]...