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
lambdalabConfig = { | |
url: "http://test.insight.io" | |
} | |
bundleUrl = 'https://raw.githubusercontent.com/lambdalab/plugin/master/insightio/content.bundle.js'; | |
var loadBundle = function() { | |
var res = ""; | |
var xhr = new XMLHttpRequest(); | |
xhr.open("GET", bundleUrl, true); |
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 <iostream> | |
#include <boost/smart_ptr.hpp> | |
#include <vector> | |
typedef struct node{ | |
int value; | |
boost::shared_ptr<struct node> left; | |
boost::shared_ptr<struct node> right; | |
}NODE; |
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 <cstdio> | |
void bitMerge(int &n, int &m, const int i, const int j){ | |
// create a mask in which all bits blow i is 1, and all bit above i is 0 | |
int maskI = 1; | |
maskI = maskI << i; | |
maskI = maskI - 1; | |
// create a mask in which all bits below j is 0, and all bit above j is 1 | |
int maskJ = 1; |
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 <iostream> | |
#include <boost/smart_ptr.hpp> | |
typedef struct node{ | |
int value; | |
boost::shared_ptr<struct node> left; | |
boost::shared_ptr<struct node> right; | |
}NODE; | |
typedef boost::shared_ptr<NODE> NODE_PTR; |
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 <iostream> | |
#include <boost/smart_ptr.hpp> | |
typedef struct node{ | |
int value; | |
boost::shared_ptr<struct node> left; | |
boost::shared_ptr<struct node> right; | |
}NODE; | |
typedef boost::shared_ptr<NODE> NODE_PTR; |
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 <iostream> | |
#include <boost/smart_ptr.hpp> | |
typedef struct node{ | |
int value; | |
boost::shared_ptr<struct node> left; | |
boost::shared_ptr<struct node> right; | |
boost::shared_ptr<struct node> parent; | |
}NODE; |
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 <iostream> | |
#include <vector> | |
#include <list> | |
#include <boost/smart_ptr.hpp> | |
typedef struct node{ | |
int value; | |
boost::shared_ptr<struct node> left; | |
boost::shared_ptr<struct node> right; | |
}NODE; |
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 <iostream> | |
#include <vector> | |
#include <boost/smart_ptr.hpp> | |
typedef struct node{ | |
int value; | |
boost::shared_ptr<struct node> left; | |
boost::shared_ptr<struct node> right; | |
}NODE; |
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 <iostream> | |
#include <boost/smart_ptr.hpp> | |
#include "mwdstack.h" | |
namespace mwd { | |
typedef boost::shared_array< boost::shared_array<int> > ARRAY2D; | |
class Graph{ | |
private: |
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 <iostream> | |
#include <boost/smart_ptr.hpp> | |
#include "mwdstack.h" | |
typedef struct node{ | |
int value; | |
boost::shared_ptr<struct node> left; | |
boost::shared_ptr<struct node> right; | |
}NODE; |
NewerOlder