What kind of sorting is this?
SORT (k,n)
1.[Loop on I Index]
repeat thru step2 for i=1,2,........n-1
2.[For each pass,get small value]
min=i;
repeat for j=i+1 to N do
{
if K[j]<k[min]
min=j;
}
temp=K[i];K[i]=K[min];K[min]=temp;
3.[Sorted Values will be returned]
A)Bubble Sort
B)Quick Sort
C)Selection Sort
D)Merge Sort
Answers were Sorted based on User's Feedback
why effort estimation is important?
Write a code to determine the total number of stops an elevator would take to serve N number of people.
Write a program of prime number using recursion.
Explain the difference between #include "..." And #include <...> In c?
What are the characteristics of arrays in c?
What is 2c dna?
Write a program to compute the following 1!+2!+...n!
how to find sum of digits in C?
WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?
write a programme that inputs a number by user and gives its multiplication table.
main() { int ptr[] = {1,2,23,6,5,6}; printf("%d",&ptr[3]-&ptr[0]); }
what is the c source code for the below output? 1 0 1 1 0 1 0 1 0 1 1 0 1 0 1