1613. Find the Missing IDs
Description
+---------------+---------+
| Column Name | Type |
+---------------+---------+
| customer\_id | int |
| customer\_name | varchar |
+---------------+---------+
customer\_id is the primary key for this table.
Each row of this table contains the name and the id customer.Customers table:
+-------------+---------------+
| customer\_id | customer\_name |
+-------------+---------------+
| 1 | Alice |
| 4 | Bob |
| 5 | Charlie |
+-------------+---------------+
Result table:
+-----+
| ids |
+-----+
| 2 |
| 3 |
+-----+
The maximum customer\_id present in the table is 5, so in the range [1,5], IDs 2 and 3 are missing from the table.ac
Previous1612. Check If Two Expression Trees are EquivalentNext1614. Maximum Nesting Depth of the Parentheses
Last updated