File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
leetcode_java/src/main/java/LeetCodeJava/Array Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -106,8 +106,8 @@ public boolean book(int start, int end) {
106106 *
107107 * case 1)
108108 *
109- * |-----| old new[1] > old[0] && new[0] < old[1]
110- * |----| new
109+ * |-----| old new[1] > old[0] && new[0] < old[1]
110+ * |------- | new
111111 *
112112 *
113113 * case 2)
@@ -116,8 +116,8 @@ public boolean book(int start, int end) {
116116 *
117117 * case 3)
118118 *
119- * |------| old new[1] > old[0] && new[0] < old[1]
120- * |-------------| new
119+ * |------| old new[1] > old[0] && new[0] < old[1]
120+ * |---------------- | new
121121 *
122122 *
123123 * -> so, all overlap cases
@@ -165,18 +165,18 @@ public boolean book(int startTime, int endTime) {
165165 * 3 OVERLAP CASES
166166 *
167167 *
168- * |----| (new)
168+ * |----| (new)
169169 * |------| (old)
170170 *
171171 * or
172172 *
173173 * |-----| (new)
174- * |----| (old)
174+ * |----| (old)
175175 *
176176 * or
177177 *
178- * |---| (new)
179- * |----------| (old)
178+ * |---| (new)
179+ * |------------ | (old)
180180 *
181181 *
182182 */
You can’t perform that action at this time.
0 commit comments