iT邦幫忙

鐵人檔案

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

刷題筆記 系列

刷題這條路,總是不進則退,每次懈怠後回頭看之前的刷題記錄,總是忘得一乾二淨,希望藉由參賽馬拉松鞭策自己刷題,同時也記錄自己的刷題過程,內容若有誤,再麻煩前輩高手們不吝指教!

鐵人鍊成 | 共 30 篇文章 | 3 人訂閱 訂閱系列文 RSS系列文
DAY 21

[Day21] Insert Interval

You are given an array of non-overlapping intervals intervals where intervals[i...

DAY 22

[Day22] Patterns: Binary Search(二分法搜尋)

今天來記錄一下二分法搜尋吧! 雖然這類型相關的題目在還沒正式認識二分法搜尋之前,"盲寫"也解得出來,不過還是做個記錄吧! Binary S...

DAY 23

[Day23] Search Insert Position

Given a sorted array of distinct integers and a target value, return the index...

DAY 24

[Day24] Heaters

Winter is coming! During the contest, your first job is to design a standard he...

DAY 25

[Day25] Patterns: Cyclic Sort(循環排序)

倒數第五天,再堅持一下終點就在不遠處(累...前面學習完Binary Search(二分法搜尋),再來看一下Cyclic Sort(循環排序)吧! 什麼是循環排...

DAY 26

[Day26] 41. First Missing Positive

Given an unsorted integer array nums. Return the smallest positive integer that...

DAY 27

[Day27] Find All Duplicates in an Array

Given an integer array nums of length n where all the integers of nums are in t...

DAY 28

[Day28] Patterns: In-place reversal of linked list(原地反轉列表)

在Leetcode的題目中,有些題目會要求你不能使用額外的空間、只能原地反轉linked list,這時就會需要用到 In-place reversal of...

DAY 29

[Day29] Reverse Linked List

Given the head of a singly linked list, reverse the list, and return the revers...

DAY 30

[Day30] Reverse Linked List II

Given the head of a singly linked list and two integers left and right where le...