I hereby claim:
- I am joshgo on github.
- I am joshgo (https://keybase.io/joshgo) on keybase.
- I have a public key whose fingerprint is F0AE 27E0 1F7C 4221 590F 151E CDF3 6C25 8053 C2B6
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| /** | |
| * Given an index k, return the kth row of the Pascal's triangle. | |
| For example, given k = 3, | |
| Return [1,3,3,1]. | |
| Note: | |
| Could you optimize your algorithm to use only O(k) extra space? | |
| */ | |
| var Pascals = { |
| var newQS = "?foo=1"; | |
| if (history.pushState) { | |
| var newurl = window.location.protocol + "//" + window.location.host + window.location.pathname + newQS; | |
| window.history.pushState({ path: newurl }, '', newurl); | |
| } |
| class Solution { | |
| public: | |
| int lengthOfLongestSubstring(string s) { | |
| int lookup[127] = {-1}; | |
| int longest = 0; | |
| int length = 0; | |
| int start = 0; | |
| memset(lookup, -1, sizeof(lookup)); | |
| int longest_increasing_subsequence_v2(vector<int>& nums) | |
| { | |
| map<int, set<int>> table; | |
| int tmax = 0; | |
| for(int i = 0; i < nums.size(); i++) | |
| { | |
| int pmax = 1; | |
| for(map<int, set<int>>::reverse_iterator itr = table.rbegin(); itr != table.rend(); itr++) |
| int longest_increasing_subsequence(vector<int>& nums) | |
| { | |
| map<int, int> table; | |
| int tmax = 0; | |
| for(int i = 0; i < nums.size(); i++) | |
| { | |
| int pmax = 0; | |
| for(map<int, int>::iterator itr = table.begin(); itr != table.end() && itr->first < nums[i]; itr++) |
| int longest_increasing_subsequence(vector<int>& nums) | |
| { | |
| map<int, int> table; | |
| int tmax = 0; | |
| for(int i = 0; i < nums.size(); i++) | |
| { | |
| int pmax = 0; | |
| for(map<int, int>::iterator itr = table.begin(); itr != table.end() && itr->first < nums[i]; itr++) |
| choco install googlechrome | |
| choco install git | |
| choco install TortoiseGit | |
| choco install 7zip | |
| choco install sysinternals | |
| choco install HeidiSQL | |
| choco install winscp | |
| choco install putty | |
| choco install sublimetext3 | |
| choco install notepadplusplus |