$ sudo npm install -g hexo-cli
$ hexo -v
hexo-cli: 0.1.9
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
| ''' | |
| 28 | |
| 27 21 | |
| 26 20 15 | |
| 25 19 14 10 | |
| 24 18 13 9 6 | |
| 23 17 12 8 5 3 | |
| 22 16 11 7 4 2 1 | |
| ''' | |
| def num(n1): |
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 Node: | |
| def __init__(self,data): | |
| self.data = data | |
| self.next = None | |
| class Linkedlist: | |
| def __init__(self): | |
| self.head = None | |
| # To print the total LinkedList |
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
| def BS_first(ll,key): | |
| left = 0 | |
| right = len(ll)-1 | |
| while left<=right: | |
| mid = int((left+right)/2) | |
| if key == ll[mid]: | |
| a = mid | |
| right = mid - 1 | |
| elif key > ll[mid]: | |
| left = mid +1 |
NewerOlder