2024 iThome 鐵人賽
Share More Gain More
佛心分享-刷題不只是刷題
選手 27 文章 768
今天就按照順序講我們的下一題(第五題) 題目 題目翻譯 給予一字串 s, 回傳在 s中可找到最長的回文子字串 解題步驟 以下是具體的解題步驟,使用 Markd...
Day 28
2024-10-12
401
0
A swap is defined as taking two distinct positions in an array and swapping the...
就地旋轉,玩轉 2D 矩陣魔法 當你面對一個看似簡單的問題時,有沒有感覺到腦袋瞬間卡住?不急,今天我們來挑戰一道有趣的小題目,讓你的腦袋轉個彎!(說的就是題...
題目要求:這題目要找到將字串 word1 轉換成 word2 所需的最少編輯次數操作有三種:插入一個字元。刪除一個字元。替換一個字元。思路:這題的重點是 動態規...
原文題目Given an array of distinct integers candidates and a target integer target,...
Day 29
2024-10-13
398
0
題目:你是小偷,計劃偷一排房子。每個房子裡都有一定數量的現金,然而,你不能連續偷兩間相鄰的房子,否則會被發現。你的目標是偷取最多的現金,該如何決策呢? 解題思路...