My cool site
文章 標籤 分類
My cool site
Cancel
文章標籤分類

LeetCode 763. Partition Labels 解題紀錄

Elvire published on 2022-03-21 included in leetcode
將字串 s 分段,同一字母只能在一段中出現。Partition the string into as many parts as possible so that each letter appears in at most one part.
Read More
 hash table, two pointers, string, greedy, easy, c++

LeetCode 1356. Sort Integers by The Number of 1 Bits 解題紀錄

Elvire published on 2022-03-07 included in leetcode
依照 1 bits 出現的次數排序。
Read More
 array, bit manipulation, sorting, counting, easy, c++

LeetCode 141. Linked List Cycle 解題紀錄

Elvire published on 2022-02-28 included in leetcode
檢查這個 linked list 是否內含迴圈。Given head, the head of a linked list, determine if the linked list has a cycle in it.
Read More
 hash table, linked list, two pointers, easy, c++

LeetCode 217. Contains Duplicate 解題紀錄

Elvire published on 2022-02-21 included in leetcode
檢查陣列中是否有出現重複的值。Return if any value appears at least twice in the array.
Read More
 array, hash table, sorting, easy, c++

LeetCode 24. Swap Nodes in Pairs 解題紀錄

Elvire published on 2022-02-14 included in leetcode
將兩兩相鄰的 node 交換順序。Swap every two adjacent nodes.
Read More
 linked list, recursion, medium, c++

LeetCode 53. Maximum Subarray 解題紀錄

Elvire published on 2022-02-07 included in leetcode
找出一個陣列中連續整數相加的最大值。Find the contiguous subarray which has the largest sum.
Read More
 array, divide and conquer, dynamic programming, easy, c++
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 9
Powered by Hugo | Theme - LoveIt
2014 - 2023 elvire | CC BY-NC 4.0