Giter Site home page Giter Site logo

insertion-sort's Issues

Selection sort vs insertion sort

Hi, I think the title to this lesson should be "Selection Sort" instead of "Insertion Sort" - the algorithm described is actually selection sort, not insertion sort, which is significant because the runtime will not be O(n) for an already sorted array using the described method. Also, the code examples in the lesson name the function selection sort. Thanks!

Typos / Formatting Issues

While working through the Insertion-Sort readme lesson, I found that there is a typo in the first code block as well as a formatting issue with the picture and the text.
image

I'm guessing the array just needs a comma after the 6.
What is there Now:
let unsortedArray = [5, 6 -1, 1, 3]

Fixed missing comma:
let unsortedArray = [5, 6, -1, 1, 3]

Unused variable...

Hi. Small thing -- a few times in the sample code throughout the lesson, currentElement is declared but not used. Just wanted to avoid confusion for future readers. Thanks!

Minor correct of variable

Throughout the lesson the unsortedArray needs to be corrected to add a comma between the 6 and -1 to ensure proper differentiation between elements. It should look as follows:

let unsortedArray = [5, 6, -1, 1, 3]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.