- Jan 29 Sat 2022 08:32
-
【LeetCode】Trapping Rain Water
- Jan 28 Fri 2022 01:50
-
【LeetCode】筆記-Next Permutation
- Jan 27 Thu 2022 05:11
-
【LeetCode】筆記-Merge k Sorted Lists
解答中的分治法 (Divide-and-conquer algorithm)
class Solution {
public static ListNode mergeKLists(ListNode[] lists){
return partion(lists,0,lists.length-1);
}
class Solution {
public static ListNode mergeKLists(ListNode[] lists){
return partion(lists,0,lists.length-1);
}
- Jan 27 Thu 2022 00:53
-
【LeetCode】筆記-Generate Parentheses
一個"("必定有另一個")" 所以n=1時2*1, n=2時2*2,n=3時2*3, 總結就是2*n個符號
不可能有")"先開始,所以驗證時 "( "balance 只會為正或為 0,<0 直接 return false
不可能有")"先開始,所以驗證時 "( "balance 只會為正或為 0,<0 直接 return false
- Jan 26 Wed 2022 07:56
-
【LeetCode】筆記Valid Parentheses
- Jan 26 Wed 2022 07:11
-
【LeetCode】筆記Letter Combinations of a Phone Number
- Jan 25 Tue 2022 08:08
-
【LeetCode】筆記Regular Expression Matching
- Jan 24 Mon 2022 06:22
-
【LeetCode】筆記-Median of Two Sorted Arrays

朋友很力挺繼續練習程式邏輯,讓我加入讀書會! 看到Google 2020年考古題,網路上很多好人們分享的 https://leetcode.com/list/5sc699lg
決定慢慢來破解它
- Jan 11 Tue 2022 04:12
-
【.NET Core】Logger
- Jan 07 Fri 2022 23:36
-
【資安】JavaScript/ ASP.Net
- Jan 06 Thu 2022 03:51
-
【資安】.NET Core
- Jan 05 Wed 2022 06:25
-
【.NET Core】OAuth權限
