iT邦幫忙

leetcode相關文章
共有 1101 則文章

技術 LeetCode 304. Range Sum Query 2D - Immutable

筆記:【演算法新手村】[初階]筆記05 - 前綴和(二維) 題目翻譯 給定一個二維矩陣 matrix,請處理多個以下類型的查詢:計算由左上角 (row1, c...

技術 LeetCode 303. Range Sum Query - Immutable

筆記:【演算法新手村】[初階]筆記04 - 前綴和(一維) 題目翻譯 給定一個整數陣列 nums,請處理多個以下類型的查詢:計算 nums 在索引 left...

技術 LeetCode 162. Find Peak Element

筆記: 【演算法新手村】[初階]筆記03 - 二分練習題 題目翻譯 所謂的峰值元素(Peak Element),是指一個其值嚴格大於左右鄰居的元素。給定一個下...

技術 LeetCode 69. Sqrt(x)

筆記: 【演算法新手村】[初階]筆記03 - 二分練習題 題目翻譯(by Gemini) 給定一個非負整數 x,回傳 x 的算術平方根,並無條件捨去至最接近的...

技術 LeetCode 35. Search Insert Position

筆記: 【演算法新手村】[初階]筆記02 - 初識二分之常見問題 題目翻譯(by Gemini) 給定一個已排序且元素皆不重複的整數陣列,以及一個目標值(ta...

技術 Leetcode 大神資源總整理與 VS Code 刷題IDE環境配置

前言 無論是為了面試、考研,還是單純想精進寫 code 的邏輯,LeetCode 幾乎是避不開的一道坎。尤其對於沒有聽過Leetcode或是無從下手的人,更會對...

技術 leetcode 1523. Count Odd Numbers in an Interval Range

帳號終於找回 1523. Count Odd Numbers in an Interval Range qustion link [!note]EasyMat...

鐵人賽 自我挑戰組 DAY 2
深入淺出 Grind 75 系列 第 4

技術 383. Ransom Note

題目敘述 題目敘述到我們有兩個字串 ransomNote 和 magazine 假設 ransomNote 可以透過 magazine 則回傳 True 否...

鐵人賽 自我挑戰組 DAY 2
深入淺出 Grind 75 系列 第 3

技術 133. Clone Graph

題目敘述 我們必須透過已知的一個 graph 來建立一個一模一樣的 graph 但我們所回傳的 graph 不能是原本的 graph 解題思路 當遇到尋...

鐵人賽 自我挑戰組 DAY 2
深入淺出 Grind 75 系列 第 2

技術 3. Longest Substring Without Repeating Characters

題目敘述 給定一個字串 s,請找出其中不包含重複字元的最長子字串的長度。 解題思路 這題的標籤包含: Hash Table String Slidin...

鐵人賽 自我挑戰組 DAY 1
深入淺出 Grind 75 系列 第 1

技術 1. Two Sum

題目敘述 給定一個整數陣列 nums 和一個整數 target,請找出陣列中兩個數字的索引值,使得這兩個數字加總起來剛好等於 target。 每筆測資保證...

鐵人賽 Software Development DAY 11

技術 Day 11 — BFS 入門(最短路徑、迷宮遍歷)

一、學習目標 了解 BFS(Breadth-First Search) 在無權圖求最短邊數路徑的原理與不變量。 熟悉四種常見套路:網格 BFS、一般圖 BFS...

技術 【LeetCode with C: A Series of Problem-Solving Techniques】-- Edit Distance

Description Edit Distance Given two strings word1 and word2, return the minimu...

技術 【LeetCode with C: A Series of Problem-Solving Techniques】-- House Robber

Descriptoin House Robber You are a professional robber planning to rob houses...

技術 【LeetCode with C: A Series of Problem-Solving Techniques】-- Climbing Stairs

Description Climbing Stairs You are climbing a staircase. It takes n steps to...

技術 【LeetCode with C: A Series of Problem-Solving Techniques】-- Binary Search

Description 704. Binary Search Easy Topics Companies Given an array of integers...

技術 【LeetCode with C: A Series of Problem-Solving Techniques】-- Sort Colors

Description Sort Colors Given an array nums with n objects colored red, white,...

技術 【LeetCode with C: A Series of Problem-Solving Techniques】-- Merge Sorted Array

Description Merge Sorted Array You are given two integer arrays nums1 and nums...

技術 【LeetCode with C: A Series of Problem-Solving Techniques】-- Pacific Atlantic Water Flow

Description Pacific Atlantic Water Flow There is an m x n rectangular island t...

技術 【LeetCode with C: A Series of Problem-Solving Techniques】-- Word Ladder

Description Word Ladder A transformation sequence from word beginWord to word...

技術 【LeetCode with C: A Series of Problem-Solving Techniques】-- Course Schedule

Description Course Schedule There are a total of numCourses courses you have t...

技術 【LeetCode with C: A Series of Problem-Solving Techniques】-- Number of Islands

Description Number of Islands Given an m x n 2D binary grid grid which represe...

技術 【LeetCode with C: A Series of Problem-Solving Techniques】-- Clone Graph

Description Clone Graph Given a reference of a node in a connected undirected...

技術 【LeetCode with C: A Series of Problem-Solving Techniques】-- Symmetric Tree

Description Symmetric Tree Given the root of a binary tree, check whether it i...

技術 【LeetCode with C: A Series of Problem-Solving Techniques】-- Same Tree

Description Same Tree Given the roots of two binary trees p and q, write a fun...

技術 【LeetCode with C: A Series of Problem-Solving Techniques】-- Validate Binary Search Tree

Description Validate Binary Search Tree Given the root of a binary tree, deter...

技術 【LeetCode with C: A Series of Problem-Solving Techniques】-- Maximum Depth of Binary Tree

Description Maximum Depth of Binary Tree Given the root of a binary tree, retu...