Skip to content

Instantly share code, notes, and snippets.

View Alfons0329's full-sized avatar
📈
Ready for MS life :), keep practicing

Alfons Hwu Alfons0329

📈
Ready for MS life :), keep practicing
  • National Taiwan University
  • Taiwan
View GitHub Profile
@Alfons0329
Alfons0329 / LC_1128.cpp
Last active July 29, 2019 06:46
LeetCode_1128
class Solution {
public:
int numEquivDominoPairs(vector<vector<int>>& d)
{
int res = 0, n = d.size();
map<pair<int, int>, int> m;
for(int i = 0; i < n; i++)
{
if(d[i][0] > d[i][1])
@Alfons0329
Alfons0329 / a.cpp
Last active July 31, 2019 14:40
LeetCode Weekly Contest 147
class Solution
{
public:
int tribonacci(int n)
{
int a[6] = {0, 1, 1, 2, 4, 7};
if(n < 6)
{
return a[n];
}
@Alfons0329
Alfons0329 / a.cpp
Last active August 24, 2019 13:07
LeetCode Weekly Contest 150
class Solution {
public:
int countCharacters(vector<string>& words, string chars)
{
map<char, int> m;
for(auto x : chars)
{
m[x]++;
}
@Alfons0329
Alfons0329 / a.cpp
Last active August 27, 2019 06:26
LeetCode Weekly Contest 151
class Solution
{
public:
vector<string> invalidTransactions(vector<string>& t)
{
set<string> res;
map<string, vector<vector<string> > > m;
int n = t.size();
for(int i = 0; i < n; i++)
{
@Alfons0329
Alfons0329 / result_combination.txt
Last active May 10, 2020 15:18
Result of VM HW1 of fixed NET_PREDICT_THRESHOLD or NET_PROFILE_THRESHOLD or combinations
NET_PROFILE_THRESHOLD 10
NET_PREDICT_THRESHOLD 8
+ ./qemu-x86_64 /home/alfons0329/VM_Spring_2020/HW1/vm2020_hw1_benchmark/gcc/gcc.vm2020 /home/alfons0329/VM_Spring_2020/HW1/vm2020_hw1_benchmark/gcc/g23.i
Trace statistic:
Profile threshold: 10
Predict threshold: 8
Number of traces : 10176
LLVM trans. time : 33.567042 seconds
Avg # blocks : 2.9
@Alfons0329
Alfons0329 / zhtw.srt
Created June 22, 2020 01:39
THE SECRET HISTORY OF THE MOON 4K, zhTW subtitle
1
00:00:00,638 --> 00:00:03,020
合作對象:
2
00:00:03,020 --> 00:00:06,020
SPACEFOX.SHOP Space Clothing
(太空主題服飾)
3