leetcode sql50題

在中文站沒找到對應的集合,想來自己動手拷貝過來,方便大家面試復習用,對應英文站點: https://leetcode.com/studyplan/top-sql-50/

Select

  1. #1757. 可回收且低脂的產品
    • 鏈接: https://leetcode.cn/problems/recyclable-and-low-fat-products/
  2. #584. 尋找用戶推薦人
    • 鏈接: https://leetcode.cn/problems/find-customer-referee/
  3. #595. 大的國家
    • 鏈接: https://leetcode.cn/problems/big-countries/
  4. #1148. 文章瀏覽 I
    • 鏈接: https://leetcode.cn/problems/article-views-i/
  5. #1683. 無效的推文
    • 鏈接: https://leetcode.cn/problems/invalid-tweets/

Basic Joins

  1. #1378. 使用唯一標識碼替換員工ID
    • 鏈接: https://leetcode.cn/problems/replace-employee-id-with-the-unique-identifier/
  2. #1068. 產品銷售分析 I
    • 鏈接: https://leetcode.cn/problems/product-sales-analysis-i/
  3. #1581. 進店卻未進行過交易的顧客
    • 鏈接: https://leetcode.cn/problems/customer-who-visited-but-did-not-make-any-transactions/
  4. #197. 上升的溫度
    • 鏈接: https://leetcode.cn/problems/rising-temperature/
  5. #1661. 每臺機器的平均處理時間
    • 鏈接: https://leetcode.cn/problems/average-time-of-process-per-machine/
  6. #577. 員工獎金
    • 鏈接: https://leetcode.cn/problems/employee-bonus/
  7. #1280. 學生們參加各科測試的次數
    • 鏈接: https://leetcode.cn/problems/students-and-examinations/
  8. #570. 至少有5名直接下屬的經理
    • 鏈接: https://leetcode.cn/problems/managers-with-at-least-5-direct-reports/
  9. #1934. 確認率
    • 鏈接: https://leetcode.cn/problems/confirmation-rate/
  10. #620. 有趣的電影
    • 鏈接: https://leetcode.cn/problems/not-boring-movies/

Basic Aggregate Functions

  1. #1251. 平均售價
    • 鏈接: https://leetcode.cn/problems/average-selling-price/
  2. #1075. 項目員工 I
    • 鏈接: https://leetcode.cn/problems/project-employees-i/
  3. #1633. 各賽事的用戶注冊率
    • 鏈接: https://leetcode.cn/problems/percentage-of-users-attended-a-contest/
  4. #1211. 查詢結果的質量和占比
    • 鏈接: https://leetcode.cn/problems/queries-quality-and-percentage/
  5. #1141. 查詢近30天活躍用戶數
    • 鏈接: https://leetcode.cn/problems/user-activity-for-the-past-30-days-i/

Sorting and Grouping

  1. #1084. 銷售分析 III
    • 鏈接: https://leetcode.cn/problems/sales-analysis-iii/
  2. #596. 超過5名學生的課
    • 鏈接: https://leetcode.cn/problems/classes-more-than-5-students/
  3. #1729. 求關注者的數量
    • 鏈接: https://leetcode.cn/problems/find-followers-count/
  4. #619. 只出現一次的最大數字
    • 鏈接: https://leetcode.cn/problems/biggest-single-number/
  5. #1731. 每位經理的下屬員工數量
    • 鏈接: https://leetcode.cn/problems/the-number-of-employees-which-report-to-each-employee/
  6. #183. 從不訂購的客戶
    • 鏈接: https://leetcode.cn/problems/customers-who-never-order/

Advanced Select and Joins

  1. #1789. 首位 K 個員工的主要部門
    • 鏈接: https://leetcode.cn/problems/primary-department-for-each-employee/
  2. #610. 判斷三角形
    • 鏈接: https://leetcode.cn/problems/triangle-judgement/
  3. #180. 連續出現的數字
    • 鏈接: https://leetcode.cn/problems/consecutive-numbers/
  4. #1164. 指定日期的產品價格
    • 鏈接: https://leetcode.cn/problems/product-price-at-a-given-date/
  5. #1204. 最后一個人
    • 鏈接: https://leetcode.cn/problems/last-person-to-fit-in-the-bus/
  6. #1978. 上級經理已離職的員工
    • 鏈接: https://leetcode.cn/problems/employees-whose-manager-left-a-company/

Subqueries

  1. #184. 部門工資最高的員工
    • 鏈接: https://leetcode.cn/problems/department-highest-salary/
  2. #585. 2016年的投資
    • 鏈接: https://leetcode.cn/problems/investments-in-2016/
  3. #1341. 電影評分
    • 鏈接: https://leetcode.cn/problems/movie-rating/
  4. #602. 好友申請 II :誰有最多的好友
    • 鏈接: https://leetcode.cn/problems/friend-requests-ii-who-has-the-most-friends/
  5. #1321. 餐館營業額變化增長
    • 鏈接: https://leetcode.cn/problems/restaurant-growth/
  6. #185. 部門工資前三高的所有員工
    • 鏈接: https://leetcode.cn/problems/department-top-three-salaries/

