Skip to content

Commit 62f1f16

Browse files
authored
Merge pull request #1140 from mehrdad3301/patch-1
fix: fix small grammar
2 parents 15ff2e9 + 3fe9c70 commit 62f1f16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/data_structures/segment_tree.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ We can show that this proposition (at most four vertices each level) is true by
121121
At the first level, we only visit one vertex, the root vertex, so here we visit less than four vertices.
122122
Now let's look at an arbitrary level.
123123
By induction hypothesis, we visit at most four vertices.
124-
If we only visit at most two vertices, the next level has at most four vertices. That trivial, because each vertex can only cause at most two recursive calls.
124+
If we only visit at most two vertices, the next level has at most four vertices. That is trivial, because each vertex can only cause at most two recursive calls.
125125
So let's assume that we visit three or four vertices in the current level.
126126
From those vertices, we will analyze the vertices in the middle more carefully.
127127
Since the sum query asks for the sum of a continuous subarray, we know that segments corresponding to the visited vertices in the middle will be completely covered by the segment of the sum query.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy