2024 iThome 鐵人賽
Share More Gain More
佛心分享-刷題不只是刷題
選手 27 文章 768
Day 22
2024-08-22
508
0
EasyRelated Topics: Bit ManipulationLeetCode Source 解題想法 十進位數字轉成二進制 之後將1轉成0 將0...
解題程式碼 var characterReplacement = function(s, k) { let maxLength = 1; let...
112. Path Sum [Easy]### 在二元樹中,判斷是否存在一條從根到葉子的路徑,路徑上節點值的總和等於 targetSum。 class Solu...
Day 27
2024-10-11
506
0
解題程式碼 var isNStraightHand = function (hand, groupSize) { const handMap = new M...
題目 3217. Delete Nodes From Linked List Present in Array難度: 中等 題意 給定一個鏈結串列head與一整...
Day 23
2024-10-07
505
0
原文題目 Given an m x n integer matrix matrix, if an element is 0, set its entire ro...