Skip to content

Commit 9ddc5fc

Browse files
committed
Create README - LeetHub
1 parent 8b3dbbc commit 9ddc5fc

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<h2><a href="https://leetcode.com/problems/three-consecutive-odds">1550. Three Consecutive Odds</a></h2><h3>Easy</h3><hr>Given an integer array <code>arr</code>, return <code>true</code>&nbsp;if there are three consecutive odd numbers in the array. Otherwise, return&nbsp;<code>false</code>.
2+
<p>&nbsp;</p>
3+
<p><strong class="example">Example 1:</strong></p>
4+
5+
<pre>
6+
<strong>Input:</strong> arr = [2,6,4,1]
7+
<strong>Output:</strong> false
8+
<b>Explanation:</b> There are no three consecutive odds.
9+
</pre>
10+
11+
<p><strong class="example">Example 2:</strong></p>
12+
13+
<pre>
14+
<strong>Input:</strong> arr = [1,2,34,3,4,5,7,23,12]
15+
<strong>Output:</strong> true
16+
<b>Explanation:</b> [5,7,23] are three consecutive odds.
17+
</pre>
18+
19+
<p>&nbsp;</p>
20+
<p><strong>Constraints:</strong></p>
21+
22+
<ul>
23+
<li><code>1 &lt;= arr.length &lt;= 1000</code></li>
24+
<li><code>1 &lt;= arr[i] &lt;= 1000</code></li>
25+
</ul>

0 commit comments

Comments
 (0)