題目: Given an array nums of n integers, return an array of all the unique quadru...
題幹懶人包 基本上跟27題很像,輸入是一個已經排序好的數組,最後輸出非重複數值的數量,然後以下幾點要注意: 只能修改該數組,利用的空間複雜度最多為1(意思就...
題目描述 字串PAYPALISHIRING拿到給定的數字(比如3)並轉換為ZigZag型式後會變成 P A H N A P L S I I G Y...
LeetCode 75 Level 1 - Day 11 Dynamic Programming 746. Min Cost Climbing Stairs...
Hard- 1851. Minimum Interval to Include Each Query 題意:給定一個二維陣列表示區間[left, right]\...
今日題目 題目連結:225. Implement Stack using Queues 題目主題:Stack, Design, Queue 瞭解完Stack跟Q...
今天的題目原出處是 №1029 (https://leetcode.com/problems/two-city-scheduling/),算是較新的題目。簡單來...
前言 前篇文章提到我的背景[Leetcode 前傳] 個人背景、優質資源分享雖然不像很多很完美的大神繳出的漂亮成績單,但是想跟大家分享平凡人也可以努力的人生,若...
觀前提醒: 我預設大家已經先思考並分析過題目,沒啥想法才開始 google 找解題靈感。若無,建議每題先花 1~2 顆番茄鐘的時間來分析題目比較好。可參考番...
原始題目 You are given a large integer represented as an integer array digits, where...
題目: Given two binary strings a and b, return their sum as a binary string. 給定兩...
前言 我想這題是正要開始寫 LeetCode 的人,大部分的人的第一題吧,這題是個基本題算在 easy 的題型,看到題目直接就會想到使用雙迴圈的寫法,不過雙...
原始題目 Evaluate the value of an arithmetic expression in Reverse Polish Notation....
寫在開頭 今天選了141這題,想複習一下linked list的概念 進入正題 第141的題目如下: Given a linked list, determi...
#1 Two Sum 題目難度:Easy :star: 題目敘述: Given an array of integers, return indices of...
題目: You are given an array prices where prices[i] is the price of a given stock...
#179 Largest Number 同步發佈於 Github repo 題目難度:Medium 題目敘述: Given a list of non ne...
題目描述 給定一個string,請輸出最長的回文子字串。舉例s="abbac"ans="abba" 思路 回文分奇偶...
LeetCode 75 Level 1 - Day 13 Hashmap 1. Two Sum 題目連結 難易度:Easy 題目敘述 Given an...
今日題目 題目:414. Third Maximum Numbe題目主題:Array, Sorting 我會從最基本的排序開始,本題先不講任何演算法或資料結構。...
寫在開頭 這題選的是#Easy #Array,看到名字感覺很熟悉,決定今天挑這題來試試! 進入正題 The Fibonacci numbers, common...
題目: Given an integer array nums and an integer k, return true if there are two...
題目: https://leetcode.com/problems/linked-list-cycle/給一個連結串列,判斷是否為循環的連結串列。 解題思路:...
今天的題目是本來的 No.237 (https://leetcode.com/problems/delete-node-in-a-linked-list/),把...
寫在開頭 今天選的這題是#Easy,要算日期對應的是星期幾 進入正題 題目如下: Given a date, return the corresponding...
先簡單回顧一下,今天預計分析的題目: 如何利用兩個 stack 完成 Queue 的概念? 邏輯很簡單,如下: 先準備兩個 stack 的盒子 (...
題目: You are given a sorted unique integer array nums. A range [a,b] is the se...
前言 昨天將另外一邊鐵人賽的文案和實例寫完了,所以今天開始必須處理這邊了。前面的我會補上解說,然後今天開始....念英文加刷題XD然後因為要念英文不敢一天刷太多...
先簡單回顧一下,今天預計分析的題目: 112. Path Sum 題目連結:https://leetcode.com/problems/path-sum...
146. LRU Cache Question Design a data structure that follows the constraints of...