Skip to content

Commit 202fe4c

Browse files
committed
[Patch] update description image for example interval map
1 parent 5068274 commit 202fe4c

File tree

4 files changed

+56
-2
lines changed

4 files changed

+56
-2
lines changed

C++/chapImplement.tex

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1740,8 +1740,10 @@ \subsection{分析}
17401740
The first attempt I did was list out all the possible cases for the interval insertion. This is a top to bottom approach. The cases are included but not limited to:
17411741

17421742
\begin{Code}
1743-
for c_1 in ["new intervale is bigger / equal / smaller than the entire group of intervals in the map"]:
1744-
for c_2 in ["c_1 is before / one leg overlap / two legs overlap / after the group of intervals in the map"]:
1743+
for c_1 in ["new intervale is bigger / equal\
1744+
/ smaller than the entire group of intervals in the map"]:
1745+
for c_2 in ["c_1 is before / one leg overlap\
1746+
/ two legs overlap / after the group of intervals in the map"]:
17451747
for c_3 in ["is the new interval touch the boundary?"]:
17461748
\end{Code}
17471749

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<mxfile host="Electron" modified="2023-09-15T02:50:16.659Z" agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/21.7.5 Chrome/114.0.5735.289 Electron/25.8.1 Safari/537.36" etag="M1F3iqZU-W52069wsV9n" version="21.7.5" type="device">
2+
<diagram name="Page-1" id="M7-SNfhzSJs0xADmFDyB">
3+
<mxGraphModel dx="1362" dy="843" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
4+
<root>
5+
<mxCell id="0" />
6+
<mxCell id="1" parent="0" />
7+
<mxCell id="A5w4UXhZmRBFEsx6TZ7V-1" value="" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;" vertex="1" parent="1">
8+
<mxGeometry x="310" y="400" width="160" height="20" as="geometry" />
9+
</mxCell>
10+
<mxCell id="A5w4UXhZmRBFEsx6TZ7V-2" value="side view" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=15;" vertex="1" parent="1">
11+
<mxGeometry x="340" y="250" width="74" height="30" as="geometry" />
12+
</mxCell>
13+
<mxCell id="A5w4UXhZmRBFEsx6TZ7V-3" value="" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffe6cc;strokeColor=#d79b00;" vertex="1" parent="1">
14+
<mxGeometry x="330" y="370" width="80" height="20" as="geometry" />
15+
</mxCell>
16+
<mxCell id="A5w4UXhZmRBFEsx6TZ7V-4" value="" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;" vertex="1" parent="1">
17+
<mxGeometry x="374" y="340" width="80" height="20" as="geometry" />
18+
</mxCell>
19+
<mxCell id="A5w4UXhZmRBFEsx6TZ7V-5" value="" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
20+
<mxGeometry x="338" y="340" width="16" height="20" as="geometry" />
21+
</mxCell>
22+
<mxCell id="A5w4UXhZmRBFEsx6TZ7V-6" value="" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;" vertex="1" parent="1">
23+
<mxGeometry x="420" y="310" width="16" height="20" as="geometry" />
24+
</mxCell>
25+
<mxCell id="A5w4UXhZmRBFEsx6TZ7V-7" value="top view" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=15;" vertex="1" parent="1">
26+
<mxGeometry x="580" y="250" width="60" height="30" as="geometry" />
27+
</mxCell>
28+
<mxCell id="A5w4UXhZmRBFEsx6TZ7V-8" value="" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;rotation=90;" vertex="1" parent="1">
29+
<mxGeometry x="530" y="370" width="160" height="20" as="geometry" />
30+
</mxCell>
31+
<mxCell id="A5w4UXhZmRBFEsx6TZ7V-9" value="" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#ffe6cc;strokeColor=#d79b00;rotation=90;" vertex="1" parent="1">
32+
<mxGeometry x="570" y="350" width="80" height="20" as="geometry" />
33+
</mxCell>
34+
<mxCell id="A5w4UXhZmRBFEsx6TZ7V-10" value="" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;rotation=90;" vertex="1" parent="1">
35+
<mxGeometry x="570" y="390" width="80" height="20" as="geometry" />
36+
</mxCell>
37+
<mxCell id="A5w4UXhZmRBFEsx6TZ7V-11" value="" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;rotation=90;" vertex="1" parent="1">
38+
<mxGeometry x="602" y="330" width="16" height="20" as="geometry" />
39+
</mxCell>
40+
<mxCell id="A5w4UXhZmRBFEsx6TZ7V-12" value="" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;rotation=90;" vertex="1" parent="1">
41+
<mxGeometry x="602" y="410" width="16" height="20" as="geometry" />
42+
</mxCell>
43+
<mxCell id="A5w4UXhZmRBFEsx6TZ7V-13" value="map output" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=15;" vertex="1" parent="1">
44+
<mxGeometry x="90" y="250" width="90" height="30" as="geometry" />
45+
</mxCell>
46+
<mxCell id="A5w4UXhZmRBFEsx6TZ7V-14" value="5&amp;nbsp; &amp;nbsp;--- A&lt;br style=&quot;font-size: 15px;&quot;&gt;8&amp;nbsp; &amp;nbsp;--- C&lt;br style=&quot;font-size: 15px;&quot;&gt;12 --- D&lt;br style=&quot;font-size: 15px;&quot;&gt;16 --- Z&lt;br style=&quot;font-size: 15px;&quot;&gt;..." style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=15;" vertex="1" parent="1">
47+
<mxGeometry x="105" y="340" width="60" height="30" as="geometry" />
48+
</mxCell>
49+
</root>
50+
</mxGraphModel>
51+
</diagram>
52+
</mxfile>
5.13 KB
Loading

C++/leetcode-cpp.pdf

-3.12 KB
Binary file not shown.

0 commit comments

Comments
 (0)