Skip to content

Commit 42032b4

Browse files
authored
Update README.md
1 parent 2e5a574 commit 42032b4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

QuadTree/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
A quadtree is a [tree](https://github.com/raywenderlich/swift-algorithm-club/tree/master/Tree) in which each internal (not leaf) node has four children.
44

5+
<img src="https://github.com/timaktimak/swift-algorithm-club/blob/master/QuadTree/Images/quadtree.png" width="500">
6+
57
### Problem
68

79
Consider the following problem: your need to store a number of points (each point is a pair of `X` and `Y` coordinates) and then you need to answer which points lie in a certain rectangular region. A naive solution would be to store the points inside an array and then iterate over the points and check each one individually. This solution runs in O(n) though.

0 commit comments

Comments
 (0)