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

LeetCode 118. Pascal's Triangle 解題紀錄

Elvire published on 2015-02-23 included in leetcode
輸出帕斯卡三角形。Print the Pascal’s triangle.
Read More
 array, dynamic programming, easy, c++

LeetCode 561. Array Partition I 解題紀錄

Elvire published on 2015-01-05 included in leetcode
計算 input array 中任意兩數 $min$ 後的 $max$ 值。Return the sum of $min(a_i, b_i)$ for all $i$ is maximized.
Read More
 array, greedy, sorting, counting sort, easy, c++

【C++】Data Alignment 資料對齊

Elvire published on 2014-07-28 included in Computer System
配合最大的字節空間,調整記憶體空間的使用率。
Read More
 compile, c++

【C++】 vs

Elvire published on 2014-07-21 included in Computer System
<iostream> 與 <iostream.h> 的比較。
Read More
 compile, c++

LeetCode 448. Find All Numbers Disappeared in an Array 解題紀錄

Elvire published on 2014-07-14 included in leetcode
檢查一個 array 中漏掉的數字。Return an array of all the integers in the range [1, n] that do not appear in nums.
Read More
 array, hash table, unordered map, easy, c++

LeetCode 204. Count Primes 解題紀錄

Elvire published on 2014-07-07 included in leetcode
請計算整數 n 以內有幾個質數。Given an integer n, return the number of prime numbers that are strictly less than n.
Read More
 array, math, enumeration, number theory, medium, c++
  • 1
  • …
  • 7
  • 8
  • 9
Powered by Hugo | Theme - LoveIt
2014 - 2023 elvire | CC BY-NC 4.0