mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-07 08:21:41 +08:00
存量题库数据更新
This commit is contained in:
@@ -7,17 +7,17 @@
|
||||
"boundTopicId": 1357,
|
||||
"title": "Duplicate Emails",
|
||||
"titleSlug": "duplicate-emails",
|
||||
"content": "<p>Table: <code>Person</code></p>\n\n<pre>\n+-------------+---------+\n| Column Name | Type |\n+-------------+---------+\n| id | int |\n| email | varchar |\n+-------------+---------+\nid is the primary key column for this table.\nEach row of this table contains an email. The emails will not contain uppercase letters.\n</pre>\n\n<p> </p>\n\n<p>Write an SQL query to report all the duplicate emails.</p>\n\n<p>Return the result table in <strong>any order</strong>.</p>\n\n<p>The query result format is in the following example.</p>\n\n<p> </p>\n<p><strong>Example 1:</strong></p>\n\n<pre>\n<strong>Input:</strong> \nPerson table:\n+----+---------+\n| id | email |\n+----+---------+\n| 1 | a@b.com |\n| 2 | c@d.com |\n| 3 | a@b.com |\n+----+---------+\n<strong>Output:</strong> \n+---------+\n| Email |\n+---------+\n| a@b.com |\n+---------+\n<strong>Explanation:</strong> a@b.com is repeated two times.\n</pre>\n",
|
||||
"content": "<p>Table: <code>Person</code></p>\n\n<pre>\n+-------------+---------+\n| Column Name | Type |\n+-------------+---------+\n| id | int |\n| email | varchar |\n+-------------+---------+\nid is the primary key (column with unique values) for this table.\nEach row of this table contains an email. The emails will not contain uppercase letters.\n</pre>\n\n<p> </p>\n\n<p>Write a solution to report all the duplicate emails. Note that it's guaranteed that the email field is not NULL.</p>\n\n<p>Return the result table in <strong>any order</strong>.</p>\n\n<p>The result format is in the following example.</p>\n\n<p> </p>\n<p><strong class=\"example\">Example 1:</strong></p>\n\n<pre>\n<strong>Input:</strong> \nPerson table:\n+----+---------+\n| id | email |\n+----+---------+\n| 1 | a@b.com |\n| 2 | c@d.com |\n| 3 | a@b.com |\n+----+---------+\n<strong>Output:</strong> \n+---------+\n| Email |\n+---------+\n| a@b.com |\n+---------+\n<strong>Explanation:</strong> a@b.com is repeated two times.\n</pre>\n",
|
||||
"translatedTitle": "查找重复的电子邮箱",
|
||||
"translatedContent": "<p>编写一个 SQL 查询,查找 <code>Person</code> 表中所有重复的电子邮箱。</p>\n\n<p><strong>示例:</strong></p>\n\n<pre>+----+---------+\n| Id | Email |\n+----+---------+\n| 1 | a@b.com |\n| 2 | c@d.com |\n| 3 | a@b.com |\n+----+---------+\n</pre>\n\n<p>根据以上输入,你的查询应返回以下结果:</p>\n\n<pre>+---------+\n| Email |\n+---------+\n| a@b.com |\n+---------+\n</pre>\n\n<p><strong>说明:</strong>所有电子邮箱都是小写字母。</p>\n",
|
||||
"translatedContent": "<p><meta charset=\"UTF-8\" /></p>\n\n<p>表: <code>Person</code></p>\n\n<pre>\n+-------------+---------+\n| Column Name | Type |\n+-------------+---------+\n| id | int |\n| email | varchar |\n+-------------+---------+\nid 是该表的主键(具有唯一值的列)。\n此表的每一行都包含一封电子邮件。电子邮件不包含大写字母。\n</pre>\n\n<p> </p>\n\n<p>编写解决方案来报告所有重复的电子邮件。 请注意,可以保证电子邮件字段不为 NULL。</p>\n\n<p>以 <strong>任意顺序 </strong>返回结果表。</p>\n\n<p>结果格式如下例。</p>\n\n<p> </p>\n\n<p><strong>示例 1:</strong></p>\n\n<pre>\n<strong>输入:</strong> \nPerson 表:\n+----+---------+\n| id | email |\n+----+---------+\n| 1 | a@b.com |\n| 2 | c@d.com |\n| 3 | a@b.com |\n+----+---------+\n<strong>输出:</strong> \n+---------+\n| Email |\n+---------+\n| a@b.com |\n+---------+\n<strong>解释:</strong> a@b.com 出现了两次。</pre>\n",
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Easy",
|
||||
"likes": 354,
|
||||
"likes": 481,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
"contributors": [],
|
||||
"langToValidPlayground": "{\"cpp\": false, \"java\": false, \"python\": false, \"python3\": false, \"mysql\": false, \"mssql\": false, \"oraclesql\": false, \"c\": false, \"csharp\": false, \"javascript\": false, \"ruby\": false, \"bash\": false, \"swift\": false, \"golang\": false, \"scala\": false, \"html\": false, \"pythonml\": false, \"kotlin\": false, \"rust\": false, \"php\": false, \"typescript\": false, \"racket\": false, \"erlang\": false, \"elixir\": false}",
|
||||
"langToValidPlayground": "{\"cpp\": false, \"java\": false, \"python\": false, \"python3\": false, \"mysql\": false, \"mssql\": false, \"oraclesql\": false, \"c\": false, \"csharp\": false, \"javascript\": false, \"typescript\": false, \"bash\": false, \"php\": false, \"swift\": false, \"kotlin\": false, \"dart\": false, \"golang\": false, \"ruby\": false, \"scala\": false, \"html\": false, \"pythonml\": false, \"rust\": false, \"racket\": false, \"erlang\": false, \"elixir\": false, \"pythondata\": false, \"react\": false, \"vanillajs\": false, \"postgresql\": false}",
|
||||
"topicTags": [
|
||||
{
|
||||
"name": "Database",
|
||||
@@ -45,9 +45,21 @@
|
||||
"langSlug": "oraclesql",
|
||||
"code": "/* Write your PL/SQL query statement below */",
|
||||
"__typename": "CodeSnippetNode"
|
||||
},
|
||||
{
|
||||
"lang": "Pandas",
|
||||
"langSlug": "pythondata",
|
||||
"code": "import pandas as pd\n\ndef duplicate_emails(person: pd.DataFrame) -> pd.DataFrame:\n ",
|
||||
"__typename": "CodeSnippetNode"
|
||||
},
|
||||
{
|
||||
"lang": "PostgreSQL",
|
||||
"langSlug": "postgresql",
|
||||
"code": "-- Write your PostgreSQL query statement below",
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"222.2K\", \"totalSubmission\": \"280.2K\", \"totalAcceptedRaw\": 222192, \"totalSubmissionRaw\": 280173, \"acRate\": \"79.3%\"}",
|
||||
"stats": "{\"totalAccepted\": \"324.8K\", \"totalSubmission\": \"412.9K\", \"totalAcceptedRaw\": 324808, \"totalSubmissionRaw\": 412865, \"acRate\": \"78.7%\"}",
|
||||
"hints": [],
|
||||
"solution": {
|
||||
"id": "103",
|
||||
@@ -55,8 +67,8 @@
|
||||
"__typename": "ArticleNode"
|
||||
},
|
||||
"status": null,
|
||||
"sampleTestCase": "{\"headers\": {\"Person\": [\"Id\", \"Email\"]}, \"rows\": {\"Person\": [[1, \"a@b.com\"], [2, \"c@d.com\"], [3, \"a@b.com\"]]}}",
|
||||
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Person (id int, email varchar(255))\"\n ],\n \"mssql\": [\n \"Create table Person (id int, email varchar(255))\"\n ],\n \"oraclesql\": [\n \"Create table Person (id int, email varchar(255))\"\n ],\n \"database\": true\n}",
|
||||
"sampleTestCase": "{\"headers\": {\"Person\": [\"id\", \"email\"]}, \"rows\": {\"Person\": [[1, \"a@b.com\"], [2, \"c@d.com\"], [3, \"a@b.com\"]]}}",
|
||||
"metaData": "{\"mysql\":[\"Create table If Not Exists Person (id int, email varchar(255))\"],\"mssql\":[\"Create table Person (id int, email varchar(255))\"],\"oraclesql\":[\"Create table Person (id int, email varchar(255))\"],\"database\":true,\"name\":\"duplicate_emails\",\"pythondata\":[\"Person = pd.DataFrame([], columns=['id', 'email']).astype({'id':'Int64', 'email':'object'})\"],\"postgresql\":[\"Create table If Not Exists Person (id int, email varchar(255))\"],\"database_schema\":{\"Person\":{\"id\":\"INT\",\"email\":\"VARCHAR(255)\"}}}",
|
||||
"judgerAvailable": true,
|
||||
"judgeType": "large",
|
||||
"mysqlSchemas": [
|
||||
@@ -67,7 +79,7 @@
|
||||
"insert into Person (id, email) values ('3', 'a@b.com')"
|
||||
],
|
||||
"enableRunCode": true,
|
||||
"envInfo": "{\"mysql\":[\"MySQL\",\"<p>\\u7248\\u672c\\uff1a<code>MySQL 8.0<\\/code><\\/p>\"],\"mssql\":[\"MS SQL Server\",\"<p>mssql server 2019.<\\/p>\"],\"oraclesql\":[\"Oracle\",\"<p>Oracle Sql 11.2.<\\/p>\"]}",
|
||||
"envInfo": "{\"mysql\":[\"MySQL\",\"<p>\\u7248\\u672c\\uff1a<code>MySQL 8.0<\\/code><\\/p>\"],\"mssql\":[\"MS SQL Server\",\"<p>mssql server 2019.<\\/p>\"],\"oraclesql\":[\"Oracle\",\"<p>Oracle Sql 11.2.<\\/p>\"],\"pythondata\":[\"Pandas\",\"<p>Python 3.10 with Pandas 2.0.2 and NumPy 1.25.0<\\/p>\"],\"postgresql\":[\"PostgreSQL\",\"<p>PostgreSQL 16<\\/p>\"]}",
|
||||
"book": null,
|
||||
"isSubscribed": false,
|
||||
"isDailyQuestion": false,
|
||||
|
Reference in New Issue
Block a user