mirror of
				https://gitee.com/coder-xiaomo/leetcode-problemset
				synced 2025-11-04 19:53:12 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			43 lines
		
	
	
		
			1012 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
		
			1012 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
<p>Table: <code>Person</code></p>
 | 
						|
 | 
						|
<pre>
 | 
						|
+-------------+---------+
 | 
						|
| Column Name | Type    |
 | 
						|
+-------------+---------+
 | 
						|
| id          | int     |
 | 
						|
| email       | varchar |
 | 
						|
+-------------+---------+
 | 
						|
id is the primary key (column with unique values) for this table.
 | 
						|
Each row of this table contains an email. The emails will not contain uppercase letters.
 | 
						|
</pre>
 | 
						|
 | 
						|
<p> </p>
 | 
						|
 | 
						|
<p>Write a solution to report all the duplicate emails. Note that it's guaranteed that the email field is not NULL.</p>
 | 
						|
 | 
						|
<p>Return the result table in <strong>any order</strong>.</p>
 | 
						|
 | 
						|
<p>The result format is in the following example.</p>
 | 
						|
 | 
						|
<p> </p>
 | 
						|
<p><strong class="example">Example 1:</strong></p>
 | 
						|
 | 
						|
<pre>
 | 
						|
<strong>Input:</strong> 
 | 
						|
Person table:
 | 
						|
+----+---------+
 | 
						|
| id | email   |
 | 
						|
+----+---------+
 | 
						|
| 1  | a@b.com |
 | 
						|
| 2  | c@d.com |
 | 
						|
| 3  | a@b.com |
 | 
						|
+----+---------+
 | 
						|
<strong>Output:</strong> 
 | 
						|
+---------+
 | 
						|
| Email   |
 | 
						|
+---------+
 | 
						|
| a@b.com |
 | 
						|
+---------+
 | 
						|
<strong>Explanation:</strong> a@b.com is repeated two times.
 | 
						|
</pre>
 |