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

存量题库数据更新

This commit is contained in:
2023-12-09 18:42:21 +08:00
parent a788808cd7
commit c198538f10
10843 changed files with 288489 additions and 248355 deletions

View File

@@ -1,21 +1,23 @@
<p>给你&nbsp;<code>n</code>&nbsp;笔订单,每笔订单都需要快递服务。</p>
<p>请你统计所有有效的 收件/配送 序列的数目,确保第 <code>i</code> 个物品的配送服务&nbsp;<code>delivery(i)</code> 总是在其收件服务&nbsp;<code>pickup(i)</code> 之后。</p>
<p>所有有效的 取货 / 交付 可能的顺序,使 delivery(i) 总是在 pickup(i) 之后。</p>
<p>由于答案可能很大,请返回答案对 <code>10^9 + 7</code> 取余的结果。</p>
<p>由于答案可能很大,请返回答案对 10^9 + 7 取余的结果。</p>
<p>&nbsp;</p>
<p><strong>示例 1</strong></p>
<pre><strong>输入:</strong>n = 1
<pre>
<strong>输入:</strong>n = 1
<strong>输出:</strong>1
<strong>解释:</strong>只有一种序列 (P1, D1),物品 1 的配送服务D1在物品 1 的收件服务P1后。
</pre>
<p><strong>示例 2</strong></p>
<pre><strong>输入:</strong>n = 2
<pre>
<strong>输入:</strong>n = 2
<strong>输出:</strong>6
<strong>解释:</strong>所有可能的序列包括:
(P1,P2,D1,D2)(P1,P2,D2,D1)(P1,D1,P2,D2)(P2,P1,D1,D2)(P2,P1,D2,D1) 和 (P2,D2,P1,D1)。
@@ -24,7 +26,8 @@
<p><strong>示例 3</strong></p>
<pre><strong>输入:</strong>n = 3
<pre>
<strong>输入:</strong>n = 3
<strong>输出:</strong>90
</pre>