This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//L1 | |
旅游 | |
觉得 | |
最 | |
为什么 | |
也 | |
运动 | |
踢足球 | |
一起 | |
要 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCpHkE3mQvAbYuWndjy3gwus94zgAJuP51swsa/qgg5dC+oPN9zIvtfmWYk1d8ua6oN24vKAAo5AHDD8rGdJVVVU9TM7zOyJTYM8lN9Q9KlgVwQQhUpfI8Uw/qA7KxQKLHzqTFcH0iaRqZCXNMlYwolMzLXCAC3KpJoRLC+XNPcbN/L9wVFJU5UhtlEy+XEZeGn6uJjK/WVPpLcBrZPSNbOp22F6GeD2sUTSZpAYM9PQwrx5xe7umJROHwOgRYkz99QvJMRTvPdg1nx6lIsikpao3yiieTpvYfYlQ0mObUCYPcx7/9FeCENthQsWrIaQsC6sFvZFh+UbmKCAm+wn+cf max@Maxs-Air |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// to compile run: g++ -std=gnu++11 cubic_spline.cpp -lmgl | |
#include <iostream> | |
#include <eigen3/Eigen/Dense> | |
#include <mgl2/mgl.h> | |
using namespace Eigen; | |
using namespace std; | |
MatrixXd cubicSpline(const VectorXd &T, const VectorXd &Y) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// to compile run: g++ -std=gnu++11 cubic_spline.cpp -lmgl | |
#include <iostream> | |
#include <eigen3/Eigen/Dense> | |
#include <mgl2/mgl.h> | |
using namespace Eigen; | |
using namespace std; | |
MatrixXd cubicSpline(const VectorXd &T, const VectorXd &Y) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* mm-naive.c - The fastest, least memory-efficient malloc package. | |
* | |
* In this naive approach, a block is allocated by simply incrementing | |
* the brk pointer. A block is pure payload. There are no headers or | |
* footers. Blocks are never coalesced or reused. Realloc is | |
* implemented directly using mm_malloc and mm_free. | |
* | |
* NOTE TO STUDENTS: Replace this header comment with your own header | |
* comment that gives a high level description of your solution. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
/** | |
* | |
* Question: Why don't the last two strings show up correctly in the terminal? | |
* | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
struct Tuple { | |
char* firstWord; | |
int wordCount; | |
}; | |
struct Tuple processString(char* string) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
struct Tuple { | |
char* firstWord; | |
int wordCount; | |
}; | |
struct Tuple processString(char* string) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
atomic { | |
if(exp1 != val1.get() || exp2 != val2.get()) { | |
return false; | |
} | |
val1.set(up1); | |
val2.set(up2); | |
return true; | |
} |