iT邦幫忙

leetcode相關文章
共有 1110 則文章

技術 Day03-LeetCode-SQL啟航~

1667. Fix Names in a Table +----------------+---------+ | Column Name | Type...

LeetCode Top 100 Liked 系列 第 74 篇

技術 [Day 69] Reverse Linked List II (Medium)

92. Reverse Linked List II Solution 1: Recursive Swap NodeValue class Solution:...

技術 leetcode 365天 #Day118

繼續努力開寫!有時候一些題目寫不出來,不是自己沒學過該知識,而是思路整個是錯的。這種狀況下更要好好檢討自己,避免下次又走錯路。 Perform String...

技術 Day02-LeetCode-SQL啟航~

我的SQL學習資源為https://www.w3schools.com/sql新手卡關基本都會找到說明的好去處,建議快速閱覽一次再刷題才會有一些查詢方向。 1...

LeetCode Top 100 Liked 系列 第 73 篇

技術 [Day 68 - 2] Find the Index of the First Occurrence in a String (Medium)

28. Find the Index of the First Occurrence in a String Solution 1: Brute-Force c...

技術 leetcode 365天 #Day117

努力踏出程式舒適圈的我之前在coding的時候一直沒有遇到需要使用dp的場合真是應該反思,到底是我菜到別人不敢要我寫需要dp的東西,還真的是用不到呢? Ju...

技術 leetcode 365天 #Day116

身體不太舒服的日子然後又開啟一個自己比較爛區域的study plan寫起來真是痛苦QQ後來就挑些比較簡單的寫了~當作偷懶XD Minimum Distanc...

技術 leetcode 365天 #Day115

中間發呆了一下的日子未來應該會把我所寫過的題目正式錄個過程以及解釋,然後加入到播放清單中,要不然沒有紀錄。有興趣的以後可以期待一下(? Strictly P...

技術 leetcode 365天 #Day114

練習寫過題目的一天~就算是寫過的題目,過了一陣子還是會有不同的寫法,甚至有些根本忘了怎麼寫為了不重複貼文,這邊只寫新寫的題目 N-th Tribonacci...

技術 leetcode 365天 #Day113

又是思考很久的一天DP果然是我的弱項若想跟我一起做題目的話,我都會定時開直播唷(不過都在半夜就是了XD) Number of 1 Bits (easy)ht...

LeetCode Top 100 Liked 系列 第 72 篇

技術 [Day 68 - 1] Maximal Rectangle (Hard)

85. Maximal Rectangle Solution 1: Brute-Force # Convert to a "largest recta...

技術 LeetCode 20221207 #2 (20. Valid Parentheses; Easy)

題目連結: 20. Valid Parentheses; Easy 題目說明: Given a string s containing just the cha...

技術 leetcode 365天 #Day112

由於買了新遊戲所以昨天沒更新的我 Diet Plan Performance (easy)https://leetcode.com/problems/die...

技術 leetcode 365天 #Day111

耶黑~快速寫完的夜晚 Check Distances Between Same Letters (easy)https://leetcode.com/pro...

技術 [Leetcode Week1]Blind1~17、Weekly Contest 322

前言 前篇文章提到我的背景[Leetcode 前傳] 個人背景、優質資源分享雖然不像很多很完美的大神繳出的漂亮成績單,但是想跟大家分享平凡人也可以努力的人生,若...

LeetCode Top 100 Liked 系列 第 70 篇

技術 [Day 67 - 1] Search Insert Position (Easy)

35. Search Insert Position Solution 1: Binary Search class Solution: def sea...

技術 leetcode 365天 #Day110

邊聽館長罵人編寫code的直播(不過因為版權所以沒聲音XD) Check If a Number Is Majority Element in a Sort...

LeetCode Top 100 Liked 系列 第 69 篇

技術 [Day 66] Perfect Squares (Medium)

279. Perfect Squares Solution 1: DP (Bottom-up) class Solution: def numSquar...

技術 leetcode 365天 #Day109

本人快速地發呆的過程~ Determine if String Halves Are Alike (easy)https://leetcode.com/pr...

LeetCode Top 100 Liked 系列 第 68 篇

技術 [Day 65 - 2] Subarray Sum Equals K (Medium)

560. Subarray Sum Equals K Solution 1: Brute-Force (TLE) class Solution: def...

技術 [Leetcode 前傳] 個人背景、優質資源分享

前言 比起很多很厲害的人,我可能連普通的水準都不到,但受到「Show your work」這本書的啟發,還是決定鼓起勇氣寫出人生第一篇線上文章!然而,最最最主要...

LeetCode Top 100 Liked 系列 第 67 篇

技術 [Day 65 - 1] Merge Sorted Array (Easy)

88. Merge Sorted Array Solution 1: Two Pointers class Solution: def merge(se...

技術 leetcode 365天 #Day108

思考與發呆的過程 Max Area of Island (medium)https://leetcode.com/problems/max-area-of-...

技術 leetcode 365天 #Day107

本人發呆寫程式的過程順便知道一件事情,聽音樂時還是不要開聲音,版權炮會讓影片消失很久XD喔對了附上確實有百天練習的圖。 Insert Delete GetR...

LeetCode Top 100 Liked 系列 第 66 篇

技術 [Day 64 ] Merge Intervals (Medium)

56. Merge Intervals Solution 1: Sort class Solution: def merge(self, interva...

LeetCode Top 100 Liked 系列 第 65 篇

技術 [Day 63 ] Binary Tree Inorder Traversal (Easy)

94. Binary Tree Inorder Traversal Solution 1: Recursive class Solution: def...

LeetCode Top 100 Liked 系列 第 64 篇

技術 [Day 62 ] Rotate Array (Medium)

189. Rotate Array Solution 1: Insert operation of the array (TLE) class Solution...

LeetCode Top 100 Liked 系列 第 62 篇

技術 [Day 61 - 1] Palindrome Linked List (Easy)

234. Palindrome Linked List Solution 1: Auxiliary array & reversed class Sol...

LeetCode Top 100 Liked 系列 第 61 篇

技術 [Day 60 ] Majority Element (Easy)

169. Majority Element Solution 1: Counter from collections import Counter class...

LeetCode Top 100 Liked 系列 第 60 篇

技術 [Day 59] Jump Game II (Medium)

45. Jump Game II Solution 0: Brute-Force + DP (看完題目第一個想法) class Solution: de...