1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-14 11:51:42 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

add leetcode problem-cn part2

This commit is contained in:
2022-03-27 20:38:29 +08:00
parent 5a4fa6db12
commit 0fc7f4b734
1617 changed files with 134637 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
<p><strong>若干副扑克牌</strong>中随机抽 <code>5</code> 张牌判断是不是一个顺子即这5张牌是不是连续的。210为数字本身A为1J为11Q为12K为13而大、小王为 0 可以看成任意数字。A 不能视为 14。</p>
<p>&nbsp;</p>
<p><strong>示例&nbsp;1:</strong></p>
<pre>
<strong>输入:</strong> [1,2,3,4,5]
<strong>输出:</strong> True</pre>
<p>&nbsp;</p>
<p><strong>示例&nbsp;2:</strong></p>
<pre>
<strong>输入:</strong> [0,0,1,2,5]
<strong>输出:</strong> True</pre>
<p>&nbsp;</p>
<p><strong>限制:</strong></p>
<p>数组长度为 5&nbsp;</p>
<p>数组的数取值为 [0, 13] .</p>