Skip to content

Commit 1d64b4f

Browse files
committed
Updated pdf and Makefile.
1 parent 99bc497 commit 1d64b4f

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

‎Makefile‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ all: comprog.pdf
44

55
comprog.pdf: comprog.tex
66
$(PDFLATEX) comprog
7+
$(PDFLATEX) comprog
8+
rm *.{aux,log,toc}
79

810
clean:
9-
rm comprog.pdf
11+
rm comprog.pdf

‎comprog.pdf‎

1.97 KB
Binary file not shown.

‎comprog.tex‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ \subsection{Union-Find}
8181

8282
% TODO: \subsection{Segment Tree}
8383

84+
\subsection{Segment Tree}
85+
\lstinputlisting{code/data-structures/segment_tree.cpp}
86+
8487
\subsection{Fenwick Tree}
8588
A Fenwick Tree is a data structure that represents an array of $n$ numbers. It supports adjusting the $i$-th element in $O(\log n)$ time, and computing the sum of numbers in the range $i..j$ in $O(\log n)$ time. It only needs $O(n)$ space.
8689
\lstinputlisting{code/data-structures/fenwick_tree.cpp}

0 commit comments

Comments
 (0)