Programming-Basics

Below you will find pages that utilize the term “Programming-Basics”
July 2, 2023
Insertion Sort : Swift

Insertion sort is a simple sorting algorithm in Swift that builds the final sorted array one element at a time. It iterates through the array, comparing each element with the sorted portion and placing it in the correct position. …

June 28, 2023
Selection Sort : Swift

Selection sort is a sorting algorithm in Swift that works by repeatedly finding the minimum element from the unsorted portion of an array and swapping it with the element in the correct position. …

June 23, 2023
Sort Int Array of 0, 1 and 2 : Swift (Dutch National Flag )

The Dutch National Flag algorithm is a sorting algorithm that partitions an array into three sections: elements less than a given pivot, elements equal to the pivot, and elements greater than the pivot. …

1 2 3 Next