You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: solution/0700-0799/0731.My Calendar II/README_EN.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -46,9 +46,9 @@ tags:
46
46
47
47
<strong>Explanation</strong>
48
48
MyCalendarTwo myCalendarTwo = new MyCalendarTwo();
49
-
myCalendarTwo.book(10, 20); // return True, The event can be booked.
50
-
myCalendarTwo.book(50, 60); // return True, The event can be booked.
51
-
myCalendarTwo.book(10, 40); // return True, The event can be double booked.
49
+
myCalendarTwo.book(10, 20); // return True, The event can be booked.
50
+
myCalendarTwo.book(50, 60); // return True, The event can be booked.
51
+
myCalendarTwo.book(10, 40); // return True, The event can be double booked.
52
52
myCalendarTwo.book(5, 15); // return False, The event cannot be booked, because it would result in a triple booking.
53
53
myCalendarTwo.book(5, 10); // return True, The event can be booked, as it does not use time 10 which is already double booked.
54
54
myCalendarTwo.book(25, 55); // return True, The event can be booked, as the time in [25, 40) will be double booked with the third event, the time [40, 50) will be single booked, and the time [50, 55) will be double booked with the second event.
Copy file name to clipboardexpand all lines: solution/0900-0999/0975.Odd Even Jump/README_EN.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ tags:
40
40
<pre>
41
41
<strong>Input:</strong> arr = [10,13,12,14,15]
42
42
<strong>Output:</strong> 2
43
-
<strong>Explanation:</strong>
43
+
<strong>Explanation:</strong>
44
44
From starting index i = 0, we can make our 1st jump to i = 2 (since arr[2] is the smallest among arr[1], arr[2], arr[3], arr[4] that is greater or equal to arr[0]), then we cannot jump any more.
45
45
From starting index i = 1 and i = 2, we can make our 1st jump to i = 3, then we cannot jump any more.
46
46
From starting index i = 3, we can make our 1st jump to i = 4, so we have reached the end.
@@ -54,7 +54,7 @@ jumps.
54
54
<pre>
55
55
<strong>Input:</strong> arr = [2,3,1,1,4]
56
56
<strong>Output:</strong> 3
57
-
<strong>Explanation:</strong>
57
+
<strong>Explanation:</strong>
58
58
From starting index i = 0, we make jumps to i = 1, i = 2, i = 3:
59
59
During our 1st jump (odd-numbered), we first jump to i = 1 because arr[1] is the smallest value in [arr[1], arr[2], arr[3], arr[4]] that is greater than or equal to arr[0].
60
60
During our 2nd jump (even-numbered), we jump from i = 1 to i = 2 because arr[2] is the largest value in [arr[2], arr[3], arr[4]] that is less than or equal to arr[1]. arr[3] is also the largest value, but 2 is a smaller index, so we can only jump to i = 2 and not i = 3
Copy file name to clipboardexpand all lines: solution/1400-1499/1438.Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit/README.md
Copy file name to clipboardexpand all lines: solution/1400-1499/1438.Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit/README_EN.md
0 commit comments