Horje
shell sort dart Code Example
shell sort dart
void shellSort(List<int> arr, int n) {
    for (int gab = (n / 2).floor(); gab > 0; gab = (gab / 2).floor()) {
      for (int i = gab; i < n; ++i) {
        int j = i;
        int temp = arr[i];
        for (j = i; j >= gab && temp < arr[j - gab]; j -= gab) {
          arr[j] = arr[j - gab];
        }
        arr[j] = temp;
      }
    }
    print(arr);
  }
}




Shell

Related
new screen linux Code Example new screen linux Code Example
webpack for old browser Code Example webpack for old browser Code Example
upgrade python using choco (win 10) Code Example upgrade python using choco (win 10) Code Example
download draw.io for ubuntu Code Example download draw.io for ubuntu Code Example
programming scares me Code Example programming scares me Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9