Comparing TheAlgorithms:master...USP-2024:master · TheAlgorithms/TypeScript

Commits on Oct 13, 2024

  1. Update bubble_sort.ts

    ADDED A PYTHON CODE FOR INSERTION SORT:
    This code sorts an array in ascending order using the Insertion Sort method. You can replace the "arr" variable with any list of numbers you want to sort.
    Configuration menu

    Browse the repository at this point in the history

  2. Update bubble_sort.ts

    Adding a TypeScript Code for Insertion Sort. Explanation:
    The function insertionSort takes an array of numbers as input.
    It sorts the array in place using the insertion sort algorithm.
    The example usage shows how to call the function and prints the sorted array.
    Configuration menu

    Browse the repository at this point in the history