Advanced String Functions / Regex / Clause

  1. #1484. 按日期分組銷售產品
    • 鏈接: https://leetcode.cn/problems/group-sold-products-by-the-date/
  2. #1527. 患某種疾病的患者
    • 鏈接: https://leetcode.cn/problems/patients-with-a-condition/
  3. #196. 刪除重復的電子郵箱
    • 鏈接: https://leetcode.cn/problems/delete-duplicate-emails/
  4. #176. 第二高的薪水
    • 鏈接: https://leetcode.cn/problems/second-highest-salary/
  5. #1667. 修復表中的名字
    • 鏈接: https://leetcode.cn/problems/fix-names-in-a-table/
  6. #1517. 查找擁有有效郵箱的用戶
    • 鏈接: https://leetcode.cn/problems/find-users-with-valid-e-mails/

Complicated Stuff

  1. #1193. 每月交易 I
    • 鏈接: https://leetcode.cn/problems/monthly-transactions-i/
  2. #1174. 即時食物配送 II
    • 鏈接: https://leetcode.cn/problems/immediate-food-delivery-ii/
  3. #550. 游戲玩法分析 IV
    • 鏈接: https://leetcode.cn/problems/game-play-analysis-iv/
  4. #2356. 每位教師所教授的科目種類的數量
    • 鏈接: https://leetcode.cn/problems/number-of-unique-subjects-taught-by-each-teacher/
  5. #1070. 產品銷售分析 III
    • 鏈接: https://leetcode.cn/problems/product-sales-analysis-iii/
  6. #1907. 按分類統計薪水
    • 鏈接: https://leetcode.cn/problems/count-salary-categories/

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/908618.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/908618.shtml
英文地址,請注明出處:http://en.pswp.cn/news/908618.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

Dynadot專業版郵箱工具指南(五):將域名郵箱添加至Outlook客戶端

