原创 [Leetcode] [Database] Employees Earning More Than Their Managers解題筆記

題目如下 The Employee table holds all employees including their managers. Every employee has an Id, and there is also a co

原创 [Leetcode] [Database] Duplicate Emails解題思路

重複郵件 Write a SQL query to find all duplicate emails in a table named Person. Id Email 1 [email protected] 2 [email protected] 3

原创 [Leetcode] [Database] Consecutive Numbers

題目如下: Write a SQL query to find all numbers that appear at least three times consecutively. Id Num 1 1 2 1 3

原创 [Leetcode] [Database] Trips and Users解題思路

用戶旅行的題目如下 The Trips table holds all taxi trips. Each trip has a unique Id, while Client_Id and Driver_Id are both fore

原创 [機器學習] 看了一下KNN的介紹,那麼動手做一個簡單的例子

KNN分類算法 KNN是一種比較容易的分類算法,俗稱K鄰值算法,是一種挺容易理解監督式算法。 KNN是一種基於實例的學習,通過計算新數據與訓練數據特徵值之間的距離進行分類判斷或者回歸。 本人也是新手,對這塊比較感興趣,正在慢慢摸

原创 [Linux] grep命令筆記

grep命令 grep (general regular expression print) grep會對匹配一個或多個正則表達式的文本進行搜索。 grep的格式: grep [option(s)] pattern [file