From 0ebce8c1a520847ab64ab26eb541f4c8bde77008 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 15 Sep 2023 09:58:00 +0530 Subject: [PATCH] fixed typo --- Backtracking/AllCombinationsOfSizeK.js | 2 +- Data-Structures/Array/LocalMaximomPoint.js | 2 +- Data-Structures/Graph/Graph2.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Backtracking/AllCombinationsOfSizeK.js b/Backtracking/AllCombinationsOfSizeK.js index c02288d1b6..77ddd54f86 100644 --- a/Backtracking/AllCombinationsOfSizeK.js +++ b/Backtracking/AllCombinationsOfSizeK.js @@ -2,7 +2,7 @@ Problem: Given two numbers, n and k, make all unique combinations of k numbers from 1 to n and in sorted order What is combinations? - - Combinations is selecting items from a collections without considering order of selection + - Combinations is selecting items from a collections without considering the order of selection Example: - We have an apple, a banana, and a jackfruit diff --git a/Data-Structures/Array/LocalMaximomPoint.js b/Data-Structures/Array/LocalMaximomPoint.js index de136c21f1..b51e809ce2 100644 --- a/Data-Structures/Array/LocalMaximomPoint.js +++ b/Data-Structures/Array/LocalMaximomPoint.js @@ -3,7 +3,7 @@ * * Notes: * - works by using divide and conquer - * - the function gets the array A with n Real numbers and returns the local max point index (if more than one exists return the first one) + * - the function gets the array A with n Real numbers and returns the index of local max point (if more than one exists return the first one) * * @complexity: O(log(n)) (on average ) * @complexity: O(log(n)) (worst case) diff --git a/Data-Structures/Graph/Graph2.js b/Data-Structures/Graph/Graph2.js index 9defc1438d..3c360f7a1d 100644 --- a/Data-Structures/Graph/Graph2.js +++ b/Data-Structures/Graph/Graph2.js @@ -42,7 +42,7 @@ class Graph { // iterate over the vertices for (const i of getKeys) { - // great the corresponding adjacency list + // get the corresponding adjacency list // for the vertex const getValues = this.AdjList.get(i) let conc = ''