René's URL Explorer Experiment


Title: 1045. 买下所有产品的客户 - 力扣(LeetCode)

Open Graph Title: 1045. 买下所有产品的客户 - 力扣(LeetCode)

Description: 1045. 买下所有产品的客户 - Customer 表: +-------------+---------+ | Column Name | Type | +-------------+---------+ | customer_id | int | | product_key | int | +-------------+---------+ 该表可能包含重复的行。 customer_id 不为 NULL。 product_key 是 Product 表的外键(reference 列)。 Product 表: +-------------+---------+ | Column Name | Type | +-------------+---------+ | product_key | int | +-------------+---------+ product_key 是这张表的主键(具有唯一值的列)。   编写解决方案,报告 Customer 表中购买了 Product 表中所有产品的客户的 id。 返回结果表 无顺序要求 。 返回结果格式如下所示。   示例 1: 输入: Customer 表: +-------------+-------------+ | customer_id | product_key | +-------------+-------------+ | 1 | 5 | | 2 | 6 | | 3 | 5 | | 3 | 6 | | 1 | 6 | +-------------+-------------+ Product 表: +-------------+ | product_key | +-------------+ | 5 | | 6 | +-------------+ 输出: +-------------+ | customer_id | +-------------+ | 1 | | 3 | +-------------+ 解释: 购买了所有产品(5 和 6)的客户的 id 是 1 和 3 。

Open Graph Description: 1045. 买下所有产品的客户 - Customer 表: +-------------+---------+ | Column Name | Type | +-------------+---------+ | customer_id | int | | product_key | int | +-------------+---------+ 该表可能包含重复的行。 customer_id 不为 NULL。 product_key 是 Product 表的外键(reference 列)。 Product 表: +-------------+---------+ | Column Name | Type | +-------------+---------+ | product_key | int | +-------------+---------+ product_key 是这张表的主键(具有唯一值的列)。   编写解决方案,报告 Customer 表中购买了 Product 表中所有产品的客户的 id。 返回结果表 无顺序要求 。 返回结果格式如下所示。   示例 1: 输入: Customer 表: +-------------+-------------+ | customer_id | product_key | +-------------+-------------+ | 1 | 5 | | 2 | 6 | | 3 | 5 | | 3 | 6 | | 1 | 6 | +-------------+-------------+ Product 表: +-------------+ | product_key | +-------------+ | 5 | | 6 | +-------------+ 输出: +-------------+ | customer_id | +-------------+ | 1 | | 3 | +-------------+ 解释: 购买了所有产品(5 和 6)的客户的 id 是 1 和 3 。

Opengraph URL: https://leetcode.cn/problems/customers-who-bought-all-products/description

X: @LeetCode

direct link

Domain: leetcode-cn.com

twitter:cardsummary_large_image
og:imagehttps://static.leetcode-cn.com/cn-legacy-assets/images/LeetCode_Sharing.png
og:localezh_CN
og:site_name力扣 LeetCode

Links:

Viewport: width=device-width

Robots: index,follow


URLs of crawlers that visited me.