{"action":"created","comment":{"url":"https://api.github.com/repos/agaga23/CodeU/pulls/comments/118521749","pull_request_review_id":40322449,"id":118521749,"diff_hunk":"@@ -8,30 +8,27 @@ struct Node{\n   }\n };\n struct LList{\n-  Node *head = NULL;\n+  Node *head = NULL, *last = NULL;\n+  int size = 0;\n   void add(int v){\n+\tsize ++;\n \tif ( head == NULL ) {\n \t  head = new Node(v);\n+\t  last = head;\n \t  return;\n \t}\n-\tNode *end = head;\n-\twhile ( end -> next != NULL ) end = end -> next;\n-\tend -> next = new Node(v);\n+\tlast -> next = new Node(v);\n+\tlast = last -> next;\n   }\n-  Node findk(int k){\n-\tint siz = 0;\n-\tNode *end = head;\n-\twhile ( end != NULL ){\n-\t  siz ++;\n-\t  end = end -> next;\n-\t}\n+  Node* findk(int k){\n \tint nr = 1;\n+\tif ( k < 0 || k >= size ) return NULL;\n \tNode *kth = head;\n-\twhile ( nr != ( siz - k ) ){\n+\twhile ( nr != ( size - k ) ){","path":"a1q2.cpp","position":null,"original_position":32,"commit_id":"b769edcd5d547f33d397683fa08fb4d85d2e22fb","original_commit_id":"b769edcd5d547f33d397683fa08fb4d85d2e22fb","user":{"login":"ssancho2","id":28534702,"avatar_url":"https://avatars0.githubusercontent.com/u/28534702?v=3","gravatar_id":"","url":"https://api.github.com/users/ssancho2","html_url":"https://github.com/ssancho2","followers_url":"https://api.github.com/users/ssancho2/followers","following_url":"https://api.github.com/users/ssancho2/following{/other_user}","gists_url":"https://api.github.com/users/ssancho2/gists{/gist_id}","starred_url":"https://api.github.com/users/ssancho2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssancho2/subscriptions","organizations_url":"https://api.github.com/users/ssancho2/orgs","repos_url":"https://api.github.com/users/ssancho2/repos","events_url":"https://api.github.com/users/ssancho2/events{/privacy}","received_events_url":"https://api.github.com/users/ssancho2/received_events","type":"User","site_admin":false},"body":"I don't see a way to revert a change on the UI, you can either undo the change to master manually creating a commit or add the changes to the branch too. ","created_at":"2017-05-25T16:14:17Z","updated_at":"2017-05-25T16:14:17Z","html_url":"https://github.com/agaga23/CodeU/pull/3#discussion_r118521749","pull_request_url":"https://api.github.com/repos/agaga23/CodeU/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/agaga23/CodeU/pulls/comments/118521749"},"html":{"href":"https://github.com/agaga23/CodeU/pull/3#discussion_r118521749"},"pull_request":{"href":"https://api.github.com/repos/agaga23/CodeU/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/agaga23/CodeU/pulls/3","id":121583056,"html_url":"https://github.com/agaga23/CodeU/pull/3","diff_url":"https://github.com/agaga23/CodeU/pull/3.diff","patch_url":"https://github.com/agaga23/CodeU/pull/3.patch","issue_url":"https://api.github.com/repos/agaga23/CodeU/issues/3","number":3,"state":"open","locked":false,"title":"A1","user":{"login":"agaga23","id":23214040,"avatar_url":"https://avatars3.githubusercontent.com/u/23214040?v=3","gravatar_id":"","url":"https://api.github.com/users/agaga23","html_url":"https://github.com/agaga23","followers_url":"https://api.github.com/users/agaga23/followers","following_url":"https://api.github.com/users/agaga23/following{/other_user}","gists_url":"https://api.github.com/users/agaga23/gists{/gist_id}","starred_url":"https://api.github.com/users/agaga23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agaga23/subscriptions","organizations_url":"https://api.github.com/users/agaga23/orgs","repos_url":"https://api.github.com/users/agaga23/repos","events_url":"https://api.github.com/users/agaga23/events{/privacy}","received_events_url":"https://api.github.com/users/agaga23/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-05-19T21:08:15Z","updated_at":"2017-05-25T16:14:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e74af5704be65037f43174bf87e652236549bcc9","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/agaga23/CodeU/pulls/3/commits","review_comments_url":"https://api.github.com/repos/agaga23/CodeU/pulls/3/comments","review_comment_url":"https://api.github.com/repos/agaga23/CodeU/pulls/comments{/number}","comments_url":"https://api.github.com/repos/agaga23/CodeU/issues/3/comments","statuses_url":"https://api.github.com/repos/agaga23/CodeU/statuses/b769edcd5d547f33d397683fa08fb4d85d2e22fb","head":{"label":"agaga23:Assignment-1","ref":"Assignment-1","sha":"b769edcd5d547f33d397683fa08fb4d85d2e22fb","user":{"login":"agaga23","id":23214040,"avatar_url":"https://avatars3.githubusercontent.com/u/23214040?v=3","gravatar_id":"","url":"https://api.github.com/users/agaga23","html_url":"https://github.com/agaga23","followers_url":"https://api.github.com/users/agaga23/followers","following_url":"https://api.github.com/users/agaga23/following{/other_user}","gists_url":"https://api.github.com/users/agaga23/gists{/gist_id}","starred_url":"https://api.github.com/users/agaga23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agaga23/subscriptions","organizations_url":"https://api.github.com/users/agaga23/orgs","repos_url":"https://api.github.com/users/agaga23/repos","events_url":"https://api.github.com/users/agaga23/events{/privacy}","received_events_url":"https://api.github.com/users/agaga23/received_events","type":"User","site_admin":false},"repo":{"id":91584168,"name":"CodeU","full_name":"agaga23/CodeU","owner":{"login":"agaga23","id":23214040,"avatar_url":"https://avatars3.githubusercontent.com/u/23214040?v=3","gravatar_id":"","url":"https://api.github.com/users/agaga23","html_url":"https://github.com/agaga23","followers_url":"https://api.github.com/users/agaga23/followers","following_url":"https://api.github.com/users/agaga23/following{/other_user}","gists_url":"https://api.github.com/users/agaga23/gists{/gist_id}","starred_url":"https://api.github.com/users/agaga23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agaga23/subscriptions","organizations_url":"https://api.github.com/users/agaga23/orgs","repos_url":"https://api.github.com/users/agaga23/repos","events_url":"https://api.github.com/users/agaga23/events{/privacy}","received_events_url":"https://api.github.com/users/agaga23/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/agaga23/CodeU","description":null,"fork":false,"url":"https://api.github.com/repos/agaga23/CodeU","forks_url":"https://api.github.com/repos/agaga23/CodeU/forks","keys_url":"https://api.github.com/repos/agaga23/CodeU/keys{/key_id}","collaborators_url":"https://api.github.com/repos/agaga23/CodeU/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/agaga23/CodeU/teams","hooks_url":"https://api.github.com/repos/agaga23/CodeU/hooks","issue_events_url":"https://api.github.com/repos/agaga23/CodeU/issues/events{/number}","events_url":"https://api.github.com/repos/agaga23/CodeU/events","assignees_url":"https://api.github.com/repos/agaga23/CodeU/assignees{/user}","branches_url":"https://api.github.com/repos/agaga23/CodeU/branches{/branch}","tags_url":"https://api.github.com/repos/agaga23/CodeU/tags","blobs_url":"https://api.github.com/repos/agaga23/CodeU/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/agaga23/CodeU/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/agaga23/CodeU/git/refs{/sha}","trees_url":"https://api.github.com/repos/agaga23/CodeU/git/trees{/sha}","statuses_url":"https://api.github.com/repos/agaga23/CodeU/statuses/{sha}","languages_url":"https://api.github.com/repos/agaga23/CodeU/languages","stargazers_url":"https://api.github.com/repos/agaga23/CodeU/stargazers","contributors_url":"https://api.github.com/repos/agaga23/CodeU/contributors","subscribers_url":"https://api.github.com/repos/agaga23/CodeU/subscribers","subscription_url":"https://api.github.com/repos/agaga23/CodeU/subscription","commits_url":"https://api.github.com/repos/agaga23/CodeU/commits{/sha}","git_commits_url":"https://api.github.com/repos/agaga23/CodeU/git/commits{/sha}","comments_url":"https://api.github.com/repos/agaga23/CodeU/comments{/number}","issue_comment_url":"https://api.github.com/repos/agaga23/CodeU/issues/comments{/number}","contents_url":"https://api.github.com/repos/agaga23/CodeU/contents/{+path}","compare_url":"https://api.github.com/repos/agaga23/CodeU/compare/{base}...{head}","merges_url":"https://api.github.com/repos/agaga23/CodeU/merges","archive_url":"https://api.github.com/repos/agaga23/CodeU/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/agaga23/CodeU/downloads","issues_url":"https://api.github.com/repos/agaga23/CodeU/issues{/number}","pulls_url":"https://api.github.com/repos/agaga23/CodeU/pulls{/number}","milestones_url":"https://api.github.com/repos/agaga23/CodeU/milestones{/number}","notifications_url":"https://api.github.com/repos/agaga23/CodeU/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/agaga23/CodeU/labels{/name}","releases_url":"https://api.github.com/repos/agaga23/CodeU/releases{/id}","deployments_url":"https://api.github.com/repos/agaga23/CodeU/deployments","created_at":"2017-05-17T14:14:38Z","updated_at":"2017-05-25T16:03:15Z","pushed_at":"2017-05-25T16:03:14Z","git_url":"git://github.com/agaga23/CodeU.git","ssh_url":"git@github.com:agaga23/CodeU.git","clone_url":"https://github.com/agaga23/CodeU.git","svn_url":"https://github.com/agaga23/CodeU","homepage":null,"size":2,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"agaga23:master","ref":"master","sha":"ceb6b2df82fb3141f20a17def7db3e4112b944b5","user":{"login":"agaga23","id":23214040,"avatar_url":"https://avatars3.githubusercontent.com/u/23214040?v=3","gravatar_id":"","url":"https://api.github.com/users/agaga23","html_url":"https://github.com/agaga23","followers_url":"https://api.github.com/users/agaga23/followers","following_url":"https://api.github.com/users/agaga23/following{/other_user}","gists_url":"https://api.github.com/users/agaga23/gists{/gist_id}","starred_url":"https://api.github.com/users/agaga23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agaga23/subscriptions","organizations_url":"https://api.github.com/users/agaga23/orgs","repos_url":"https://api.github.com/users/agaga23/repos","events_url":"https://api.github.com/users/agaga23/events{/privacy}","received_events_url":"https://api.github.com/users/agaga23/received_events","type":"User","site_admin":false},"repo":{"id":91584168,"name":"CodeU","full_name":"agaga23/CodeU","owner":{"login":"agaga23","id":23214040,"avatar_url":"https://avatars3.githubusercontent.com/u/23214040?v=3","gravatar_id":"","url":"https://api.github.com/users/agaga23","html_url":"https://github.com/agaga23","followers_url":"https://api.github.com/users/agaga23/followers","following_url":"https://api.github.com/users/agaga23/following{/other_user}","gists_url":"https://api.github.com/users/agaga23/gists{/gist_id}","starred_url":"https://api.github.com/users/agaga23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agaga23/subscriptions","organizations_url":"https://api.github.com/users/agaga23/orgs","repos_url":"https://api.github.com/users/agaga23/repos","events_url":"https://api.github.com/users/agaga23/events{/privacy}","received_events_url":"https://api.github.com/users/agaga23/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/agaga23/CodeU","description":null,"fork":false,"url":"https://api.github.com/repos/agaga23/CodeU","forks_url":"https://api.github.com/repos/agaga23/CodeU/forks","keys_url":"https://api.github.com/repos/agaga23/CodeU/keys{/key_id}","collaborators_url":"https://api.github.com/repos/agaga23/CodeU/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/agaga23/CodeU/teams","hooks_url":"https://api.github.com/repos/agaga23/CodeU/hooks","issue_events_url":"https://api.github.com/repos/agaga23/CodeU/issues/events{/number}","events_url":"https://api.github.com/repos/agaga23/CodeU/events","assignees_url":"https://api.github.com/repos/agaga23/CodeU/assignees{/user}","branches_url":"https://api.github.com/repos/agaga23/CodeU/branches{/branch}","tags_url":"https://api.github.com/repos/agaga23/CodeU/tags","blobs_url":"https://api.github.com/repos/agaga23/CodeU/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/agaga23/CodeU/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/agaga23/CodeU/git/refs{/sha}","trees_url":"https://api.github.com/repos/agaga23/CodeU/git/trees{/sha}","statuses_url":"https://api.github.com/repos/agaga23/CodeU/statuses/{sha}","languages_url":"https://api.github.com/repos/agaga23/CodeU/languages","stargazers_url":"https://api.github.com/repos/agaga23/CodeU/stargazers","contributors_url":"https://api.github.com/repos/agaga23/CodeU/contributors","subscribers_url":"https://api.github.com/repos/agaga23/CodeU/subscribers","subscription_url":"https://api.github.com/repos/agaga23/CodeU/subscription","commits_url":"https://api.github.com/repos/agaga23/CodeU/commits{/sha}","git_commits_url":"https://api.github.com/repos/agaga23/CodeU/git/commits{/sha}","comments_url":"https://api.github.com/repos/agaga23/CodeU/comments{/number}","issue_comment_url":"https://api.github.com/repos/agaga23/CodeU/issues/comments{/number}","contents_url":"https://api.github.com/repos/agaga23/CodeU/contents/{+path}","compare_url":"https://api.github.com/repos/agaga23/CodeU/compare/{base}...{head}","merges_url":"https://api.github.com/repos/agaga23/CodeU/merges","archive_url":"https://api.github.com/repos/agaga23/CodeU/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/agaga23/CodeU/downloads","issues_url":"https://api.github.com/repos/agaga23/CodeU/issues{/number}","pulls_url":"https://api.github.com/repos/agaga23/CodeU/pulls{/number}","milestones_url":"https://api.github.com/repos/agaga23/CodeU/milestones{/number}","notifications_url":"https://api.github.com/repos/agaga23/CodeU/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/agaga23/CodeU/labels{/name}","releases_url":"https://api.github.com/repos/agaga23/CodeU/releases{/id}","deployments_url":"https://api.github.com/repos/agaga23/CodeU/deployments","created_at":"2017-05-17T14:14:38Z","updated_at":"2017-05-25T16:03:15Z","pushed_at":"2017-05-25T16:03:14Z","git_url":"git://github.com/agaga23/CodeU.git","ssh_url":"git@github.com:agaga23/CodeU.git","clone_url":"https://github.com/agaga23/CodeU.git","svn_url":"https://github.com/agaga23/CodeU","homepage":null,"size":2,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/agaga23/CodeU/pulls/3"},"html":{"href":"https://github.com/agaga23/CodeU/pull/3"},"issue":{"href":"https://api.github.com/repos/agaga23/CodeU/issues/3"},"comments":{"href":"https://api.github.com/repos/agaga23/CodeU/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/agaga23/CodeU/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/agaga23/CodeU/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/agaga23/CodeU/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/agaga23/CodeU/statuses/b769edcd5d547f33d397683fa08fb4d85d2e22fb"}}}}
{"actor":{"display_login":"ssancho2"}}