[leetcode][Database][Hard] 2010. The Number of Seniors and Juniors to Join the Company II

Description Table: Candidates +-------------+------+ | Column Name | Type | +-------------+------+ | employee_id | int | | experience | enum | | salary | int | +-------------+------+ employee_id is the primary key column for this table. experience is an enum with one of the values ('Senior', 'Junior'). Each row of this table indicates the id of a candidate, their monthly salary, and their experience. The salary of each candidate is guaranteed to be unique....

<span title='2022-12-17 00:11:43.958 +0000 UTC'>December 17, 2022</span>&nbsp;·&nbsp;2 分鐘&nbsp;·&nbsp;425 字&nbsp;·&nbsp;ZhengWei, Liu

[leetcode][Database][Hard] 2118. Build the Equation

Description Table: Terms +-------------+------+ | Column Name | Type | +-------------+------+ | power | int | | factor | int | +-------------+------+ power is the primary key column for this table. Each row of this table contains information about one term of the equation. power is an integer in the range [0, 100]. factor is an integer in the range [-100, 100] and cannot be zero. You have a very powerful program that can solve any equation of one variable in the world....

<span title='2022-12-16 23:57:37.348 +0000 UTC'>December 16, 2022</span>&nbsp;·&nbsp;3 分鐘&nbsp;·&nbsp;430 字&nbsp;·&nbsp;ZhengWei, Liu

[leetcode][Database][Hard]2253. Dynamic Unpivoting of a Table

Description Table: Products +-------------+---------+ | Column Name | Type | +-------------+---------+ | product_id | int | | store_name1 | int | | store_name2 | int | | : | int | | : | int | | : | int | | store_namen | int | +-------------+---------+ product_id is the primary key for this table. Each row in this table indicates the product's price in n different stores. If the product is not available in a store, the price will be null in that store's column....

<span title='2022-12-16 21:13:39.338 +0000 UTC'>December 16, 2022</span>&nbsp;·&nbsp;3 分鐘&nbsp;·&nbsp;429 字&nbsp;·&nbsp;ZhengWei, Liu

[leetcode][Database][Hard] 1919. Leetcodify Similar Friends

Description Table: Listens +-------------+---------+ | Column Name | Type | +-------------+---------+ | user_id | int | | song_id | int | | day | date | +-------------+---------+ There is no primary key for this table. It may contain duplicates. Each row of this table indicates that the user user_id listened to the song song_id on the day day. Table: Friendship +---------------+---------+ | Column Name | Type | +---------------+---------+ | user1_id | int | | user2_id | int | +---------------+---------+ (user1_id, user2_id) is the primary key for this table....

<span title='2022-12-16 01:08:30.34 +0000 UTC'>December 16, 2022</span>&nbsp;·&nbsp;4 分鐘&nbsp;·&nbsp;642 字&nbsp;·&nbsp;ZhengWei, Liu

[leetcode][Database][Hard] 1917. Leetcodify Friends Recommendations

Description Table: Listens +-------------+---------+ | Column Name | Type | +-------------+---------+ | user_id | int | | song_id | int | | day | date | +-------------+---------+ There is no primary key for this table. It may contain duplicates. Each row of this table indicates that the user user_id listened to the song song_id on the day day. Table: Friendship +---------------+---------+ | Column Name | Type | +---------------+---------+ | user1_id | int | | user2_id | int | +---------------+---------+ (user1_id, user2_id) is the primary key for this table....

<span title='2022-12-15 23:52:20.337 +0000 UTC'>December 15, 2022</span>&nbsp;·&nbsp;3 分鐘&nbsp;·&nbsp;625 字&nbsp;·&nbsp;ZhengWei, Liu

[leetcode][Database][Hard] 1892. Page Recommendations II

Description Table: Friendship +---------------+---------+ | Column Name | Type | +---------------+---------+ | user1_id | int | | user2_id | int | +---------------+---------+ (user1_id, user2_id) is the primary key for this table. Each row of this table indicates that the users user1_id and user2_id are friends. Table: Likes +-------------+---------+ | Column Name | Type | +-------------+---------+ | user_id | int | | page_id | int | +-------------+---------+ (user_id, page_id) is the primary key for this table....

<span title='2022-12-15 21:38:41.738 +0000 UTC'>December 15, 2022</span>&nbsp;·&nbsp;4 分鐘&nbsp;·&nbsp;661 字&nbsp;·&nbsp;ZhengWei, Liu

[leetcode][Database][Hard] 1767. Find the Subtasks That Did Not Execute

Description Table: Tasks +----------------+---------+ | Column Name | Type | +----------------+---------+ | task_id | int | | subtasks_count | int | +----------------+---------+ task_id is the primary key for this table. Each row in this table indicates that task_id was divided into subtasks_count subtasks labeled from 1 to subtasks_count. It is guaranteed that 2 <= subtasks_count <= 20. Table: Executed +---------------+---------+ | Column Name | Type | +---------------+---------+ | task_id | int | | subtask_id | int | +---------------+---------+ (task_id, subtask_id) is the primary key for this table....

<span title='2022-12-15 17:53:09.861 +0000 UTC'>December 15, 2022</span>&nbsp;·&nbsp;2 分鐘&nbsp;·&nbsp;372 字&nbsp;·&nbsp;ZhengWei, Liu

[leetcode][Database][Hard] 1651. Hopper Company Queries III

Description Table: Drivers +-------------+---------+ | Column Name | Type | +-------------+---------+ | driver_id | int | | join_date | date | +-------------+---------+ driver_id is the primary key for this table. Each row of this table contains the driver's ID and the date they joined the Hopper company. Table: Rides +--------------+---------+ | Column Name | Type | +--------------+---------+ | ride_id | int | | user_id | int | | requested_at | date | +--------------+---------+ ride_id is the primary key for this table....

<span title='2022-12-15 16:48:56.352 +0000 UTC'>December 15, 2022</span>&nbsp;·&nbsp;5 分鐘&nbsp;·&nbsp;1036 字&nbsp;·&nbsp;ZhengWei, Liu

[leetcode][Database][Hard] 1645. Hopper Company Queries II

Description Table: Drivers +-------------+---------+ | Column Name | Type | +-------------+---------+ | driver_id | int | | join_date | date | +-------------+---------+ driver_id is the primary key for this table. Each row of this table contains the driver's ID and the date they joined the Hopper company. Table: Rides +--------------+---------+ | Column Name | Type | +--------------+---------+ | ride_id | int | | user_id | int | | requested_at | date | +--------------+---------+ ride_id is the primary key for this table....

<span title='2022-12-15 15:55:19.725 +0000 UTC'>December 15, 2022</span>&nbsp;·&nbsp;5 分鐘&nbsp;·&nbsp;929 字&nbsp;·&nbsp;ZhengWei, Liu

[leetcode][Database][Hard] 1635. Hopper Company Queries I

Description Table: Drivers +-------------+---------+ | Column Name | Type | +-------------+---------+ | driver_id | int | | join_date | date | +-------------+---------+ driver_id is the primary key for this table. Each row of this table contains the driver's ID and the date they joined the Hopper company. Table: Rides +--------------+---------+ | Column Name | Type | +--------------+---------+ | ride_id | int | | user_id | int | | requested_at | date | +--------------+---------+ ride_id is the primary key for this table....

<span title='2022-12-14 08:28:10.032 +0000 UTC'>December 14, 2022</span>&nbsp;·&nbsp;5 分鐘&nbsp;·&nbsp;928 字&nbsp;·&nbsp;ZhengWei, Liu