Err500
Leetcode
13
免費公開
房間資訊
Leetcode刷題記錄
全部
全部
全部類型
免費與付費
最新發佈
最新發佈
揚
2024/09/17
【LeetCode】884. Uncommon Words from Two Sentences
◆ 句子(sentence)的定義:小寫字母拼成的單字所組成的字串,每個單字間由單一個空白字元進行分隔。 ◆ uncommon的定義:在單一句子內只出現一次,並且沒有出現在另外一句中。 ◆ 給兩個句子s1跟s2,回傳所有符合uncommon定義的單字,可以為任意順序。
#
Java
#
Leetcode
1
揚
2024/09/17
【LeetCode】884. Uncommon Words from Two Sentences
◆ 句子(sentence)的定義:小寫字母拼成的單字所組成的字串,每個單字間由單一個空白字元進行分隔。 ◆ uncommon的定義:在單一句子內只出現一次,並且沒有出現在另外一句中。 ◆ 給兩個句子s1跟s2,回傳所有符合uncommon定義的單字,可以為任意順序。
#
Java
#
Leetcode
1
揚
2023/04/15
【LeetCode】946. Validate Stack Sequences
題目 Given two integer arrays pushed and popped each with distinct values, return true if this could have been the result of a sequence of push and pop
#
Leetcode
#
Java
#
Golang
3
揚
2023/04/15
【LeetCode】946. Validate Stack Sequences
題目 Given two integer arrays pushed and popped each with distinct values, return true if this could have been the result of a sequence of push and pop
#
Leetcode
#
Java
#
Golang
3
揚
2022/04/22
【LeetCode】896. Monotonic Array || 這一刻,意識到了自己的成長。
題目: 給一個陣列,判斷內容是不是遞增或遞減
#
leetcode
#
演算法
#
重構
1
揚
2022/04/22
【LeetCode】896. Monotonic Array || 這一刻,意識到了自己的成長。
題目: 給一個陣列,判斷內容是不是遞增或遞減
#
leetcode
#
演算法
#
重構
1
揚
2021/10/09
【LeetCode】19.Remove Nth Node From End of List
Input: head = [1,2,3,4,5], n = 2 Output: [1,2,3,5]
#
leetcode
#
演算法
#
資料結構
2
揚
2021/10/09
【LeetCode】19.Remove Nth Node From End of List
Input: head = [1,2,3,4,5], n = 2 Output: [1,2,3,5]
#
leetcode
#
演算法
#
資料結構
2
揚
2021/10/09
【LeetCode】876. Middle of the Linked List
Input: head = [1,2,3,4,5] Output: [3,4,5] 單看列表只是要找中間值,不過給定的資料結構不是陣列,而是鏈結串列。
#
leetcode
#
演算法
#
資料結構
揚
2021/10/09
【LeetCode】876. Middle of the Linked List
Input: head = [1,2,3,4,5] Output: [3,4,5] 單看列表只是要找中間值,不過給定的資料結構不是陣列,而是鏈結串列。
#
leetcode
#
演算法
#
資料結構
揚
2021/10/08
【LeetCode】189. Rotate Array
之前跳過的題目,回來補完成。 Input: nums = [1,2,3,4,5,6,7], k = 3 Output: [5,6,7,1,2,3,4]
#
leetcode
#
演算法
#
程式
2
揚
2021/10/08
【LeetCode】189. Rotate Array
之前跳過的題目,回來補完成。 Input: nums = [1,2,3,4,5,6,7], k = 3 Output: [5,6,7,1,2,3,4]
#
leetcode
#
演算法
#
程式
2
揚
2021/10/08
【LeetCode】557. Reverse Words in a String III
今日題目: 把一行字內每個單字都反轉字元。 Input: s = "Let's take LeetCode contest" Output: "s'teL ekat edoCteeL tsetnoc"
#
leetcode
#
演算法
#
程式
1
揚
2021/10/08
【LeetCode】557. Reverse Words in a String III
今日題目: 把一行字內每個單字都反轉字元。 Input: s = "Let's take LeetCode contest" Output: "s'teL ekat edoCteeL tsetnoc"
#
leetcode
#
演算法
#
程式
1
揚
2021/10/08
【LeetCode】344. Reverse String
今日題目:字串反轉 Input: s = ["h","e","l","l","o"] Output: ["o","l","l","e","h"]
#
leetcode
#
演算法
#
程式
揚
2021/10/08
【LeetCode】344. Reverse String
今日題目:字串反轉 Input: s = ["h","e","l","l","o"] Output: ["o","l","l","e","h"]
#
leetcode
#
演算法
#
程式
揚
2021/10/07
【LeetCode】167. Two Sum II
題目如下: Input: numbers = [2,7,11,15], target = 9 Output: [1,2]
#
leetcode
#
演算法
#
程式
2
揚
2021/10/07
【LeetCode】167. Two Sum II
題目如下: Input: numbers = [2,7,11,15], target = 9 Output: [1,2]
#
leetcode
#
演算法
#
程式
2
揚
2021/10/07
【LeetCode】283. Move Zeroes
題目要求如下: Input: nums = [0,1,0,3,12] Output: [1,3,12,0,0] 把0都搬到後面去,非0的數字移到前面,且不更改原本數字的大小順序。
#
leetcode
#
演算法
#
程式
揚
2021/10/07
【LeetCode】283. Move Zeroes
題目要求如下: Input: nums = [0,1,0,3,12] Output: [1,3,12,0,0] 把0都搬到後面去,非0的數字移到前面,且不更改原本數字的大小順序。
#
leetcode
#
演算法
#
程式
揚
2021/10/06
【LeetCode】977. Squares of a Sorted Array
比今天的題目示例如下: Input: nums = [-4,-1,0,3,10] Output: [0,1,9,16,100] 簡單來說,要的輸出結果是把陣列內每個數字取平方後,對陣列做排序。
#
Leetcode
#
演算法
#
程式
2
揚
2021/10/06
【LeetCode】977. Squares of a Sorted Array
比今天的題目示例如下: Input: nums = [-4,-1,0,3,10] Output: [0,1,9,16,100] 簡單來說,要的輸出結果是把陣列內每個數字取平方後,對陣列做排序。
#
Leetcode
#
演算法
#
程式
2
揚
2021/10/05
【LeetCode】704. Binary Search
Leetcode上正好有14天的讀書計畫,今天三題都是二分搜索,順手三題都寫一寫,想法上很固定。
#
Leetcode
#
程式
#
演算法
3
揚
2021/10/05
【LeetCode】704. Binary Search
Leetcode上正好有14天的讀書計畫,今天三題都是二分搜索,順手三題都寫一寫,想法上很固定。
#
Leetcode
#
程式
#
演算法
3
揚
2021/10/04
【LeetCode】20. Valid Parentheses
前幾天看別人直播刷題,心血來潮打開很久沒動的leetcode試試,挑了一題當初面試沒寫出來的題目。嗯...我那時才剛碰資料結構,知道要用stack寫卻沒實作過任何東西,現在有工作經驗後再來寫,看看會不會有不一樣的想法。
#
程式
#
資料結構
#
Leetcode
3
揚
2021/10/04
【LeetCode】20. Valid Parentheses
前幾天看別人直播刷題,心血來潮打開很久沒動的leetcode試試,挑了一題當初面試沒寫出來的題目。嗯...我那時才剛碰資料結構,知道要用stack寫卻沒實作過任何東西,現在有工作經驗後再來寫,看看會不會有不一樣的想法。
#
程式
#
資料結構
#
Leetcode
3
加入
全部
全部
全部類型
免費與付費
最新發佈
最新發佈
揚
2024/09/17
【LeetCode】884. Uncommon Words from Two Sentences
◆ 句子(sentence)的定義:小寫字母拼成的單字所組成的字串,每個單字間由單一個空白字元進行分隔。 ◆ uncommon的定義:在單一句子內只出現一次,並且沒有出現在另外一句中。 ◆ 給兩個句子s1跟s2,回傳所有符合uncommon定義的單字,可以為任意順序。
#
Java
#
Leetcode
1
揚
2024/09/17
【LeetCode】884. Uncommon Words from Two Sentences
◆ 句子(sentence)的定義:小寫字母拼成的單字所組成的字串,每個單字間由單一個空白字元進行分隔。 ◆ uncommon的定義:在單一句子內只出現一次,並且沒有出現在另外一句中。 ◆ 給兩個句子s1跟s2,回傳所有符合uncommon定義的單字,可以為任意順序。
#
Java
#
Leetcode
1
揚
2023/04/15
【LeetCode】946. Validate Stack Sequences
題目 Given two integer arrays pushed and popped each with distinct values, return true if this could have been the result of a sequence of push and pop
#
Leetcode
#
Java
#
Golang
3
揚
2023/04/15
【LeetCode】946. Validate Stack Sequences
題目 Given two integer arrays pushed and popped each with distinct values, return true if this could have been the result of a sequence of push and pop
#
Leetcode
#
Java
#
Golang
3
揚
2022/04/22
【LeetCode】896. Monotonic Array || 這一刻,意識到了自己的成長。
題目: 給一個陣列,判斷內容是不是遞增或遞減
#
leetcode
#
演算法
#
重構
1
揚
2022/04/22
【LeetCode】896. Monotonic Array || 這一刻,意識到了自己的成長。
題目: 給一個陣列,判斷內容是不是遞增或遞減
#
leetcode
#
演算法
#
重構
1
揚
2021/10/09
【LeetCode】19.Remove Nth Node From End of List
Input: head = [1,2,3,4,5], n = 2 Output: [1,2,3,5]
#
leetcode
#
演算法
#
資料結構
2
揚
2021/10/09
【LeetCode】19.Remove Nth Node From End of List
Input: head = [1,2,3,4,5], n = 2 Output: [1,2,3,5]
#
leetcode
#
演算法
#
資料結構
2
揚
2021/10/09
【LeetCode】876. Middle of the Linked List
Input: head = [1,2,3,4,5] Output: [3,4,5] 單看列表只是要找中間值,不過給定的資料結構不是陣列,而是鏈結串列。
#
leetcode
#
演算法
#
資料結構
揚
2021/10/09
【LeetCode】876. Middle of the Linked List
Input: head = [1,2,3,4,5] Output: [3,4,5] 單看列表只是要找中間值,不過給定的資料結構不是陣列,而是鏈結串列。
#
leetcode
#
演算法
#
資料結構
揚
2021/10/08
【LeetCode】189. Rotate Array
之前跳過的題目,回來補完成。 Input: nums = [1,2,3,4,5,6,7], k = 3 Output: [5,6,7,1,2,3,4]
#
leetcode
#
演算法
#
程式
2
揚
2021/10/08
【LeetCode】189. Rotate Array
之前跳過的題目,回來補完成。 Input: nums = [1,2,3,4,5,6,7], k = 3 Output: [5,6,7,1,2,3,4]
#
leetcode
#
演算法
#
程式
2
揚
2021/10/08
【LeetCode】557. Reverse Words in a String III
今日題目: 把一行字內每個單字都反轉字元。 Input: s = "Let's take LeetCode contest" Output: "s'teL ekat edoCteeL tsetnoc"
#
leetcode
#
演算法
#
程式
1
揚
2021/10/08
【LeetCode】557. Reverse Words in a String III
今日題目: 把一行字內每個單字都反轉字元。 Input: s = "Let's take LeetCode contest" Output: "s'teL ekat edoCteeL tsetnoc"
#
leetcode
#
演算法
#
程式
1
揚
2021/10/08
【LeetCode】344. Reverse String
今日題目:字串反轉 Input: s = ["h","e","l","l","o"] Output: ["o","l","l","e","h"]
#
leetcode
#
演算法
#
程式
揚
2021/10/08
【LeetCode】344. Reverse String
今日題目:字串反轉 Input: s = ["h","e","l","l","o"] Output: ["o","l","l","e","h"]
#
leetcode
#
演算法
#
程式
揚
2021/10/07
【LeetCode】167. Two Sum II
題目如下: Input: numbers = [2,7,11,15], target = 9 Output: [1,2]
#
leetcode
#
演算法
#
程式
2
揚
2021/10/07
【LeetCode】167. Two Sum II
題目如下: Input: numbers = [2,7,11,15], target = 9 Output: [1,2]
#
leetcode
#
演算法
#
程式
2
揚
2021/10/07
【LeetCode】283. Move Zeroes
題目要求如下: Input: nums = [0,1,0,3,12] Output: [1,3,12,0,0] 把0都搬到後面去,非0的數字移到前面,且不更改原本數字的大小順序。
#
leetcode
#
演算法
#
程式
揚
2021/10/07
【LeetCode】283. Move Zeroes
題目要求如下: Input: nums = [0,1,0,3,12] Output: [1,3,12,0,0] 把0都搬到後面去,非0的數字移到前面,且不更改原本數字的大小順序。
#
leetcode
#
演算法
#
程式
揚
2021/10/06
【LeetCode】977. Squares of a Sorted Array
比今天的題目示例如下: Input: nums = [-4,-1,0,3,10] Output: [0,1,9,16,100] 簡單來說,要的輸出結果是把陣列內每個數字取平方後,對陣列做排序。
#
Leetcode
#
演算法
#
程式
2
揚
2021/10/06
【LeetCode】977. Squares of a Sorted Array
比今天的題目示例如下: Input: nums = [-4,-1,0,3,10] Output: [0,1,9,16,100] 簡單來說,要的輸出結果是把陣列內每個數字取平方後,對陣列做排序。
#
Leetcode
#
演算法
#
程式
2
揚
2021/10/05
【LeetCode】704. Binary Search
Leetcode上正好有14天的讀書計畫,今天三題都是二分搜索,順手三題都寫一寫,想法上很固定。
#
Leetcode
#
程式
#
演算法
3
揚
2021/10/05
【LeetCode】704. Binary Search
Leetcode上正好有14天的讀書計畫,今天三題都是二分搜索,順手三題都寫一寫,想法上很固定。
#
Leetcode
#
程式
#
演算法
3
揚
2021/10/04
【LeetCode】20. Valid Parentheses
前幾天看別人直播刷題,心血來潮打開很久沒動的leetcode試試,挑了一題當初面試沒寫出來的題目。嗯...我那時才剛碰資料結構,知道要用stack寫卻沒實作過任何東西,現在有工作經驗後再來寫,看看會不會有不一樣的想法。
#
程式
#
資料結構
#
Leetcode
3
揚
2021/10/04
【LeetCode】20. Valid Parentheses
前幾天看別人直播刷題,心血來潮打開很久沒動的leetcode試試,挑了一題當初面試沒寫出來的題目。嗯...我那時才剛碰資料結構,知道要用stack寫卻沒實作過任何東西,現在有工作經驗後再來寫,看看會不會有不一樣的想法。
#
程式
#
資料結構
#
Leetcode
3