關于Dynadot Dynadot是通過ICANN認證的域名注冊商,自2002年成立以來,服務于全球108個國家和地區的客戶,為數以萬計的客戶提供簡潔,優惠,安全的域名注冊以及管理服務。 Dynadot平臺操作教程索引(包括域名郵…

【RTSP從零實踐】1、根據RTSP協議實現一個RTSP服務

😁博客主頁😁:🚀https://blog.csdn.net/wkd_007🚀 🤑博客內容🤑:🍭嵌入式開發、Linux、C語言、C、數據結構、音視頻🍭 🤣本文內容🤣&a…

Python網頁數據抓取常用的庫及方法介紹

Python網頁數據抓取常用的庫及方法介紹 摘要:以下是Python網絡數據抓取常用的6個庫的詳細介紹,包括它們的概述以及每個庫中最常用的10個函數(如果某些庫常用函數不足10個,則列出所有常用函數)。每個函數都附帶功能描述、用法說明和使用示例。這些庫在網絡爬蟲、數據…

6.5 note

一個很有意思的dfs模擬題_前序遍歷 這個問題的話前置內容顯然是字典序,什么是字典序呢? 顧名思義,就是詞語在字典中的順序,也就是我們最常說的a,abandon,ability(我記得前三個是這個) 這是一種字符串之間比…

day027-Shell自動化編程-基礎

文章目錄 1. 修改vim配置文件自動添加注釋2. 故障案例:Windows上寫的Shell腳本上傳到Linux系統上運行報錯3. 腳本運行方法4. 變量4.1 普通變量4.2 環境變量4.3 特殊變量4.4 案例:書寫ping檢查腳本,檢查腳本傳入的第一個參數4.5 面試題&#x…

2025年滲透測試面試題總結-騰訊[實習]科恩實驗室-安全工程師(題目+回答)

安全領域各種資源,學習文檔,以及工具分享、前沿信息分享、POC、EXP分享。不定期分享各種好玩的項目及好用的工具,歡迎關注。 目錄 騰訊[實習]科恩實驗室-安全工程師 一、網絡與協議 1. TCP三次握手 2. SYN掃描原理 3. HTTPS證書機制 二…

人工智能賦能高中學科教學的應用與前景研究

一、引言 1.1 研究背景 在科技飛速發展的當下,人工智能(Artificial Intelligence,簡稱 AI)已成為全球矚目的關鍵技術領域,深刻地改變著人們的生活、工作和學習方式。從智能家居設備到智能交通系統,從醫療…

八、【ESP32開發全棧指南:UDP客戶端】

1. 環境準備 安裝ESP-IDF v4.4 (官方指南)確保Python 3.7 和Git已安裝 2. 創建項目 idf.py create-project udp_client cd udp_client3. 完整優化代碼 (main/main.c) #include <string.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h&…

Android Studio 解決首次安裝時下載 Gradle 慢問題

1、問題描述 第一次安裝 Android Studio 時&#xff0c; 新建工程后&#xff0c;在編譯時會自動去下載 Gradle&#xff0c;但是一般都會下載失敗&#xff0c;提示鏈接超時&#xff1a; Could not install Gradle distribution from https://services.gradle.org/distributions…

hive聚合函數多行合并

在數據倉庫和大數據處理的場景中&#xff0c;Hive提供了強大的SQL查詢能力&#xff0c;其中包括聚合函數用于處理和合并多行數據。本文將深入探討Hive中的幾種常見聚合函數及其在多行合并中的應用。 一、Hive中的常見聚合函數 Hive提供了多種聚合函數&#xff0c;這些函數可以…

關于物聯網的基礎知識(一)

成長路上不孤單&#x1f60a;&#x1f60a;&#x1f60a;&#x1f60a;&#x1f60a;&#x1f60a; 【14后&#x1f60a;///計算機愛好者&#x1f60a;///持續分享所學&#x1f60a;///如有需要歡迎收藏轉發///&#x1f60a;】 今日分享關于物聯網的基礎知識&#xff08;一&a…

遷移科技3D視覺系統:重塑紙箱拆垛場景的智能革命

一、傳統拆垛場景的困局與破局之道 在汽車零部件倉庫中&#xff0c;每天有超過2萬只異形紙箱需要拆垛分揀。傳統人工拆垛面臨三大挑戰&#xff1a; 效率瓶頸&#xff1a;工人每小時僅能處理200-300件&#xff0c;且存在間歇性疲勞安全隱患&#xff1a;20kg以上重箱搬運導致年…

微軟重磅發布Magentic UI,交互式AI Agent助手實測!

微軟重磅發布Magentic UI,交互式AI Agent助手實測! 何為Magentic UI? Magentic UI 是微軟于5.19重磅發布的開源Agent助手,并于24日剛更新了第二個版本0.04版 從官方的介紹來看,目標是打造一款 以人為中心 的智能助手,其底層由多個不同的智能體系統驅動,能夠實現網頁瀏覽…

Python實現快速排序的三種經典寫法及算法解析

今天想熟悉一下python的基礎寫法&#xff0c;那就從最經典的快速排序來開始吧&#xff1a; 1、經典分治寫法&#xff08;原地排序&#xff09; 時間復雜度&#xff1a;平均O(nlogn)&#xff0c;最壞O(n) 空間復雜度&#xff1a;O(logn)遞歸棧空間 特點&#xff1a;通過左右指針…

海康網絡攝像頭實時取幀轉Opencv數組格式(h,w,3),已實現python、C#

海康攝像頭取幀都是有官方demo的&#xff0c;但是將海康格式的數據轉為Opencv格式的沒有相關demo&#xff0c;而大部分深度學習圖像檢測算法(如YOLO)&#xff0c;都是用opencv格式的圖像作為輸入&#xff0c;因此將海康格式數據轉為opencv格式兼容性更強 需要代碼請私信聯系&a…

職坐標IT教育物聯網全棧開發實戰:傳感器到云平臺全鏈路

物聯網全棧開發涉及從終端感知到云端服務的全流程技術整合&#xff0c;其核心在于構建完整的“端-管-云-用”技術鏈條。為幫助開發者系統掌握這一能力&#xff0c;課程圍繞四大模塊展開&#xff1a;傳感器數據采集與處理、通信協議適配與優化、云平臺架構設計及跨平臺應用開發。…

LUFFY(路飛): 使用DeepSeek指導Qwen強化學習

論文標題 Learning to Reason under Off-Policy Guidance 論文地址 https://arxiv.org/pdf/2504.14945 代碼地址 https://github.com/ElliottYan/LUFFY 作者背景 上海人工智能實驗室&#xff0c;西湖大學&#xff0c;南京大學&#xff0c;香港中文大學 動機 目前大模型…

Android Camera Hal中通過Neon指令優化數據拷貝

背景描述&#xff1a; Camera apk普通相機模式錄像操作時&#xff0c;一般是同時請求兩個流&#xff0c;即預覽流和錄像流。對于兩個流輸出圖像格式和分辨率相同的情況下&#xff0c;是不是可以通過一個流拷貝得到另一個流的數據&#xff0c;進而節省掉一個Sensor輸出處理兩次…

WPS word 已有多級列表序號

wps的word中&#xff0c;原來已生成的文檔里&#xff0c;已存在序號。比如&#xff0c;存在2、2.1、2.1.1、2.1.1.1、2.1.1.1.1 5層序號&#xff0c;而且已分為5級。但增加內容的時候&#xff0c;并不會自動增加序號&#xff0c;應該如何解決&#xff1f; 原來長這樣&#xff…

從零開始制作小程序簡單概述

以下是結合案例的“從零制作小紅書風格小程序”的全流程指南&#xff0c;采用小紅書爆款筆記的結構呈現&#xff0c;并附CSDN參考資源&#x1f447;&#xff1a; 一、核心開發步驟&#xff08;附工具推薦&#xff09; 賬號與定位 ? 注冊類型選擇&#xff1a;個人店&#xff08…