feat: fix description in seed-cn.ts

This commit is contained in:
fly6516 2025-04-16 10:59:07 +08:00
parent 908e4e6f19
commit 31d0f13e08

View File

@ -62,13 +62,7 @@ const userData: Prisma.UserCreateInput[] = [
{
displayId: 1000,
title: "两数之和",
description: `#### 1. 两数之和
---
\`nums\` 和一个整数目标值 \`target\`,请你在该数组中找出 **和为目标值** _\`target\`_  的那  **两个**  整数,并返回它们的数组下标。
description: `给定一个整数数组 \`nums\` 和一个整数目标值 \`target\`,请你在该数组中找出 **和为目标值** _\`target\`_  的那  **两个**  整数,并返回它们的数组下标。
使
@ -76,32 +70,41 @@ const userData: Prisma.UserCreateInput[] = [
** 1**
\`\`\`
\`\`\`shell
nums = [2,7,11,15], target = 9
[0,1]
nums[0] + nums[1] == 9 [0, 1]
\`\`\`
** 2**
### 2
\`\`\`
\`\`\`shell
nums = [3,2,4], target = 6
[1,2]
\`\`\`
** 3**
### 3
\`\`\`
\`\`\`shell
nums = [3,3], target = 6
[0,1]
\`\`\`
****
##
* \`2 <= nums.length <= 10^4\`
* \`-10^9 <= nums[i] <= 10^9\`
* \`-10^9 <= target <= 10^9\`
* ****
\`\`\`math
2 <= nums.length <= 10^4
\`\`\`
\`\`\`math
-10^9 <= nums[i] <= 10^9
\`\`\`
\`\`\`math
-10^9 <= target <= 10^9
\`\`\`
<div align="center">
*
</div>
**** \`O(n^2)\` 的算法吗?
@ -426,22 +429,16 @@ vector<int> Solution::twoSum(vector<int>& nums, int target) {
{
displayId: 1001,
title: "两数相加",
description: `#### 2. 两数相加
---
  ****   ****    ****  
description: `给你两个  **非空** 的链表,表示两个非负的整数。它们每位数字都是按照  **逆序**  的方式存储的,并且每个节点只能存储  **一位**  数字。
0 0 
** 1**
### 1
![](https://assets.leetcode-cn.com/aliyun-lc-upload/uploads/2021/01/02/addtwonumber1.jpg)
\`\`\`
\`\`\`shell
l1 = [2,4,3], l2 = [5,6,4]
[7,0,8]
342 + 465 = 807.
@ -449,23 +446,25 @@ vector<int> Solution::twoSum(vector<int>& nums, int target) {
** 2**
\`\`\`
\`\`\`shell
l1 = [0], l2 = [0]
[0]
\`\`\`
** 3**
### 3
\`\`\`
\`\`\`shell
l1 = [9,9,9,9,9,9,9], l2 = [9,9,9,9]
[8,9,9,9,0,0,0,1]
\`\`\`
****
##
* \`[1, 100]\`
* \`0 <= Node.val <= 9\`
*
<div align="center">
$[1, 100]$
\`0 <= Node.val <= 9\`
</div>
---
@ -483,9 +482,9 @@ vector<int> Solution::twoSum(vector<int>& nums, int target) {
10
0
$0$
carry>0 carry
$carry>0$ carry
@ -761,40 +760,46 @@ ListNode* Solution::addTwoNumbers(ListNode* l1, ListNode* l2) {
{
displayId: 1002,
title: "寻找两个正序数组的中位数",
description: `#### 4. 寻找两个正序数组的中位数
---
\`m\`\`n\` 的正序(从小到大)数组 \`nums1\` 和 \`nums2\`。请你找出并返回这两个正序数组的 **中位数** 。
description: `给定两个大小分别为 \`m\`\`n\` 的正序(从小到大)数组 \`nums1\` 和 \`nums2\`。请你找出并返回这两个正序数组的 **中位数** 。
\`O(log (m+n))\`
** 1**
### 1
\`\`\`
\`\`\`shell
nums1 = [1,3], nums2 = [2]
2.00000
= [1,2,3] 2
\`\`\`
** 2**
### 2
\`\`\`
\`\`\`shell
nums1 = [1,2], nums2 = [3,4]
2.50000
= [1,2,3,4] (2 + 3) / 2 = 2.5
\`\`\`
****
##
* \`nums1.length == m\`
* \`nums2.length == n\`
* \`0 <= m <= 1000\`
* \`0 <= n <= 1000\`
* \`1 <= m + n <= 2000\`
* \`-10^6 <= nums1[i], nums2[i] <= 10^6\`
\`\`\`math
nums1.length == m
\`\`\`
\`\`\`math
nums2.length == n
\`\`\`
\`\`\`math
0 <= m <= 1000
\`\`\`
\`\`\`math
0 <= n <= 1000
\`\`\`
\`\`\`math
1 <= m + n <= 2000
\`\`\`
\`\`\`math
-10^6 <= nums1[i], nums2[i] <= 10^6
\`\`\`
---