The Sidef programming language
CtrlK
  • Introduction
  • Preface
  • Getting Started
  • Sidef interpreter
  • Syntax and semantics
  • Programming tasks
    • 1
    • 2
    • 4
    • 9
    • A
    • B
    • C
    • D
    • E
    • F
    • G
    • H
    • I
    • J
    • K
    • L
    • M
    • N
    • O
    • P
    • Q
    • R
    • S
      • S-expressions
      • Safe and Sophie Germain primes
      • Safe primes and unsafe primes
      • Sailors coconuts and a monkey problem
      • Same fringe
      • Sattolo cycle
      • Scope
      • Search a list
      • Search a list of records
      • Secure temporary file
      • SEDOLs
      • Self-describing numbers
      • Self numbers
      • Semiprime
      • Semordnilap
      • Send an unknown method call
      • Separate the house number from the street name
      • Sequence nth number with exactly n divisors
      • Sequence of non-squares
      • Sequence of primes by trial division
      • Sequence of primorial primes
      • Sequence smallest number greater than previous term with exactly n divisors
      • Sequence smallest number with exactly n divisors
      • Set
      • Set consolidation
      • Seven-sided dice from five-sided dice
      • Sexy primes
      • SHA-1
      • SHA-256
      • Shell one-liner
      • Shoelace formula for polygonal area
      • Short-circuit evaluation
      • Shortest common supersequence
      • Show the decimal value of a number of 1s appended with a 3 then squared
      • Show the epoch
      • Sierpinski arrowhead curve
      • Sierpinski carpet
      • Sierpinski curve
      • Sierpinski pentagon
      • Sierpinski square curve
      • Sierpinski triangle
      • Sieve of Eratosthenes
      • Simple windowed application
      • Simulated annealing
      • Singleton
      • Singly-linked list
      • Sleep
      • Smallest numbers
      • Smallest square that begins with n
      • Smarandache-Wellin primes
      • Smarandache prime-digital sequence
      • Smith numbers
      • Snake
      • Sockets
      • Solve triangle solitaire puzzle
      • Sort a list of object identifiers
      • Sort an array of composite structures
      • Sort an integer array
      • Sort disjoint sublist
      • Sort numbers lexicographically
      • Sort primes from list to a list
      • Sort stability
      • Sort three variables
      • Sort using a custom comparator
      • Sorting algorithms
        • Bead sort
        • Bogosort
        • Bubble sort
        • Circle Sort
        • Cocktail sort
        • Comb sort
        • Counting sort
        • Cycle sort
        • Gnome sort
        • Heapsort
        • Insertion sort
        • Merge sort
        • Pancake sort
        • Patience sort
        • Permutation sort
        • Quicksort
        • Radix sort
        • Selection sort
        • Shell sort
        • Sleep sort
        • Stooge sort
        • Strand sort
      • Soundex
      • Sparkline in unicode
      • Special divisors
      • Special factorials
      • Special neighbor primes
      • Speech synthesis
      • Spelling of ordinal numbers
      • Sphenic numbers
      • Spiral matrix
      • Split a character string based on change of character
      • SQL-based authentication
      • Square-free integers
      • Square but not cube
      • Square form factorization
      • Stable marriage problem
      • Stack
      • Stair-climbing puzzle
      • Standard deviation
      • Statistics
      • Stem-and-leaf plot
      • Stern-Brocot sequence
      • Stirling numbers of the first kind
      • Stirling numbers of the second kind
      • Strange numbers
      • Strange plus numbers
      • Strange unique prime triplets
      • Stream merge
      • String append
      • String case
      • String comparison
      • String concatenation
      • String interpolation included
      • String length
      • String matching
      • String prepend
      • Strip a set of characters from a string
      • Strip block comments
      • Strip comments from a string
      • Strip control codes and extended characters from a string
      • Strip whitespace from a string
      • Strong and weak primes
      • Sub-unit squares
      • Subleq
      • Subset sum problem
      • Substitution cipher
      • Substring
      • Substring primes
      • Subtractive generator
      • Successive prime differences
      • Sudoku
      • Suffix tree
      • Sum and product of an array
      • Sum and product puzzle
      • Sum digits of an integer
      • Sum multiples of 3 and 5
      • Sum of a series
      • Sum of divisors
      • Sum of first n cubes
      • Sum of primes in odd positions is prime
      • Sum of square and cube digits of an integer are primes
      • Sum of squares
      • Sum of the digits of n is substring of n
      • Sum of two adjacent numbers are primes
      • Sum to 100
      • Summarize primes
      • Summation of primes
      • Sunflower fractal
      • Super-d numbers
      • Superellipse
      • Superpermutation minimisation
      • Sutherland-Hodgman polygon clipping
      • Sylvester's sequence
      • Symmetric difference
      • System time
    • T
    • U
    • V
    • W
    • X
    • Y
    • Z
  • The End
Powered by GitBook
On this page

Was this helpful?

  1. Programming tasks
  2. S

Sorting algorithms

Bead sortBogosortBubble sortCircle SortCocktail sortComb sortCounting sortCycle sortGnome sortHeapsortInsertion sortMerge sortPancake sortPatience sortPermutation sortQuicksortRadix sortSelection sortShell sortSleep sortStooge sortStrand sort
PreviousSort using a custom comparatorNextBead sort

Last updated 5 years ago

Was this helpful?