Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: trekhleb/javascript-algorithms
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: m-maksyutin/javascript-algorithms
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.

Commits on Jun 1, 2018

  1. Fix LinkedList

    MikhailMaksyutin committed Jun 1, 2018
    2
    Copy the full SHA
    d37adad View commit details

Commits on Jun 2, 2018

  1. Copy the full SHA
    2e8e215 View commit details

Commits on Jun 3, 2018

  1. Copy the full SHA
    63da40b View commit details
  2. Copy the full SHA
    8d85d3d View commit details

Commits on Jun 4, 2018

  1. Copy the full SHA
    2992bc7 View commit details
  2. Copy the full SHA
    efe4f81 View commit details

Commits on Jun 5, 2018

  1. Copy the full SHA
    8000d9b View commit details
  2. Copy the full SHA
    f801f0a View commit details

Commits on Jun 13, 2018

  1. Copy the full SHA
    83cb5a6 View commit details
  2. Copy the full SHA
    f013239 View commit details
  3. Correct a comment

    m-maksyutin committed Jun 13, 2018
    Copy the full SHA
    eae4e5c View commit details

Commits on Jun 18, 2018

  1. Copy the full SHA
    13808e6 View commit details

Commits on Jun 19, 2018

  1. Fix BST removal method

    m-maksyutin committed Jun 19, 2018
    Copy the full SHA
    a2c3012 View commit details
  2. Copy the full SHA
    9f19827 View commit details
  3. Copy the full SHA
    7e2262f View commit details

Commits on Jun 25, 2018

  1. Merge remote-tracking branch 'upstream/master'

    # Conflicts:
    #	src/data-structures/tree/binary-search-tree/BinarySearchTreeNode.js
    m-maksyutin committed Jun 25, 2018
    Copy the full SHA
    578199e View commit details
  2. Copy the full SHA
    35f7b89 View commit details
  3. Merge remote-tracking branch 'upstream/master'

    # Conflicts:
    #	src/data-structures/graph/Graph.js
    m-maksyutin committed Jun 25, 2018
    Copy the full SHA
    fbc29d3 View commit details
  4. Copy the full SHA
    48790e9 View commit details

Commits on Jun 27, 2018

  1. Copy the full SHA
    d4c4615 View commit details

Commits on Jun 28, 2018

  1. Copy the full SHA
    3331115 View commit details
  2. Copy the full SHA
    10b2a01 View commit details
  3. Copy the full SHA
    103c68c View commit details

Commits on Jul 1, 2018

  1. Fix the insertion sort

    m-maksyutin committed Jul 1, 2018
    Copy the full SHA
    ecc2dc8 View commit details
  2. Copy the full SHA
    96efc15 View commit details
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/algorithms/sorting/insertion-sort/InsertionSort.js
2 changes: 1 addition & 1 deletion src/algorithms/sorting/insertion-sort/InsertionSort.js
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ export default class InsertionSort extends Sort {
// Go and check if previous elements and greater then current one.
// If this is the case then swap that elements.
while (
array[currentIndex - 1] &&
array[currentIndex - 1] !== undefined &&
this.comparator.lessThan(array[currentIndex], array[currentIndex - 1])
) {
// Call visiting callback.