8000 Comparing TheAlgorithms:master...kho-kho-kho:master · TheAlgorithms/JavaScript · GitHub
[go: up one dir, main page]

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: TheAlgorithms/JavaScript
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: kho-kho-kho/JavaScript
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 13 commits
  • 1 file changed
  • 1 contributor

Commits on Aug 15, 2022

  1. Bugfix AVLTree comparator

    The original insertBalance function was doing raw value comparisons as opposed to using the tree's comparator. This is clearly unintentional, and would (ultimately) cause the structure to segfault when constructed with the stringData included in the updated test.
    
    I've added the fix, scanned the rest of the code for similar issues, and added the appropriate test case which passes successfully with the fix. The jest code coverage increases slightly as well with the changes.
    kho-kho-kho committed Aug 15, 2022
    Configuration menu
    Copy the full SHA
    ed5db20 View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2022

  1. Configuration menu
    Copy the full SHA
    8ebb542 View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2022

  1. 100% jest code coverage

    Added a couple of extra elements to the original test tree, and then removed elements in an order such that all previously uncovered branches of code are now covered.
    
    Also added an emptyTree structure to test some additional (trivial) base cases.
    kho-kho-kho committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    2ea10b0 View commit details
    Browse the repository at this point in the history
  2. standard style fix

    missed this from my previous commit
    kho-kho-kho committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    5f3b57c View commit details
    Browse the repository at this point in the history

Commits on Sep 17, 2022

  1. Configuration menu
    Copy the full SHA
    8d50f72 View commit det 8000 ails
    Browse the repository at this point in the history
  2. Iterative & in-place BFS

    An iterative analog to the traditional recursive breadth-first-search algorithm for binary trees.
    
    This in-place solution uses the pre-existing "traversal" array for both tracking the algorithm as well as storing the result.
    
    Also tweaked old code by resetting the traversal array each time the tree is traversed (otherwise you're only allowed to traverse a tree once which doesn't seem correct even with a single traversal function).
    kho-kho-kho committed Sep 17, 2022
    Configuration menu
    Copy the full SHA
    1ab0a82 View commit details
    Browse the repository at this point in the history

Commits on Sep 18, 2022

  1. Update BreadthFirstTreeTraversal.js

    got rid of unnecessary currentSize
    added currentNode for clarity
    kho-kho-kho committed Sep 18, 2022
    Configuration menu
    Copy the full SHA
    e0d683e View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2022

  1. refactor out traversal member var

    .. per earlier discussion w mods
    also tweaked the tests to achieve 100% coverage
    kho-kho-kho committed Sep 25, 2022
    Configuration menu
    Copy the full SHA
    20c54f3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7a55d68 View commit details
    Browse the repository at this point in the history

Commits on Nov 10, 2022

  1. Configuration menu
    Copy the full SHA
    e8af126 View commit details
    Browse the repository at this point in the history
  2. Update GeneratePermutations.test.js

    Original test was very limited and also (unnecessarily) strict in that the order of results mattered.
    
    I've tweaked the original test so that results can come in any order. Also added additional tests for smaller arrays of strings/booleans. Finally added some sanity testing for larger input arrays.
    kho-kho-kho committed Nov 10, 2022
    Configuration menu
    Copy the full SHA
    e327fad View commit details
    Browse the repository at this point in the history
  3. Update GeneratePermutations.test.js

    Factorials are now explicit in the last set of tests.
    kho-kho-kho committed Nov 10, 2022
    Configuration menu
    Copy the full SHA
    fde84ab View commit details
    Browse the repository at this point in the history

Commits on Nov 12, 2022

  1. Update GeneratePermutations.test.js

    Leverage package's existing factorial function.
    kho-kho-kho committed Nov 12, 2022
    Configuration menu
    Copy the full SHA
    542b0ca View commit details
    Browse the repository at this point in the history
Loading
0