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
| https://github.com/man-group/ | |
| Popular projects: | |
| https://github.com/man-group/dtale | |
| https://github.com/man-group/arctic | |
| https://github.com/man-group/notebooker |
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
| import Queue | |
| from collections import defaultdict | |
| def solution(T): | |
| graph = defaultdict(list) | |
| N = len(T); | |
| start = -1 | |
| ret = [0]*(N-1) | |
| for i in xrange(N): |
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
| from facepy import GraphAPI | |
| import datetime | |
| import random | |
| oauth_token = 'FB_API_KEY ' | |
| graph = GraphAPI(oauth_token) | |
| friend_list = graph.get("me/friends?fields=birthday,name") | |
| wishes_list = ["happy birthday!", | |
| "Have a great day!", | |
| "Many happy returns of the day!", |