[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

[leetcode][Database][Hard] 1412. Find the Quiet Students in All Exams

Description Table: Student +---------------------+---------+ | Column Name | Type | +---------------------+---------+ | student_id | int | | student_name | varchar | +---------------------+---------+ student_id is the primary key for this table. student_name is the name of the student. Table: Exam +---------------+---------+ | Column Name | Type | +---------------+---------+ | exam_id | int | | student_id | int | | score | int | +---------------+---------+ (exam_id, student_id) is the primary key for this table....

<span title='2022-12-13 01:08:00.986 +0000 UTC'>December 13, 2022</span>&nbsp;·&nbsp;3 分鐘&nbsp;·&nbsp;519 字&nbsp;·&nbsp;ZhengWei, Liu

[leetcode][Database][Hard] 1369. Get the Second Most Recent Activity

Description Table: UserActivity +---------------+---------+ | Column Name | Type | +---------------+---------+ | username | varchar | | activity | varchar | | startDate | Date | | endDate | Date | +---------------+---------+ There is no primary key for this table. It may contain duplicates. This table contains information about the activity performed by each user in a period of time. A person with username performed an activity from startDate to endDate....

<span title='2022-12-13 00:10:04.002 +0000 UTC'>December 13, 2022</span>&nbsp;·&nbsp;2 分鐘&nbsp;·&nbsp;410 字&nbsp;·&nbsp;ZhengWei, Liu

[leetcode][Database][Hard] 1336. Number of Transactions per Visit

Description Table: Visits +---------------+---------+ | Column Name | Type | +---------------+---------+ | user_id | int | | visit_date | date | +---------------+---------+ (user_id, visit_date) is the primary key for this table. Each row of this table indicates that user_id has visited the bank in visit_date. Table: Transactions +------------------+---------+ | Column Name | Type | +------------------+---------+ | user_id | int | | transaction_date | date | | amount | int | +------------------+---------+ There is no primary key for this table, it may contain duplicates....

<span title='2022-12-12 16:38:05.305 +0000 UTC'>December 12, 2022</span>&nbsp;·&nbsp;4 分鐘&nbsp;·&nbsp;717 字&nbsp;·&nbsp;ZhengWei, Liu

整理面試常見問題 — Kubernetes

記錄在過去面試中常被問到的問題,以及依據自己的理解與查找到的資料,整理對應的回覆 Q1. K8s 有哪些 components ? Q2. 部署一個應用到 K8s 時,K8s 會如何運作整個流程 ? Q3. 對於在 K8s 上建置正式環境 (Product) 和測試環境 (Development)的規劃

<span title='2022-12-08 06:26:47.022 +0000 UTC'>December 8, 2022</span>&nbsp;·&nbsp;2 分鐘&nbsp;·&nbsp;857 字&nbsp;·&nbsp;ZhengWei, Liu

[leetcode][Database][Hard] 1225. Report Contiguous Dates

題目 Table: Failed +--------------+---------+ | Column Name | Type | +--------------+---------+ | fail_date | date | +--------------+---------+ fail_date is the primary key for this table. This table contains the days of failed tasks. Table: Succeeded +--------------+---------+ | Column Name | Type | +--------------+---------+ | success_date | date | +--------------+---------+ success_date is the primary key for this table. This table contains the days of succeeded tasks. A system is running...

<span title='2022-12-07 02:38:30.546 +0000 UTC'>December 7, 2022</span>&nbsp;·&nbsp;3 分鐘&nbsp;·&nbsp;1077 字&nbsp;·&nbsp;ZhengWei, Liu