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

LeetCode 326. Power of Three 解題紀錄

Elvire published on 2022-01-31 included in leetcode
檢查 $n$ 是否為 3 的次方。Check $n$ whether it is a power of three or not.
Read More
 math, recursion, easy, c++

LeetCode 350. Intersection of Two Arrays II 解題紀錄

Elvire published on 2022-01-24 included in leetcode
檢查兩個 array 中相同的元素。Return elements must appear as many times as it shows in both arrays
Read More
 array, hash table, two pointers, binary search, sorting, easy, c++

LeetCode 1779. Find Nearest Point That Has the Same X or Y Coordinate 解題紀錄

Elvire published on 2022-01-17 included in leetcode
回傳所有可行的座標中,距離最短的點。Return the index of the valid point with the smallest Manhattan distance from your current location.
Read More
 array, easy, c++

LeetCode 88. Merge Sorted Array 解題紀錄

Elvire published on 2022-01-10 included in leetcode
將兩個已經排序過的 array 合併。Merge nums1 and nums2 into a single array sorted in non-decreasing order.
Read More
 array, two pointers, sorting, easy, c++

LeetCode 67. Add Binary 解題紀錄

Elvire published on 2022-01-03 included in leetcode
兩個字串進行二進位數值加法,並回傳字串。Given two binary strings a and b, return their sum as a binary string.
Read More
 math, string, bit manipulation, simulation, easy, c++

LeetCode 121. Best Time to Buy and Sell Stock 解題紀錄

Elvire published on 2021-12-27 included in leetcode
尋求低買高賣的最大獲利。Return the maximum of the profits.
Read More
 array, dynamic programming, easy, c++
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • …
  • 9
Powered by Hugo | Theme - LoveIt
2014 - 2023 elvire | CC BY-NC 4.0