{"action":"opened","number":300,"pull_request":{"url":"https://api.github.com/repos/gzc426/leetcode/pulls/300","id":235653491,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM1NjUzNDkx","html_url":"https://github.com/gzc426/leetcode/pull/300","diff_url":"https://github.com/gzc426/leetcode/pull/300.diff","patch_url":"https://github.com/gzc426/leetcode/pull/300.patch","issue_url":"https://api.github.com/repos/gzc426/leetcode/issues/300","number":300,"state":"open","locked":false,"title":"018429.md","user":{"login":"018429","id":45408801,"node_id":"MDQ6VXNlcjQ1NDA4ODAx","avatar_url":"https://avatars1.githubusercontent.com/u/45408801?v=4","gravatar_id":"","url":"https://api.github.com/users/018429","html_url":"https://github.com/018429","followers_url":"https://api.github.com/users/018429/followers","following_url":"https://api.github.com/users/018429/following{/other_user}","gists_url":"https://api.github.com/users/018429/gists{/gist_id}","starred_url":"https://api.github.com/users/018429/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/018429/subscriptions","organizations_url":"https://api.github.com/users/018429/orgs","repos_url":"https://api.github.com/users/018429/repos","events_url":"https://api.github.com/users/018429/events{/privacy}","received_events_url":"https://api.github.com/users/018429/received_events","type":"User","site_admin":false},"body":"int* twoSum(int* numbers, int numbersSize, int target, int* returnSize) {\r\n    int max = numbers[numbersSize-1];\r\n    int min = numbers[0],i;\r\n    int* map = (int*)calloc(sizeof(int),max);\r\n    int *res = (int*)malloc(sizeof(int)*2);\r\n    for(i=0;i<numbersSize;i++)\r\n    {   \r\n        if(map[target-numbers[i]-min]!=0)\r\n        {\r\n            res[0]=map[target-numbers[i]-min];\r\n            res[1]=i+1;\r\n            break;\r\n        }\r\n        map[numbers[i]-min] =i+1;\r\n    }\r\n    *returnSize=2;\r\n    return res;\r\n}","created_at":"2018-12-04T01:54:21Z","updated_at":"2018-12-04T01:54:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/gzc426/leetcode/pulls/300/commits","review_comments_url":"https://api.github.com/repos/gzc426/leetcode/pulls/300/comments","review_comment_url":"https://api.github.com/repos/gzc426/leetcode/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gzc426/leetcode/issues/300/comments","statuses_url":"https://api.github.com/repos/gzc426/leetcode/statuses/43682e2ee27bb3c9c245239b7005798ea675ce46","head":{"label":"018429:master","ref":"master","sha":"43682e2ee27bb3c9c245239b7005798ea675ce46","user":{"login":"018429","id":45408801,"node_id":"MDQ6VXNlcjQ1NDA4ODAx","avatar_url":"https://avatars1.githubusercontent.com/u/45408801?v=4","gravatar_id":"","url":"https://api.github.com/users/018429","html_url":"https://github.com/018429","followers_url":"https://api.github.com/users/018429/followers","following_url":"https://api.github.com/users/018429/following{/other_user}","gists_url":"https://api.github.com/users/018429/gists{/gist_id}","starred_url":"https://api.github.com/users/018429/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/018429/subscriptions","organizations_url":"https://api.github.com/users/018429/orgs","repos_url":"https://api.github.com/users/018429/repos","events_url":"https://api.github.com/users/018429/events{/privacy}","received_events_url":"https://api.github.com/users/018429/received_events","type":"User","site_admin":false},"repo":{"id":159420059,"node_id":"MDEwOlJlcG9zaXRvcnkxNTk0MjAwNTk=","name":"leetcode","full_name":"018429/leetcode","private":false,"owner":{"login":"018429","id":45408801,"node_id":"MDQ6VXNlcjQ1NDA4ODAx","avatar_url":"https://avatars1.githubusercontent.com/u/45408801?v=4","gravatar_id":"","url":"https://api.github.com/users/018429","html_url":"https://github.com/018429","followers_url":"https://api.github.com/users/018429/followers","following_url":"https://api.github.com/users/018429/following{/other_user}","gists_url":"https://api.github.com/users/018429/gists{/gist_id}","starred_url":"https://api.github.com/users/018429/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/018429/subscriptions","organizations_url":"https://api.github.com/users/018429/orgs","repos_url":"https://api.github.com/users/018429/repos","events_url":"https://api.github.com/users/018429/events{/privacy}","received_events_url":"https://api.github.com/users/018429/received_events","type":"User","site_admin":false},"html_url":"https://github.com/018429/leetcode","description":"每天一道leetcode","fork":true,"url":"https://api.github.com/repos/018429/leetcode","forks_url":"https://api.github.com/repos/018429/leetcode/forks","keys_url":"https://api.github.com/repos/018429/leetcode/keys{/key_id}","collaborators_url":"https://api.github.com/repos/018429/leetcode/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/018429/leetcode/teams","hooks_url":"https://api.github.com/repos/018429/leetcode/hooks","issue_events_url":"https://api.github.com/repos/018429/leetcode/issues/events{/number}","events_url":"https://api.github.com/repos/018429/leetcode/events","assignees_url":"https://api.github.com/repos/018429/leetcode/assignees{/user}","branches_url":"https://api.github.com/repos/018429/leetcode/branches{/branch}","tags_url":"https://api.github.com/repos/018429/leetcode/tags","blobs_url":"https://api.github.com/repos/018429/leetcode/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/018429/leetcode/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/018429/leetcode/git/refs{/sha}","trees_url":"https://api.github.com/repos/018429/leetcode/git/trees{/sha}","statuses_url":"https://api.github.com/repos/018429/leetcode/statuses/{sha}","languages_url":"https://api.github.com/repos/018429/leetcode/languages","stargazers_url":"https://api.github.com/repos/018429/leetcode/stargazers","contributors_url":"https://api.github.com/repos/018429/leetcode/contributors","subscribers_url":"https://api.github.com/repos/018429/leetcode/subscribers","subscription_url":"https://api.github.com/repos/018429/leetcode/subscription","commits_url":"https://api.github.com/repos/018429/leetcode/commits{/sha}","git_commits_url":"https://api.github.com/repos/018429/leetcode/git/commits{/sha}","comments_url":"https://api.github.com/repos/018429/leetcode/comments{/number}","issue_comment_url":"https://api.github.com/repos/018429/leetcode/issues/comments{/number}","contents_url":"https://api.github.com/repos/018429/leetcode/contents/{+path}","compare_url":"https://api.github.com/repos/018429/leetcode/compare/{base}...{head}","merges_url":"https://api.github.com/repos/018429/leetcode/merges","archive_url":"https://api.github.com/repos/018429/leetcode/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/018429/leetcode/downloads","issues_url":"https://api.github.com/repos/018429/leetcode/issues{/number}","pulls_url":"https://api.github.com/repos/018429/leetcode/pulls{/number}","milestones_url":"https://api.github.com/repos/018429/leetcode/milestones{/number}","notifications_url":"https://api.github.com/repos/018429/leetcode/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/018429/leetcode/labels{/name}","releases_url":"https://api.github.com/repos/018429/leetcode/releases{/id}","deployments_url":"https://api.github.com/repos/018429/leetcode/deployments","created_at":"2018-11-28T00:37:01Z","updated_at":"2018-11-30T13:20:46Z","pushed_at":"2018-11-30T13:20:45Z","git_url":"git://github.com/018429/leetcode.git","ssh_url":"git@github.com:018429/leetcode.git","clone_url":"https://github.com/018429/leetcode.git","svn_url":"https://github.com/018429/leetcode","homepage":null,"size":367,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"gzc426:master","ref":"master","sha":"9c8e49174d166e84f15ef8b8dce5eabc07ce1a49","user":{"login":"gzc426","id":15061667,"node_id":"MDQ6VXNlcjE1MDYxNjY3","avatar_url":"https://avatars2.githubusercontent.com/u/15061667?v=4","gravatar_id":"","url":"https://api.github.com/users/gzc426","html_url":"https://github.com/gzc426","followers_url":"https://api.github.com/users/gzc426/followers","following_url":"https://api.github.com/users/gzc426/following{/other_user}","gists_url":"https://api.github.com/users/gzc426/gists{/gist_id}","starred_url":"https://api.github.com/users/gzc426/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gzc426/subscriptions","organizations_url":"https://api.github.com/users/gzc426/orgs","repos_url":"https://api.github.com/users/gzc426/repos","events_url":"https://api.github.com/users/gzc426/events{/privacy}","received_events_url":"https://api.github.com/users/gzc426/received_events","type":"User","site_admin":false},"repo":{"id":158809717,"node_id":"MDEwOlJlcG9zaXRvcnkxNTg4MDk3MTc=","name":"leetcode","full_name":"gzc426/leetcode","private":false,"owner":{"login":"gzc426","id":15061667,"node_id":"MDQ6VXNlcjE1MDYxNjY3","avatar_url":"https://avatars2.githubusercontent.com/u/15061667?v=4","gravatar_id":"","url":"https://api.github.com/users/gzc426","html_url":"https://github.com/gzc426","followers_url":"https://api.github.com/users/gzc426/followers","following_url":"https://api.github.com/users/gzc426/following{/other_user}","gists_url":"https://api.github.com/users/gzc426/gists{/gist_id}","starred_url":"https://api.github.com/users/gzc426/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gzc426/subscriptions","organizations_url":"https://api.github.com/users/gzc426/orgs","repos_url":"https://api.github.com/users/gzc426/repos","events_url":"https://api.github.com/users/gzc426/events{/privacy}","received_events_url":"https://api.github.com/users/gzc426/received_events","type":"User","site_admin":false},"html_url":"https://github.com/gzc426/leetcode","description":"每天一道leetcode","fork":false,"url":"https://api.github.com/repos/gzc426/leetcode","forks_url":"https://api.github.com/repos/gzc426/leetcode/forks","keys_url":"https://api.github.com/repos/gzc426/leetcode/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gzc426/leetcode/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gzc426/leetcode/teams","hooks_url":"https://api.github.com/repos/gzc426/leetcode/hooks","issue_events_url":"https://api.github.com/repos/gzc426/leetcode/issues/events{/number}","events_url":"https://api.github.com/repos/gzc426/leetcode/events","assignees_url":"https://api.github.com/repos/gzc426/leetcode/assignees{/user}","branches_url":"https://api.github.com/repos/gzc426/leetcode/branches{/branch}","tags_url":"https://api.github.com/repos/gzc426/leetcode/tags","blobs_url":"https://api.github.com/repos/gzc426/leetcode/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gzc426/leetcode/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gzc426/leetcode/git/refs{/sha}","trees_url":"https://api.github.com/repos/gzc426/leetcode/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gzc426/leetcode/statuses/{sha}","languages_url":"https://api.github.com/repos/gzc426/leetcode/languages","stargazers_url":"https://api.github.com/repos/gzc426/leetcode/stargazers","contributors_url":"https://api.github.com/repos/gzc426/leetcode/contributors","subscribers_url":"https://api.github.com/repos/gzc426/leetcode/subscribers","subscription_url":"https://api.github.com/repos/gzc426/leetcode/subscription","commits_url":"https://api.github.com/repos/gzc426/leetcode/commits{/sha}","git_commits_url":"https://api.github.com/repos/gzc426/leetcode/git/commits{/sha}","comments_url":"https://api.github.com/repos/gzc426/leetcode/comments{/number}","issue_comment_url":"https://api.github.com/repos/gzc426/leetcode/issues/comments{/number}","contents_url":"https://api.github.com/repos/gzc426/leetcode/contents/{+path}","compare_url":"https://api.github.com/repos/gzc426/leetcode/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gzc426/leetcode/merges","archive_url":"https://api.github.com/repos/gzc426/leetcode/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gzc426/leetcode/downloads","issues_url":"https://api.github.com/repos/gzc426/leetcode/issues{/number}","pulls_url":"https://api.github.com/repos/gzc426/leetcode/pulls{/number}","milestones_url":"https://api.github.com/repos/gzc426/leetcode/milestones{/number}","notifications_url":"https://api.github.com/repos/gzc426/leetcode/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gzc426/leetcode/labels{/name}","releases_url":"https://api.github.com/repos/gzc426/leetcode/releases{/id}","deployments_url":"https://api.github.com/repos/gzc426/leetcode/deployments","created_at":"2018-11-23T09:24:50Z","updated_at":"2018-12-04T00:55:27Z","pushed_at":"2018-12-04T01:40:58Z","git_url":"git://github.com/gzc426/leetcode.git","ssh_url":"git@github.com:gzc426/leetcode.git","clone_url":"https://github.com/gzc426/leetcode.git","svn_url":"https://github.com/gzc426/leetcode","homepage":null,"size":928,"stargazers_count":114,"watchers_count":114,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":140,"mirror_url":null,"archived":false,"open_issues_count":11,"license":null,"forks":140,"open_issues":11,"watchers":114,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gzc426/leetcode/pulls/300"},"html":{"href":"https://github.com/gzc426/leetcode/pull/300"},"issue":{"href":"https://api.github.com/repos/gzc426/leetcode/issues/300"},"comments":{"href":"https://api.github.com/repos/gzc426/leetcode/issues/300/comments"},"review_comments":{"href":"https://api.github.com/repos/gzc426/leetcode/pulls/300/comments"},"review_comment":{"href":"https://api.github.com/repos/gzc426/leetcode/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gzc426/leetcode/pulls/300/commits"},"statuses":{"href":"https://api.github.com/repos/gzc426/leetcode/statuses/43682e2ee27bb3c9c245239b7005798ea675ce46"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":2,"additions":66,"deletions":0,"changed_files":2}}
{"actor":{"display_login":"018429"}}