Blog

First Journal

Selection Sort

Posted 2025-11-16 | *By : Cuneyt Yildirim *# Selection Sort

Problem Statement

Given an unsorted array of n elements, write a function to sort the array

Approach

  • select the smallest element from the array
  • put it at the beginning of the array
  • then select the smallest array from the …

First Journal

Shell Sort

Posted 2025-11-16 | *By : Cuneyt Yildirim *# Shell Sort

Problem Statement

Given an unsorted array of n elements, write a function to sort the array

Approach

  • start with the initial gap, g
  • go through the first (n - g) elements in the array
  • compare the element with the next element that is …