2024 iThome 鐵人賽
Share More Gain More
佛心分享-刷題不只是刷題
選手 27 文章 768
Day 11
2024-09-25
486
0
You are given a 0-indexed 2D array grid of size 2 x n, where grid[r][c] represen...
Day 10
2024-09-24
485
0
前言 嘿嘿~剛好今天下雨,想不想知道大雨過後水都積在哪裡呢?這次我們要來解一道超經典的題目——Trapping Rain Water(接雨水問題)! 這題可...
Day 21
2024-10-05
484
0
今天來解YKL23(UVA10062):Tell me the frequencies! Tell me the frequencies 這題就是比字串中每個...
Day 13
2024-09-27
484
0
解題程式碼 var WordDictionary = function () { this.root = {}; }; /** * @param {st...
回溯法(Backtracking)是一種暴力搜尋法,主要通過逐一嘗試所有可能的解來解決問題,並增加中止條件判斷來提前排除不可行的解,也可說是一種優化版的枚舉法。...
Day 27
2024-10-11
480
0
原文題目 Given an array nums of size n, return the majority element. The majority el...