Blog
Topics
5 articles found under 'code-snippets'
Dec 18, 2024
Quick Sort program in C - and how it works
Quick sort is an algorithm that implements the divide-and-conquer technique. It is efficient for large arrays, but is unstable. Here is a program written in C that implements it.
Dec 18, 2024
Insertion Sort program in C - and how it works
This post shows how to implement the insertion sort algorithm using C language
Dec 15, 2024
Merge Sort - program in C, and how it works
This post shows how to implement the merge sort algorithm, one of the fastest sorting algorithms, in C language.
Dec 12, 2024
Bubble Sort - programs in C, JavaScript, PHP
The following code snippets shows how to sort an array using the bubble sort algorithm, in C, JavaScript, and PHP.
Dec 12, 2024
Selection Sort - programs in C, JavaScript, PHP
The code snippet(s) shows you how to implement one of the easiest sorting algorithms - selection sort - in C, JavaScript, and PHP.
← Previous
Next →