This file contains hidden or 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 <stack> | |
| #include <vector> | |
| using namespace std; | |
| class SetOfStacks{ | |
| vector<stack<int>> stacks; | |
| int threshold; | |
This file contains hidden or 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> | |
| using namespace std; | |
| int Max(int a, int b){ | |
| return a>b?a:b; | |
| } | |
| int Min(int a, int b){ | |
| return a<b?a:b; |
This file contains hidden or 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
| pair<pair<char,char>,int> maxLenSubstring2Chars(string s){ | |
| pair<char,int> lastChar; | |
| lastChar.first=s[0]; | |
| lastChar.second=1; | |
| pair<pair<char,char>,int> longestPairYet; | |
| longestPairYet.second=-1; | |
| pair<pair<char,char>,int> currentPair; | |
| currentPair.first.first=s[0]; |
This file contains hidden or 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
| var GetXHR = (function() { | |
| var module = {}; | |
| module.sendRequest = function(url, callback) { | |
| var req; | |
| if (window.XDomainRequest) { | |
| req = new XDomainRequest(); | |
| if (!req) return; | |
| req.onload = function(){ |
This file contains hidden or 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
| body { | |
| background-color: red; | |
| } |
This file contains hidden or 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
| body { | |
| background-color: green; | |
| } |
OlderNewer