今天是紀錄LeetCode解題的第四十二天是一題困難題 第四十二題題目: 給定n個非負整數表示高程圖,其中每個長條圖的寬度為1,計算下雨後該高程圖可以容納多少水...
今天是紀錄LeetCode解題的第四十一天是一題困難題 第四十一題題目:Given an unsorted integer array nums. Return...
今天是紀錄LeetCode解題的第四十天 第四十題題目:Given a collection of candidate numbers (candidates)...
今天是紀錄LeetCode解題的第三十九天 第三十九題題目:Given an array of distinct integers candidates and...
今天是紀錄LeetCode解題的第三十八天 第三十八題題目:The count-and-say sequence is a sequence of digit...
今天是紀錄LeetCode解題的第三十七天是一題困難題 第三十七題題目:Write a program to solve a Sudoku puzzle by...
今天是紀錄LeetCode解題的第三十六天 第三十六題題目:Determine if a 9 x 9 Sudoku board is valid. Only t...
今天是紀錄LeetCode解題的第三十五天 第三十五題題目:Given a sorted array of distinct integers and a ta...
今天是紀錄LeetCode解題的第三十四天 第三十四題題目:Given an array of integers nums sorted in non-decr...
今天是紀錄LeetCode解題的第三十三天 第三十三題題目:There is an integer array nums sorted in ascending...
今天是紀錄LeetCode解題的第三十二天是一題困難題 第三十二題題目:Given a string containing just the character...
今天是紀錄LeetCode解題的第三十一天 第三十一題題目:A permutation of an array of integers is an arrang...
今天是紀錄LeetCode解題的第三十天 成功堅持一個月了!剛好今天也是困難題 第三十題題目:You are given a string s and an a...
今天是紀錄LeetCode解題的第二十九天 第二十九題題目:Given two integers dividend and divisor, divide tw...
今天是紀錄LeetCode解題的第二十八天 第二十八題題目:Given two strings needle and haystack, return the...
今天是紀錄LeetCode解題的第二十七天 第二十七題題目:Given an integer array nums and an integer val, re...
今天是紀錄LeetCode解題的第二十六天 第二十六題題目:Given an integer array nums sorted in non-decreasi...
今天是紀錄LeetCode解題的第二十五天是一題困難題 第二十五題題目:Given the head of a linked list, reverse the...
今天是紀錄LeetCode解題的第二十四天 第二十四題題目:Given a linked list, swap every two adjacent nodes...
今天是紀錄LeetCode解題的第二十三天又來看一題困難題 第二十三題題目:You are given an array of k linked-lists l...
今天是紀錄LeetCode解題的第二十二天 第二十二題題目:Given n pairs of parentheses, write a function to...
今天是紀錄LeetCode解題的第二十一天 第二十一題題目: 給定兩個已排序的鏈結串列list1和list2,合併兩個鏈結串列 解題思路 建立dummy節點當作...
今天是紀錄LeetCode解題的第二十天 第二十題題目:Given a string s containing just the characters ' (...
今天是紀錄LeetCode解題的第十九天 第十九題題目: 給定一個鏈結串列head,從鏈結串列末尾刪除Nth節點,並返回head 解題思路 想刪掉「倒數第 N...
今天是紀錄LeetCode解題的第十八天 第十八題題目:Given an array nums of n integers, return an array o...
今天是紀錄LeetCode解題的第十七天 第十七題題目:Given a string containing digits from 2-9 inclusive,...
今天是紀錄LeetCode解題的第十六天 第十六題題目:Given an integer array nums of length n and an integ...
今天是紀錄LeetCode解題的第十五天 第十五題題目:Given an integer array nums, return all the triplets...
今天是紀錄LeetCode解題的第十四天 第十四題題目:Write a function to find the longest common prefix s...
今天是紀錄LeetCode解題的第十三天 第十三題題目:Given a roman numeral, convert it to an integer.For...