From 1e0be68e9e82d4f9e6d4d98de8fbb089149cf163 Mon Sep 17 00:00:00 2001 From: Mayada <115709272+Maddily@users.noreply.github.com> Date: Thu, 3 Oct 2024 10:37:17 +0300 Subject: [PATCH] Fix grammatical error in explanation of logarithmic complexity --- javascript/computer_science/time_complexity.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/computer_science/time_complexity.md b/javascript/computer_science/time_complexity.md index 897cddbbf9..cc01734a03 100644 --- a/javascript/computer_science/time_complexity.md +++ b/javascript/computer_science/time_complexity.md @@ -142,7 +142,7 @@ Do the number of steps matter? Yes, they might. We'll touch on when this may be #### O(log N) - Logarithmic complexity -Logarithmic Complexity tells us that the numbers of steps an algorithm takes increases by 1 as the data doubles. That's still pretty efficient when you think about it. Going from 5,000 to 10,000 data elements and only taking one additional step can scale really well. +Logarithmic Complexity tells us that the number of steps an algorithm takes increases by 1 as the data doubles. That's still pretty efficient when you think about it. Going from 5,000 to 10,000 data elements and only taking one additional step can scale really well. One such algorithm that does this is Binary Search. It only works on sorted arrays, but if you have an array of 10 items in sorted order