iT邦幫忙

鐵人檔案

2024 iThome 鐵人賽
回列表
佛心分享-刷題不只是刷題

C++刷題:LeetCode Top 100 Liked 系列

此主題將有三位參賽者共同參與,我們將合力完成三方共 90篇的鐵人文章(Java刷題A/B和C++刷題)。根據LeetCode Top 100 Liked題目集的脈絡,我們將介紹共十四種演算法,並透過Java和C++實作LeetCode上的題目。

鐵人鍊成 | 共 30 篇文章 | 1 人訂閱 訂閱系列文 RSS系列文 團隊鼠家沒有暑假
DAY 11

Day11 Stack 題目2 : 394. Decode String

Problem :Given an encoded string, return its decoded string.The encoding rule is...

2024-09-25 ‧ 由 bangyu1103 分享
DAY 12

Day12 Stack 題目3 : 739. Daily Temperatures

Problem : Given an array of integers temperatures represents the daily temperatu...

2024-09-26 ‧ 由 bangyu1103 分享
DAY 13

Day13演算法介紹 : 回溯法(Backtracking)

回溯法(Backtracking),為經過優化的暴力法,透過制定上下界找到答案,採用試錯的方式將所有可能性列出,只要無法得到有效的結果就不再循著該路徑往下運算,...

2024-09-27 ‧ 由 bangyu1103 分享
DAY 14

Day14 Backtracking 題目1 : 22. Generate Parentheses

Problem : Given n pairs of parentheses, write a function to generate all combina...

2024-09-28 ‧ 由 bangyu1103 分享
DAY 15

Day15 Backtracking 題目2 : 39. Combination Sum

Problem : Given an array of distinct integers candidates and a target integer ta...

2024-09-29 ‧ 由 bangyu1103 分享
DAY 16

Day16 Backtracking 題目3 : 79. Word Search

Problem : Given an m x n grid of characters board and a string word, return true...

2024-09-30 ‧ 由 bangyu1103 分享
DAY 17

Day17 演算法介紹 : 動態規劃(Dynamic programming)

動態規劃(Dynamic programming),將複雜的問題分解成較為簡單的子問題來處理,在處理子問題的過程中可以尋找其中的規律,並將每一次的結果都進行計算...

2024-10-01 ‧ 由 bangyu1103 分享
DAY 18

Day18 Dynamic programming 題目1:70. Climbing Stairs

Problem : You are climbing a staircase. It takes n steps to reach the top. Each...

2024-10-02 ‧ 由 bangyu1103 分享
DAY 19

Day19 Dynamic programming 題目2:64. Minimum Path Sum

Problem : Given a m x n grid filled with non-negative numbers, find a path from...

2024-10-03 ‧ 由 bangyu1103 分享
DAY 20

Day20 Dynamic programming 題目3 : 198. House Robber

Problem : You are a professional robber planning to rob houses along a street. E...

2024-10-04 ‧ 由 bangyu1103 分享