iT邦幫忙

鐵人檔案

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

Java刷題A:Leetcode Top 100 Liked 系列

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

參賽天數 26 天 | 共 26 篇文章 | 1 人訂閱 訂閱系列文 RSS系列文 團隊鼠家沒有暑假
DAY 11

Day11 Graph圖形 - 題目1:200. Number of Islands

原文題目Given an m x n 2D binary grid grid which represents a map of '1's (land) and...

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

Day12 Graph圖形 - 題目2:207. Course Schedule

原文題目There are a total of numCourses courses you have to take, labeled from 0 to ...

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

Day13 Graph圖形 - 題目3:994. Rotting Oranges

原文題目You are given an m x n grid where each cell can have one of three values:...

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

Day14 Hashing雜湊法 - 概念介紹

雜湊法(Hahing)是一種資料存取技術,通過將資料映射到一個特定的地址,實現快速的查找、插入和刪除操作。其核心原理是使用一個雜湊函數(Hash Functio...

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

Day15 Hashing雜湊法 - 題目1:49. Group Anagrams

原文題目 Given an array of strings strs, group the anagrams together. You can return...

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

Day16 Hashing雜湊法 - 題目2:128. Longest Consecutive Sequence

原文題目Given an unsorted array of integers nums, return the length of the longest c...

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

Day17 Hashing雜湊法 - 題目3:560. Subarray Sum Equals K

原文題目Given an array of integers nums and an integer k, return the total number of...

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

Day18 Linked Lists鏈結串列 - 概念介紹(上)

鏈結串列(Linked Lists)是一種常見的資料結構,用來動態儲存元素。鏈結串列的元素是以節點的形式彼此連結,每個節點包含資料與指向下一個節點的指標。根據節...

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

Day19 Linked Lists鏈結串列 - 概念介紹(下)

環狀鏈結串列環狀鏈結串列和單向鏈結串列不同在於它最後一個節點會指向鏈結串列的第一個節點,形成一個環狀結構。這使得從任一節點都可以循環遍歷整個串列,並不存在指向...

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

Day20 Linked Lists鏈結串列-題目1:19. Remove Nth Node From End of List

原文題目Given the head of a linked list, remove the nth node from the end of the lis...

2024-10-04 ‧ 由 mumu1201 分享