1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-01-10 18:48:13 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
leetcode-problemset/leetcode-cn/problem (Chinese)/扑克牌中的顺子 [bu-ke-pai-zhong-de-shun-zi-lcof].html
2022-03-29 12:43:11 +08:00

26 lines
669 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<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>