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
| function executeScript(){ | |
| var no = {}; // list of excluded users | |
| re = new RegExp("[4][\:|\.|\)|\-][^1-9]"); | |
| function findmatches(response){ | |
| flag = true; | |
| if (response.data.length < 2){ // empty response, sort of | |
| flag = false; | |
| } | |
| if(flag){ | |
| response.data.forEach(function(post){ |
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
| class Queue(): | |
| def __init__(self): | |
| self.elementarray = [0] * 25 # initialize to 25 0s for now (basically) empty | |
| self.head = 0 | |
| self.tail = 0 | |
| def push(self, element): | |
| self.elementarray[self.tail] = element # basically set the tail'th element to be 'element' | |
| self.tail += 1 # shift the tail number | |
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
| 1000 47506 | |
| 70920 | |
| 34639 | |
| 63807 | |
| 71201 | |
| 40169 | |
| 85943 | |
| 98395 | |
| 24541 | |
| 46944 |
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
| int acc[NMAX]; | |
| void merge(int low, int mid, int high){ | |
| // one block from [low --> mid] and one from [mid + 1 --> high] | |
| // sizes (mid - low + 1), and (high - mid) | |
| // this one actually changes their places on the original array | |
| vector<long long> lower(acc + low, acc + mid + 1); | |
| vector<long long> higher(acc + mid + 1, acc + high + 1); |
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
| function executeScript(){ | |
| re = new RegExp("[4][\:|\.|\)|\-][^1-9]"); // yeaaaaaah REGEXs (also the 4 is there because of that 2 truths and a lie thing) | |
| function findmatches(response){ | |
| console.log("parsing page"); // just for kicks | |
| flag = true; | |
| if (response.data.length < 2){ // empty response, sort of | |
| flag = false; | |
| } | |
| if(flag){ | |
| response.data.forEach(function(post){ |
NewerOlder