{"action":"created","comment":{"url":"https://api.github.com/repos/cracklc/offer/pulls/comments/333953828","pull_request_review_id":300634413,"id":333953828,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMzMzk1MzgyOA==","diff_hunk":"@@ -0,0 +1,32 @@\n+/*\n+用两个栈来实现一个队列，\n+完成队列的Push和Pop操作。 \n+队列中的元素为int类型。\n+*/\n+import java.util.Stack;\n+ \n+public class Solution {\n+\n+    Stack<Integer> stack1 = new Stack<Integer>();\n+    Stack<Integer> stack2 = new Stack<Integer>();\n+     \n+    public void push(int node) {\n+\n+        stack1.push(node);\n+\n+    }\n+     \n+    public int pop() {\n+         \n+        if (! stack2.empty()) {\n+            return stack2.pop();\n+        } else {\n+            while (! stack1.empty()) {","path":"h/用两个栈实现队列.java","position":24,"original_position":24,"commit_id":"b47a3badbe856380886bfcf1c205b828f629fd73","original_commit_id":"b47a3badbe856380886bfcf1c205b828f629fd73","user":{"login":"inengch","id":19484517,"node_id":"MDQ6VXNlcjE5NDg0NTE3","avatar_url":"https://avatars0.githubusercontent.com/u/19484517?v=4","gravatar_id":"","url":"https://api.github.com/users/inengch","html_url":"https://github.com/inengch","followers_url":"https://api.github.com/users/inengch/followers","following_url":"https://api.github.com/users/inengch/following{/other_user}","gists_url":"https://api.github.com/users/inengch/gists{/gist_id}","starred_url":"https://api.github.com/users/inengch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inengch/subscriptions","organizations_url":"https://api.github.com/users/inengch/orgs","repos_url":"https://api.github.com/users/inengch/repos","events_url":"https://api.github.com/users/inengch/events{/privacy}","received_events_url":"https://api.github.com/users/inengch/received_events","type":"User","site_admin":false},"body":"redundant space","created_at":"2019-10-11T11:53:11Z","updated_at":"2019-10-11T11:53:11Z","html_url":"https://github.com/cracklc/offer/pull/8#discussion_r333953828","pull_request_url":"https://api.github.com/repos/cracklc/offer/pulls/8","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/cracklc/offer/pulls/comments/333953828"},"html":{"href":"https://github.com/cracklc/offer/pull/8#discussion_r333953828"},"pull_request":{"href":"https://api.github.com/repos/cracklc/offer/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/cracklc/offer/pulls/8","id":327127364,"node_id":"MDExOlB1bGxSZXF1ZXN0MzI3MTI3MzY0","html_url":"https://github.com/cracklc/offer/pull/8","diff_url":"https://github.com/cracklc/offer/pull/8.diff","patch_url":"https://github.com/cracklc/offer/pull/8.patch","issue_url":"https://api.github.com/repos/cracklc/offer/issues/8","number":8,"state":"open","locked":false,"title":"day 4","user":{"login":"krishhh5","id":46667791,"node_id":"MDQ6VXNlcjQ2NjY3Nzkx","avatar_url":"https://avatars2.githubusercontent.com/u/46667791?v=4","gravatar_id":"","url":"https://api.github.com/users/krishhh5","html_url":"https://github.com/krishhh5","followers_url":"https://api.github.com/users/krishhh5/followers","following_url":"https://api.github.com/users/krishhh5/following{/other_user}","gists_url":"https://api.github.com/users/krishhh5/gists{/gist_id}","starred_url":"https://api.github.com/users/krishhh5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krishhh5/subscriptions","organizations_url":"https://api.github.com/users/krishhh5/orgs","repos_url":"https://api.github.com/users/krishhh5/repos","events_url":"https://api.github.com/users/krishhh5/events{/privacy}","received_events_url":"https://api.github.com/users/krishhh5/received_events","type":"User","site_admin":false},"body":"LGTM","created_at":"2019-10-11T10:11:09Z","updated_at":"2019-10-11T11:53:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"965aa43dc7ecb42ad503046fcb1237f4f1a67212","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/cracklc/offer/pulls/8/commits","review_comments_url":"https://api.github.com/repos/cracklc/offer/pulls/8/comments","review_comment_url":"https://api.github.com/repos/cracklc/offer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cracklc/offer/issues/8/comments","statuses_url":"https://api.github.com/repos/cracklc/offer/statuses/b47a3badbe856380886bfcf1c205b828f629fd73","head":{"label":"krishhh5:master","ref":"master","sha":"b47a3badbe856380886bfcf1c205b828f629fd73","user":{"login":"krishhh5","id":46667791,"node_id":"MDQ6VXNlcjQ2NjY3Nzkx","avatar_url":"https://avatars2.githubusercontent.com/u/46667791?v=4","gravatar_id":"","url":"https://api.github.com/users/krishhh5","html_url":"https://github.com/krishhh5","followers_url":"https://api.github.com/users/krishhh5/followers","following_url":"https://api.github.com/users/krishhh5/following{/other_user}","gists_url":"https://api.github.com/users/krishhh5/gists{/gist_id}","starred_url":"https://api.github.com/users/krishhh5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krishhh5/subscriptions","organizations_url":"https://api.github.com/users/krishhh5/orgs","repos_url":"https://api.github.com/users/krishhh5/repos","events_url":"https://api.github.com/users/krishhh5/events{/privacy}","received_events_url":"https://api.github.com/users/krishhh5/received_events","type":"User","site_admin":false},"repo":{"id":213652775,"node_id":"MDEwOlJlcG9zaXRvcnkyMTM2NTI3NzU=","name":"offer","full_name":"krishhh5/offer","private":false,"owner":{"login":"krishhh5","id":46667791,"node_id":"MDQ6VXNlcjQ2NjY3Nzkx","avatar_url":"https://avatars2.githubusercontent.com/u/46667791?v=4","gravatar_id":"","url":"https://api.github.com/users/krishhh5","html_url":"https://github.com/krishhh5","followers_url":"https://api.github.com/users/krishhh5/followers","following_url":"https://api.github.com/users/krishhh5/following{/other_user}","gists_url":"https://api.github.com/users/krishhh5/gists{/gist_id}","starred_url":"https://api.github.com/users/krishhh5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krishhh5/subscriptions","organizations_url":"https://api.github.com/users/krishhh5/orgs","repos_url":"https://api.github.com/users/krishhh5/repos","events_url":"https://api.github.com/users/krishhh5/events{/privacy}","received_events_url":"https://api.github.com/users/krishhh5/received_events","type":"User","site_admin":false},"html_url":"https://github.com/krishhh5/offer","description":null,"fork":true,"url":"https://api.github.com/repos/krishhh5/offer","forks_url":"https://api.github.com/repos/krishhh5/offer/forks","keys_url":"https://api.github.com/repos/krishhh5/offer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/krishhh5/offer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/krishhh5/offer/teams","hooks_url":"https://api.github.com/repos/krishhh5/offer/hooks","issue_events_url":"https://api.github.com/repos/krishhh5/offer/issues/events{/number}","events_url":"https://api.github.com/repos/krishhh5/offer/events","assignees_url":"https://api.github.com/repos/krishhh5/offer/assignees{/user}","branches_url":"https://api.github.com/repos/krishhh5/offer/branches{/branch}","tags_url":"https://api.github.com/repos/krishhh5/offer/tags","blobs_url":"https://api.github.com/repos/krishhh5/offer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/krishhh5/offer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/krishhh5/offer/git/refs{/sha}","trees_url":"https://api.github.com/repos/krishhh5/offer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/krishhh5/offer/statuses/{sha}","languages_url":"https://api.github.com/repos/krishhh5/offer/languages","stargazers_url":"https://api.github.com/repos/krishhh5/offer/stargazers","contributors_url":"https://api.github.com/repos/krishhh5/offer/contributors","subscribers_url":"https://api.github.com/repos/krishhh5/offer/subscribers","subscription_url":"https://api.github.com/repos/krishhh5/offer/subscription","commits_url":"https://api.github.com/repos/krishhh5/offer/commits{/sha}","git_commits_url":"https://api.github.com/repos/krishhh5/offer/git/commits{/sha}","comments_url":"https://api.github.com/repos/krishhh5/offer/comments{/number}","issue_comment_url":"https://api.github.com/repos/krishhh5/offer/issues/comments{/number}","contents_url":"https://api.github.com/repos/krishhh5/offer/contents/{+path}","compare_url":"https://api.github.com/repos/krishhh5/offer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/krishhh5/offer/merges","archive_url":"https://api.github.com/repos/krishhh5/offer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/krishhh5/offer/downloads","issues_url":"https://api.github.com/repos/krishhh5/offer/issues{/number}","pulls_url":"https://api.github.com/repos/krishhh5/offer/pulls{/number}","milestones_url":"https://api.github.com/repos/krishhh5/offer/milestones{/number}","notifications_url":"https://api.github.com/repos/krishhh5/offer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/krishhh5/offer/labels{/name}","releases_url":"https://api.github.com/repos/krishhh5/offer/releases{/id}","deployments_url":"https://api.github.com/repos/krishhh5/offer/deployments","created_at":"2019-10-08T13:42:32Z","updated_at":"2019-10-11T10:10:26Z","pushed_at":"2019-10-11T10:10:24Z","git_url":"git://github.com/krishhh5/offer.git","ssh_url":"git@github.com:krishhh5/offer.git","clone_url":"https://github.com/krishhh5/offer.git","svn_url":"https://github.com/krishhh5/offer","homepage":null,"size":23,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"cracklc:master","ref":"master","sha":"d6a9b25991aaa896311a8030d4d3316c28126d50","user":{"login":"cracklc","id":50566761,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUwNTY2NzYx","avatar_url":"https://avatars2.githubusercontent.com/u/50566761?v=4","gravatar_id":"","url":"https://api.github.com/users/cracklc","html_url":"https://github.com/cracklc","followers_url":"https://api.github.com/users/cracklc/followers","following_url":"https://api.github.com/users/cracklc/following{/other_user}","gists_url":"https://api.github.com/users/cracklc/gists{/gist_id}","starred_url":"https://api.github.com/users/cracklc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cracklc/subscriptions","organizations_url":"https://api.github.com/users/cracklc/orgs","repos_url":"https://api.github.com/users/cracklc/repos","events_url":"https://api.github.com/users/cracklc/events{/privacy}","received_events_url":"https://api.github.com/users/cracklc/received_events","type":"Organization","site_admin":false},"repo":{"id":213167708,"node_id":"MDEwOlJlcG9zaXRvcnkyMTMxNjc3MDg=","name":"offer","full_name":"cracklc/offer","private":false,"owner":{"login":"cracklc","id":50566761,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUwNTY2NzYx","avatar_url":"https://avatars2.githubusercontent.com/u/50566761?v=4","gravatar_id":"","url":"https://api.github.com/users/cracklc","html_url":"https://github.com/cracklc","followers_url":"https://api.github.com/users/cracklc/followers","following_url":"https://api.github.com/users/cracklc/following{/other_user}","gists_url":"https://api.github.com/users/cracklc/gists{/gist_id}","starred_url":"https://api.github.com/users/cracklc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cracklc/subscriptions","organizations_url":"https://api.github.com/users/cracklc/orgs","repos_url":"https://api.github.com/users/cracklc/repos","events_url":"https://api.github.com/users/cracklc/events{/privacy}","received_events_url":"https://api.github.com/users/cracklc/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/cracklc/offer","description":null,"fork":false,"url":"https://api.github.com/repos/cracklc/offer","forks_url":"https://api.github.com/repos/cracklc/offer/forks","keys_url":"https://api.github.com/repos/cracklc/offer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cracklc/offer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cracklc/offer/teams","hooks_url":"https://api.github.com/repos/cracklc/offer/hooks","issue_events_url":"https://api.github.com/repos/cracklc/offer/issues/events{/number}","events_url":"https://api.github.com/repos/cracklc/offer/events","assignees_url":"https://api.github.com/repos/cracklc/offer/assignees{/user}","branches_url":"https://api.github.com/repos/cracklc/offer/branches{/branch}","tags_url":"https://api.github.com/repos/cracklc/offer/tags","blobs_url":"https://api.github.com/repos/cracklc/offer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cracklc/offer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cracklc/offer/git/refs{/sha}","trees_url":"https://api.github.com/repos/cracklc/offer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cracklc/offer/statuses/{sha}","languages_url":"https://api.github.com/repos/cracklc/offer/languages","stargazers_url":"https://api.github.com/repos/cracklc/offer/stargazers","contributors_url":"https://api.github.com/repos/cracklc/offer/contributors","subscribers_url":"https://api.github.com/repos/cracklc/offer/subscribers","subscription_url":"https://api.github.com/repos/cracklc/offer/subscription","commits_url":"https://api.github.com/repos/cracklc/offer/commits{/sha}","git_commits_url":"https://api.github.com/repos/cracklc/offer/git/commits{/sha}","comments_url":"https://api.github.com/repos/cracklc/offer/comments{/number}","issue_comment_url":"https://api.github.com/repos/cracklc/offer/issues/comments{/number}","contents_url":"https://api.github.com/repos/cracklc/offer/contents/{+path}","compare_url":"https://api.github.com/repos/cracklc/offer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cracklc/offer/merges","archive_url":"https://api.github.com/repos/cracklc/offer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cracklc/offer/downloads","issues_url":"https://api.github.com/repos/cracklc/offer/issues{/number}","pulls_url":"https://api.github.com/repos/cracklc/offer/pulls{/number}","milestones_url":"https://api.github.com/repos/cracklc/offer/milestones{/number}","notifications_url":"https://api.github.com/repos/cracklc/offer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cracklc/offer/labels{/name}","releases_url":"https://api.github.com/repos/cracklc/offer/releases{/id}","deployments_url":"https://api.github.com/repos/cracklc/offer/deployments","created_at":"2019-10-06T12:50:25Z","updated_at":"2019-10-10T14:01:07Z","pushed_at":"2019-10-11T10:11:09Z","git_url":"git://github.com/cracklc/offer.git","ssh_url":"git@github.com:cracklc/offer.git","clone_url":"https://github.com/cracklc/offer.git","svn_url":"https://github.com/cracklc/offer","homepage":null,"size":19,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":1,"license":null,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cracklc/offer/pulls/8"},"html":{"href":"https://github.com/cracklc/offer/pull/8"},"issue":{"href":"https://api.github.com/repos/cracklc/offer/issues/8"},"comments":{"href":"https://api.github.com/repos/cracklc/offer/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/cracklc/offer/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/cracklc/offer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cracklc/offer/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/cracklc/offer/statuses/b47a3badbe856380886bfcf1c205b828f629fd73"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"inengch"}}