2024 iThome 鐵人賽
Share More Gain More
佛心分享-刷題不只是刷題
選手 27 文章 768
Day 12
2024-09-26
351
0
解題程式碼 Two pointers(此解法更簡單好懂) var findClosestElements = function (arr, k, x) {...
解題程式碼 var canFinish = function (numCourses, prerequisites) { let queue = [];...
Day 13
2024-09-13
349
0
題目 1310. XOR Queries of a Subarray難度: 中等偏易 題意 給定一整數陣列arr;給定一整數陣列的陣列queries,其中que...
Day 19
2024-08-28
349
0
100. Same Tree 题目描述: 給定兩個二元樹的根節點 p 和 q,編寫一個函數來檢查它們是否相同。如果這兩棵樹在結構上完全相同,並且所有對應的節點的...
在演算法的世界裡,解題不僅僅是為了得到結果,更是如何在高效且優雅的方式中解決問題。今天我們要探討的是經典的 Leetcode 題目——三數之和。這道題考驗我們...
Day 19
2024-10-03
348
0
原文題目 Given an array of integers temperatures represents the daily temperatures,...