解題程式碼
Two pointers(此解法更簡單好懂)
var findClosestElements = function (arr, k, x) {...
這題要找到單向鏈結串列中的循環節點,如果沒循環就回傳 null,這類型問題需要了解兩點:判斷有沒有循環、找到循環的起點。分析:鏈結串列的問題通常用快慢指針法解決...
Problem :
Given an m x n integer matrix matrix, if an element is 0, set its enti...
原文題目
Given an integer array nums and an integer k, return the kth largest elemen...
上課紀錄
Lab - dig-blind
他只會回傳 success 和 fail,先試試看 '; grep -q "NCKUCTF{d19_&quo...
🟨編輯距離
本題取自 Leetcode 72. Edit Distance
題目
Given two strings word1 and word2, retu...