One Step
Learning note, wish it may help somebody
2018年11月3日 星期六
Angular2 Learning Note (5):Typescript trick (11/3 update)
1. Go through all element in a list: (map)
2. Binding style: [ngStyle]="funct()"
沒有留言:
張貼留言
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
C++ :: std vector/ list/ map/ set/ priority queue
(1) Vector Common method: vector<int> v; vector v(10, 0); // {0,0,0,0,0,0,0,0,0,0} v[i] // acc...
Algorithm :: Reservoir Sampling
Q: For a given size = n array, how to choose k element fairly? A: This is a rather easy question if n is small. What if the size is unkn...
Algorithm :: Fisher–Yates shuffle
給定一個數列,要輸出隨機排列的序列: 方法1. c++提供 next_permutation() http://www.cplusplus.com/reference/algorithm/next_permutation/ 結果: ...
沒有留言:
張貼留言