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

LeetCode 2000. Reverse Prefix of Word 解題紀錄

Elvire published on 2021-09-17 included in leetcode
將從 0 到指定位置的文字片段翻轉。Reverse the segment of word that starts at index 0 and ends at the index of the ch.
Read More
 two pointers, string, easy, c++

LeetCode 2. Add Two Numbers 解題紀錄

Elvire published on 2021-09-13 included in leetcode
兩組以 Linked List 方式儲存的數字進行加總。Add the two numbers and return the sum as a linked list.
Read More
 linked list, math, recursion, easy, c++

LeetCode 412. Fizz Buzz 解題紀錄

Elvire published on 2021-05-19 included in leetcode
給定一個 array,依照指定規則代換語詞。Given an integer $n$, return a string array answer (1-indexed).
Read More
 math, string, simulation, easy, c++

LeetCode 1790. Check if One String Swap Can Make Strings Equal 解題紀錄

Elvire published on 2021-05-10 included in leetcode
希望在最多做一次字元交換的情況下,使兩個 string 相同。If it is possible to make both strings equal by performing at most one string swap on exactly one of the strings.
Read More
 hash table, string, counting, easy, c++

Amazon Online Assessment (OA) - Roll Dice 解題紀錄

Elvire published on 2021-05-03 included in leetcode
Amazon Online Assessment (OA) - Roll Dice
Read More
 medium, c++

LeetCode 21. Merge Two Sorted Lists 解題紀錄

Elvire published on 2021-01-04 included in leetcode
把兩個已經排序的 Linked List 結合在一起。Merge the two lists in a one sorted list.
Read More
 linked list, recursion, easy, c++
  • 1
  • …
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
Powered by Hugo | Theme - LoveIt
2014 - 2023 elvire | CC BY-NC 4.0