Search:

Type: Posts; User: tony172

Search: Search took 0.00 seconds.

  1. Replies
    8
    Views
    4,273

    Thank you soo much :biggrin:

    Thank you soo much :biggrin:
  2. Replies
    8
    Views
    4,273

    Of course it works. Here is my implementation. ...

    Of course it works.
    Here is my implementation.


    void selectionsort(int *niz, int n) {
    int i;
    for (i = 0; i < n - 1; i++) {
    int j, tmp, maxi = i;
    for (j = i + 1; j < n; j++) {
    if...
  3. Replies
    8
    Views
    4,273

    I tried returning but it doesnt work,array is not...

    I tried returning but it doesnt work,array is not sorted and some elements are missing.


    void quicksort(int *array, int n) {
    int pi;
    if (n < 2)
    return;
    if(n<200){
    ...
  4. Replies
    8
    Views
    4,273

    No,it's not,but it doesn't work,because this is...

    No,it's not,but it doesn't work,because this is recursion and I am not good with recursion.
    This is my code that doesn't work.


    void quicksort(int *array, int n) {
    int pi;
    if (n < 2)
    ...
  5. Replies
    8
    Views
    4,273

    How to optimize quicksort with selectionsort

    I need to modify qsort function.When array length(int n) is,for ex. 200, I need to use selectionsort instead of quicksort.Here is my quicksort implementation.


    void quicksort(int *array, int n) {...
Results 1 to 5 of 5