{"action":"created","comment":{"url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/pulls/comments/117635423","pull_request_review_id":39358776,"id":117635423,"diff_hunk":"@@ -0,0 +1,31 @@\n+#include <iostream>\n+\n+using namespace std;\n+\n+struct node {\n+  int data;\n+  node* next;\n+};\n+\n+void findElements(int k, node* head) {\n+\tnode* ref = head;\n+\tnode* main = head;\n+\tif(head == NULL) {\n+      cout << \"List doesn't exist\" << endl;\n+      return;\n+\t}\n+\tfor(int i = 0; i < k && ref->next != NULL; i++){\n+      ref = ref->next;\n+\t}\n+\twhile(ref->next != NULL) {\n+\t\tref = ref->next;\n+\t\tmain = main->next;\n+\t}\n+\twhile(main->next != NULL) {\n+\t\tif(main != NULL)\n+\t\t  cout << main->data << endl;\n+\t\tmain = main->next;\n+\t}\n+\treturn;\n+}\n+","path":"Q2.cpp","position":31,"original_position":31,"commit_id":"2c9c253db5ace0e2414e7cb3d73c2cecdf3727ab","original_commit_id":"2c9c253db5ace0e2414e7cb3d73c2cecdf3727ab","user":{"login":"Brusi","id":7531286,"avatar_url":"https://avatars0.githubusercontent.com/u/7531286?v=3","gravatar_id":"","url":"https://api.github.com/users/Brusi","html_url":"https://github.com/Brusi","followers_url":"https://api.github.com/users/Brusi/followers","following_url":"https://api.github.com/users/Brusi/following{/other_user}","gists_url":"https://api.github.com/users/Brusi/gists{/gist_id}","starred_url":"https://api.github.com/users/Brusi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Brusi/subscriptions","organizations_url":"https://api.github.com/users/Brusi/orgs","repos_url":"https://api.github.com/users/Brusi/repos","events_url":"https://api.github.com/users/Brusi/events{/privacy}","received_events_url":"https://api.github.com/users/Brusi/received_events","type":"User","site_admin":false},"body":"Throughout this file, you have different indentations.\r\n2 spaces in the struct, 6 spaces in `ref = ref->next`.\r\nSometimes nested code is indented to the left (as in line 14-15).\r\nPlease choose one method of indentation, be consistent with it, and make sure it applies to the whole file.\r\nMany editors have auto-formatters, it is ok to use those if you want :)","created_at":"2017-05-21T15:22:44Z","updated_at":"2017-05-21T15:42:16Z","html_url":"https://github.com/matinehAkhlaghinia/CodeU/pull/2#discussion_r117635423","pull_request_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/pulls/comments/117635423"},"html":{"href":"https://github.com/matinehAkhlaghinia/CodeU/pull/2#discussion_r117635423"},"pull_request":{"href":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/pulls/2","id":121169166,"html_url":"https://github.com/matinehAkhlaghinia/CodeU/pull/2","diff_url":"https://github.com/matinehAkhlaghinia/CodeU/pull/2.diff","patch_url":"https://github.com/matinehAkhlaghinia/CodeU/pull/2.patch","issue_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/issues/2","number":2,"state":"open","locked":false,"title":"Q2 added","user":{"login":"matinehAkhlaghinia","id":16109927,"avatar_url":"https://avatars2.githubusercontent.com/u/16109927?v=3","gravatar_id":"","url":"https://api.github.com/users/matinehAkhlaghinia","html_url":"https://github.com/matinehAkhlaghinia","followers_url":"https://api.github.com/users/matinehAkhlaghinia/followers","following_url":"https://api.github.com/users/matinehAkhlaghinia/following{/other_user}","gists_url":"https://api.github.com/users/matinehAkhlaghinia/gists{/gist_id}","starred_url":"https://api.github.com/users/matinehAkhlaghinia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matinehAkhlaghinia/subscriptions","organizations_url":"https://api.github.com/users/matinehAkhlaghinia/orgs","repos_url":"https://api.github.com/users/matinehAkhlaghinia/repos","events_url":"https://api.github.com/users/matinehAkhlaghinia/events{/privacy}","received_events_url":"https://api.github.com/users/matinehAkhlaghinia/received_events","type":"User","site_admin":false},"body":"Implemented an algorithm using two pointers to print out kth element to last element of a singly linked list.","created_at":"2017-05-17T22:53:28Z","updated_at":"2017-05-21T15:42:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"486adcbe7351bde6015d02c4aa7f23543f7ba6de","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/pulls/2/commits","review_comments_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/pulls/2/comments","review_comment_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/pulls/comments{/number}","comments_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/issues/2/comments","statuses_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/statuses/2c9c253db5ace0e2414e7cb3d73c2cecdf3727ab","head":{"label":"matinehAkhlaghinia:Q2-firstAssignment","ref":"Q2-firstAssignment","sha":"2c9c253db5ace0e2414e7cb3d73c2cecdf3727ab","user":{"login":"matinehAkhlaghinia","id":16109927,"avatar_url":"https://avatars2.githubusercontent.com/u/16109927?v=3","gravatar_id":"","url":"https://api.github.com/users/matinehAkhlaghinia","html_url":"https://github.com/matinehAkhlaghinia","followers_url":"https://api.github.com/users/matinehAkhlaghinia/followers","following_url":"https://api.github.com/users/matinehAkhlaghinia/following{/other_user}","gists_url":"https://api.github.com/users/matinehAkhlaghinia/gists{/gist_id}","starred_url":"https://api.github.com/users/matinehAkhlaghinia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matinehAkhlaghinia/subscriptions","organizations_url":"https://api.github.com/users/matinehAkhlaghinia/orgs","repos_url":"https://api.github.com/users/matinehAkhlaghinia/repos","events_url":"https://api.github.com/users/matinehAkhlaghinia/events{/privacy}","received_events_url":"https://api.github.com/users/matinehAkhlaghinia/received_events","type":"User","site_admin":false},"repo":{"id":91371825,"name":"CodeU","full_name":"matinehAkhlaghinia/CodeU","owner":{"login":"matinehAkhlaghinia","id":16109927,"avatar_url":"https://avatars2.githubusercontent.com/u/16109927?v=3","gravatar_id":"","url":"https://api.github.com/users/matinehAkhlaghinia","html_url":"https://github.com/matinehAkhlaghinia","followers_url":"https://api.github.com/users/matinehAkhlaghinia/followers","following_url":"https://api.github.com/users/matinehAkhlaghinia/following{/other_user}","gists_url":"https://api.github.com/users/matinehAkhlaghinia/gists{/gist_id}","starred_url":"https://api.github.com/users/matinehAkhlaghinia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matinehAkhlaghinia/subscriptions","organizations_url":"https://api.github.com/users/matinehAkhlaghinia/orgs","repos_url":"https://api.github.com/users/matinehAkhlaghinia/repos","events_url":"https://api.github.com/users/matinehAkhlaghinia/events{/privacy}","received_events_url":"https://api.github.com/users/matinehAkhlaghinia/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/matinehAkhlaghinia/CodeU","description":null,"fork":false,"url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU","forks_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/forks","keys_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/keys{/key_id}","collaborators_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/teams","hooks_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/hooks","issue_events_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/issues/events{/number}","events_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/events","assignees_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/assignees{/user}","branches_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/branches{/branch}","tags_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/tags","blobs_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/git/refs{/sha}","trees_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/git/trees{/sha}","statuses_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/statuses/{sha}","languages_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/languages","stargazers_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/stargazers","contributors_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/contributors","subscribers_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/subscribers","subscription_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/subscription","commits_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/commits{/sha}","git_commits_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/git/commits{/sha}","comments_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/comments{/number}","issue_comment_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/issues/comments{/number}","contents_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/contents/{+path}","compare_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/compare/{base}...{head}","merges_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/merges","archive_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/downloads","issues_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/issues{/number}","pulls_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/pulls{/number}","milestones_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/milestones{/number}","notifications_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/labels{/name}","releases_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/releases{/id}","deployments_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/deployments","created_at":"2017-05-15T18:36:59Z","updated_at":"2017-05-15T18:36:59Z","pushed_at":"2017-05-17T22:53:29Z","git_url":"git://github.com/matinehAkhlaghinia/CodeU.git","ssh_url":"git@github.com:matinehAkhlaghinia/CodeU.git","clone_url":"https://github.com/matinehAkhlaghinia/CodeU.git","svn_url":"https://github.com/matinehAkhlaghinia/CodeU","homepage":null,"size":1,"stargazers_count":0,"watchers_count":0,"language":null,"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":"matinehAkhlaghinia:master","ref":"master","sha":"8e3a749603e1e2b3dc5ba2febd2a7561f1fe9bfb","user":{"login":"matinehAkhlaghinia","id":16109927,"avatar_url":"https://avatars2.githubusercontent.com/u/16109927?v=3","gravatar_id":"","url":"https://api.github.com/users/matinehAkhlaghinia","html_url":"https://github.com/matinehAkhlaghinia","followers_url":"https://api.github.com/users/matinehAkhlaghinia/followers","following_url":"https://api.github.com/users/matinehAkhlaghinia/following{/other_user}","gists_url":"https://api.github.com/users/matinehAkhlaghinia/gists{/gist_id}","starred_url":"https://api.github.com/users/matinehAkhlaghinia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matinehAkhlaghinia/subscriptions","organizations_url":"https://api.github.com/users/matinehAkhlaghinia/orgs","repos_url":"https://api.github.com/users/matinehAkhlaghinia/repos","events_url":"https://api.github.com/users/matinehAkhlaghinia/events{/privacy}","received_events_url":"https://api.github.com/users/matinehAkhlaghinia/received_events","type":"User","site_admin":false},"repo":{"id":91371825,"name":"CodeU","full_name":"matinehAkhlaghinia/CodeU","owner":{"login":"matinehAkhlaghinia","id":16109927,"avatar_url":"https://avatars2.githubusercontent.com/u/16109927?v=3","gravatar_id":"","url":"https://api.github.com/users/matinehAkhlaghinia","html_url":"https://github.com/matinehAkhlaghinia","followers_url":"https://api.github.com/users/matinehAkhlaghinia/followers","following_url":"https://api.github.com/users/matinehAkhlaghinia/following{/other_user}","gists_url":"https://api.github.com/users/matinehAkhlaghinia/gists{/gist_id}","starred_url":"https://api.github.com/users/matinehAkhlaghinia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matinehAkhlaghinia/subscriptions","organizations_url":"https://api.github.com/users/matinehAkhlaghinia/orgs","repos_url":"https://api.github.com/users/matinehAkhlaghinia/repos","events_url":"https://api.github.com/users/matinehAkhlaghinia/events{/privacy}","received_events_url":"https://api.github.com/users/matinehAkhlaghinia/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/matinehAkhlaghinia/CodeU","description":null,"fork":false,"url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU","forks_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/forks","keys_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/keys{/key_id}","collaborators_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/teams","hooks_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/hooks","issue_events_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/issues/events{/number}","events_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/events","assignees_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/assignees{/user}","branches_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/branches{/branch}","tags_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/tags","blobs_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/git/refs{/sha}","trees_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/git/trees{/sha}","statuses_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/statuses/{sha}","languages_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/languages","stargazers_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/stargazers","contributors_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/contributors","subscribers_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/subscribers","subscription_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/subscription","commits_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/commits{/sha}","git_commits_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/git/commits{/sha}","comments_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/comments{/number}","issue_comment_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/issues/comments{/number}","contents_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/contents/{+path}","compare_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/compare/{base}...{head}","merges_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/merges","archive_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/downloads","issues_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/issues{/number}","pulls_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/pulls{/number}","milestones_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/milestones{/number}","notifications_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/labels{/name}","releases_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/releases{/id}","deployments_url":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/deployments","created_at":"2017-05-15T18:36:59Z","updated_at":"2017-05-15T18:36:59Z","pushed_at":"2017-05-17T22:53:29Z","git_url":"git://github.com/matinehAkhlaghinia/CodeU.git","ssh_url":"git@github.com:matinehAkhlaghinia/CodeU.git","clone_url":"https://github.com/matinehAkhlaghinia/CodeU.git","svn_url":"https://github.com/matinehAkhlaghinia/CodeU","homepage":null,"size":1,"stargazers_count":0,"watchers_count":0,"language":null,"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/matinehAkhlaghinia/CodeU/pulls/2"},"html":{"href":"https://github.com/matinehAkhlaghinia/CodeU/pull/2"},"issue":{"href":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/issues/2"},"comments":{"href":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/matinehAkhlaghinia/CodeU/statuses/2c9c253db5ace0e2414e7cb3d73c2cecdf3727ab"}}}}
{"actor":{"display_login":"Brusi"}}