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/2100-2199/2145.Count the Hidden Sequences/README_EN.md
-2
Original file line number
Diff line number
Diff line change
@@ -10,14 +10,12 @@
10
10
11
11
<ul>
12
12
<li>For example, given <code>differences = [1, -3, 4]</code>, <code>lower = 1</code>, <code>upper = 6</code>, the hidden sequence is a sequence of length <code>4</code> whose elements are in between <code>1</code> and <code>6</code> (<strong>inclusive</strong>).
13
-
14
13
<ul>
15
14
<li><code>[3, 4, 1, 5]</code> and <code>[4, 5, 2, 6]</code> are possible hidden sequences.</li>
16
15
<li><code>[5, 6, 3, 7]</code> is not possible since it contains an element greater than <code>6</code>.</li>
17
16
<li><code>[1, 2, 3, 4]</code> is not possible since the differences are not correct.</li>
18
17
</ul>
19
18
</li>
20
-
21
19
</ul>
22
20
23
21
<p>Return <em>the number of <strong>possible</strong> hidden sequences there are.</em> If there are no possible sequences, return <code>0</code>.</p>
0 commit comments