iT邦幫忙

leetcode相關文章
共有 941 則文章
鐵人賽 自我挑戰組 DAY 30

技術 Day 30 - Array and String - Conslusion

Array and String 最後總結了五點有關陣列的技術知識。 陣列是最常使用的資料結構之一,其衍伸的資料結構除了String 和Linked List...

鐵人賽 Software Development DAY 29
Leetcode 習慣養成之路 系列 第 29

技術 Day 29 - 1472. Design Browser History

題目說明 設計一個瀏覽器歷史紀錄器,包含 access 到某個網頁並且可以找到上一頁 下一頁的功能 思路解析 這題用比較好理解的方式解的話,double lin...

鐵人賽 自我挑戰組 DAY 29
Leetcode 各主題解題攻略 系列 第 29

技術 Design 攻略 part1

大家好,在leetcode的問題中有一個主題被稱為Design。這類型的問題比較像是要模擬實作出某些系統中的核心功能。今天要來分享和上一個主題Trie有關的De...

鐵人賽 自我挑戰組 DAY 29

技術 Day29-[Grind 169 questions[Binary Tree] LeeCode 100、103、437

100. Same Tree 解題程式碼 var isSameTree = function (p, q) { if (p === null &&a...

鐵人賽 自我挑戰組 DAY 29

技術 Day 29 - Array and String - Conslusion Problem

189. Rotate Array 題目 Given an integer array nums, rotate the array to the right...

鐵人賽 自我挑戰組 DAY 29
30天leetcode學習旅程 系列 第 29

技術 項次 29 - 2-Dimension DP

題目:62. Unique Paths 連結:https://leetcode.com/problems/unique-paths/description/...

鐵人賽 自我挑戰組 DAY 28

技術 Day 28 - Array and String - Two Pointer Problem

344. Reverse String 題目 Write a function that reverses a string. The input string...

鐵人賽 自我挑戰組 DAY 28
Leetcode 各主題解題攻略 系列 第 28

技術 Trie 攻略 part2

大家好,今天要來分享Trie的進階題。 Leetcode 212. Word Search II 題目敘述:有一個m x n的二維陣列,裡面存放了字元,另外又...

鐵人賽 Software Development DAY 28
Leetcode 習慣養成之路 系列 第 28

技術 Day 28 - 20. Valid Parentheses

題目說明 給定一個字符串,包含大中小括號,其中 思路說明 這題可以用 stack 處理 設定好 左右括號對應的 map 遍歷整個字符串 遇到左括號時,放到...

鐵人賽 自我挑戰組 DAY 28
30天leetcode學習旅程 系列 第 28

技術 項次 28 - 1-Dimension DP

題目:198. House Robber 連結:https://leetcode.com/problems/house-robber/description/...

鐵人賽 自我挑戰組 DAY 28

技術 Day28-[Grind 169 questions[Binary Tree] LeeCode 105、113、662

105. Construct Binary Tree from Preorder and Inorder Traversal 解題程式碼 var buildTr...

技術 Leetcode 理解題目意思與專有名詞-Leetcode 解題心得

Leetcode 理解題目意思與專有名詞-Leetcode 解題心得 Version: 2023101201作者: Billour Ou 歐育溙 這是我最近進行...

鐵人賽 自我挑戰組 DAY 27

技術 Day 27 - Array and String - Two Pointer Technique

雖然在Linked List Explore Card 中也有提及雙指針演算法,當時是直接講了快慢指針算法,我們為了要判斷鏈結陣列中是否有環狀結構,使用的兩個指...

鐵人賽 Software Development DAY 27
Leetcode 習慣養成之路 系列 第 27

技術 Day 27 - 150. Evaluate Reverse Polish Notation

題目說明 給定一個由 Reverse Polish notation 組成的字符串,回傳其計算結果 解題思路 這體可以使用 stack 來解,當遇到數字時,將數...

鐵人賽 自我挑戰組 DAY 27

技術 Day27-[Grind 169 questions[Binary Tree] LeeCode 543、199、104

543. Diameter of Binary Tree 解題程式碼 var diameterOfBinaryTree = function(root) {...

鐵人賽 Mobile Development DAY 27

技術 Day 27: 導讀 LeetCode 演算法 - 動態規劃 Dynamic Programming (Swift)

終於來到最後一篇介紹 LeetCode 演算法的導讀文了,先聲明其實還有一些主題沒有介紹,在安排三十天挑戰計畫裡面,因為整個主題不是全部 LeetCode,是環...

鐵人賽 自我挑戰組 DAY 26
Leetcode 各主題解題攻略 系列 第 26

技術 Binary Search 的應用 part3

Hi 大家好,今天要來分享binary search的進階題~ 153. Find Minimum in Rotated Sorted Array 題目敘述:...

鐵人賽 Software Development DAY 26
Leetcode 習慣養成之路 系列 第 26

技術 Day 26 - 155. Min Stack

題目說明 實作資料結構 min stack,包含底下幾種操作 function push: 與 一般的 stack 相同 pop: 與 一般的 stack 相...

鐵人賽 自我挑戰組 DAY 26

技術 Day 26 - Array and String - String Problem

67. Add Binary 題目 Given two binary strings a and b, return their sum as a binary...

鐵人賽 自我挑戰組 DAY 25
Leetcode 各主題解題攻略 系列 第 25

技術 Binary Search 的應用 part2

Hi 大家好,昨天將binary search的題目分成三個類型: 應用在array上,但是對於要回傳的index有不一樣的條件 應用在不同的資料結構上,例如...

鐵人賽 Software Development DAY 25
Leetcode 習慣養成之路 系列 第 25

技術 Day 25 - 232. Implement Queue using Stacks

題目說明 用兩個 stack 實作 queue 解題思路 stack1: 當要 push 的時候都從這裡放入 stack2: 當要 pop 的時候就從這裡拿...

鐵人賽 自我挑戰組 DAY 25

技術 Day 25 - Array and String - 2D Array Problem

498. Diagonal Traverse 題目 Given an m x n matrix mat, return an array of all the...

鐵人賽 自我挑戰組 DAY 24

技術 Day 24 - Array and String - Array Problem

724. Find Pivot Index 題目 Given an array of integers nums, calculate the pivot in...

技術 [LeetCode 筆記] 560. Subarray Sum Equals K

前言   這題學習目標是 Prefix Sums 前綴和的概念, Prefix Sums 通常用於需要頻繁查詢陣列中某一區間的元素和的情況,這裡目標是找到一個陣...

鐵人賽 Software Development DAY 24
Leetcode 習慣養成之路 系列 第 24

技術 Day 24 - 227. Basic Calculator II

題目說明 這題也是計算機的題目,跟前一題的差別在於,這次的式子有包含加減乘除,但是沒有括號所以相對於第 224 題,這是比較簡單一些的題目(因此只有 Mediu...

鐵人賽 自我挑戰組 DAY 24

技術 Day24-[Grind 169 questions][Binary] LeeCode 190、13、528

190. Reverse Bits 解題程式碼 var reverseBits = function (n) { let result = 0; for...

鐵人賽 自我挑戰組 DAY 24
30天leetcode學習旅程 系列 第 24

技術 項次 24 - Matrix DFS

題目:200. Number of Islands 連結:https://leetcode.com/problems/number-of-islands/des...

鐵人賽 Mobile Development DAY 24

技術 Day 24: 導讀 LeetCode 演算法 - Graph 的 DFS 與 BFS (Swift)

今天這個主題簡直是豁出去了!就是要來深入理解 LeetCode Graph 題,Graph 算是比較困難的主題,它的中文叫做「圖」,在 LeetCode 上去挖...

鐵人賽 自我挑戰組 DAY 23

技術 Day23 - Array and String Introduction

前面花了很多篇幅介紹陣列和鏈結陣列,第三個Explore Card 還是跟陣列有關,將會介紹陣列(Array)、動態陣列(Dynamic Array)、多維陣列...