MediumRelated Topics: Math / Dynamic ProgrammingLeetCode Source
解題想法
題目要求我們找到最...
EasyRelated Topics: Bit ManipulationLeetCode Source
解題想法
十進位數字轉成二進制
之後將1轉成0
將0...
MediumRelated Topics: Array / Two Pointers / Binary Search / SortingLeetCode So...
21. Merge Two Sorted Lists
題目描述:
給定兩個升序Linked List l1 和 l2,將它們合併為一個升序Linked Lis...
EasyRelated Topics: Array / GreedyLeetCode Source
解題想法
題目主要是希望透過 5 10 20 來交易價值...
28. Find the Index of the First Occurrence in a String
題目描述:
給定兩個字符串 haystack 和...