From 106e78f065895aec35717c6666b3a7615f8c6a52 Mon Sep 17 00:00:00 2001 From: Mayada <115709272+Maddily@users.noreply.github.com> Date: Thu, 3 Oct 2024 19:19:26 +0300 Subject: [PATCH] Fix grammatical error in explanation of logarithmic complexity (#28898) --- 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 9ca0491597..3b4f9ed616 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