iT邦幫忙

鐵人檔案

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

Java刷題A:Leetcode Top 100 Liked 系列

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

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

Day21 Linked Lists鏈結串列-題目2:24. Swap Nodes in Pairs

原文題目Given a linked list, swap every two adjacent nodes and return its head. You...

2024-10-05 ‧ 由 mumu1201 分享
DAY 22

Day22 Linked Lists鏈結串列-題目3:141. Linked List Cycle

原文題目Given head, the head of a linked list, determine if the linked list has a cy...

2024-10-06 ‧ 由 mumu1201 分享
DAY 23

Day23 Sliding Window滑動視窗法 - 概念介紹

滑動視窗法(Sliding Window)是一種常用於處理子數列或子字串問題的技巧,主要用於解決連續數據結構的問題。其核心思想是使用一個固定或可變長度的視窗,不...

2024-10-07 ‧ 由 mumu1201 分享
DAY 24

Day24:Sliding Window滑動視窗-題目:3. Longest Substring Without Repeating Characters

原文題目Given a string s, find the length of the longest substring without repeating...

2024-10-08 ‧ 由 mumu1201 分享
DAY 25

Day25 Sliding Window滑動視窗 - 題目2:438. Find All Anagrams in a String

原文題目Given two strings s and p, return an array of all the start indices of p's a...

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

Day26 Two Pointers雙指標 - 概念介紹

雙重指標(Two Pointer)是一種高效的算法技巧,常用於解決涉及數組或鏈表的問題。其使用兩個指標遍歷數據結構,指標可以是固定或可變的,根據問題的不同而變化...

2024-10-10 ‧ 由 mumu1201 分享