刷題這條路,總是不進則退,每次懈怠後回頭看之前的刷題記錄,總是忘得一乾二淨,希望藉由參賽馬拉松鞭策自己刷題,同時也記錄自己的刷題過程,內容若有誤,再麻煩前輩高手們不吝指教!
You are given an array of non-overlapping intervals intervals where intervals[i...
今天來記錄一下二分法搜尋吧! 雖然這類型相關的題目在還沒正式認識二分法搜尋之前,"盲寫"也解得出來,不過還是做個記錄吧! Binary S...
Given a sorted array of distinct integers and a target value, return the index...
Winter is coming! During the contest, your first job is to design a standard he...
倒數第五天,再堅持一下終點就在不遠處(累...前面學習完Binary Search(二分法搜尋),再來看一下Cyclic Sort(循環排序)吧! 什麼是循環排...
Given an unsorted integer array nums. Return the smallest positive integer that...
Given an integer array nums of length n where all the integers of nums are in t...
在Leetcode的題目中,有些題目會要求你不能使用額外的空間、只能原地反轉linked list,這時就會需要用到 In-place reversal of...
Given the head of a singly linked list, reverse the list, and return the revers...
Given the head of a singly linked list and two integers left and right where le...