{"action":"created","comment":{"url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/pulls/comments/189594364","pull_request_review_id":121791219,"id":189594364,"diff_hunk":"@@ -0,0 +1,65 @@\n+#include <string>\r\n+#include <iostream>\r\n+\r\n+template <typename T>\r\n+class node;\r\n+\r\n+\r\n+template <typename T>\r\n+class node {\r\n+\tT value;\r\n+\tnode<T>* next;\r\n+public:\r\n+\tnode(T x, node<T>* nxt = nullptr) : value(x), next(nxt) {}\r\n+\tT get_value() {\r\n+\t\treturn value;\r\n+\t}\r\n+\r\n+\tnode<T>* get_next() {\r\n+\t\treturn next;\r\n+\t}\r\n+\r\n+\tvoid set_value(T x) {\r\n+\t\tvalue = x;\r\n+\t}\r\n+\r\n+\tvoid set_next(node<T>* nxt) {\r\n+\t\tnext = nxt;\r\n+\t}\r\n+\r\n+};\r\n+\r\n+template <typename T>\r\n+node<T>* find_kth_to_last(node<T>* head, int k) {\r\n+\tnode<T>* tail = head;\r","path":"annnufan/assignment1/solution_2.cpp","position":34,"original_position":34,"commit_id":"c0134854bbad29d7a609f17c14c665a7a30f1066","original_commit_id":"c0134854bbad29d7a609f17c14c665a7a30f1066","user":{"login":"Brusi","id":7531286,"avatar_url":"https://avatars3.githubusercontent.com/u/7531286?v=4","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":"`tail` and `kth` are good names, but the name `between` does not help understand the purpose of this variable.\r\nMaybe `count` is a better name for it?","created_at":"2018-05-21T13:49:24Z","updated_at":"2018-05-21T13:55:05Z","html_url":"https://github.com/flerdacodeu/CodeU-2018-Group4/pull/6#discussion_r189594364","pull_request_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/pulls/6","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/pulls/comments/189594364"},"html":{"href":"https://github.com/flerdacodeu/CodeU-2018-Group4/pull/6#discussion_r189594364"},"pull_request":{"href":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/pulls/6","id":189329015,"html_url":"https://github.com/flerdacodeu/CodeU-2018-Group4/pull/6","diff_url":"https://github.com/flerdacodeu/CodeU-2018-Group4/pull/6.diff","patch_url":"https://github.com/flerdacodeu/CodeU-2018-Group4/pull/6.patch","issue_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/issues/6","number":6,"state":"open","locked":false,"title":"Annnufan 1","user":{"login":"annnufan","id":18073432,"avatar_url":"https://avatars1.githubusercontent.com/u/18073432?v=4","gravatar_id":"","url":"https://api.github.com/users/annnufan","html_url":"https://github.com/annnufan","followers_url":"https://api.github.com/users/annnufan/followers","following_url":"https://api.github.com/users/annnufan/following{/other_user}","gists_url":"https://api.github.com/users/annnufan/gists{/gist_id}","starred_url":"https://api.github.com/users/annnufan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/annnufan/subscriptions","organizations_url":"https://api.github.com/users/annnufan/orgs","repos_url":"https://api.github.com/users/annnufan/repos","events_url":"https://api.github.com/users/annnufan/events{/privacy}","received_events_url":"https://api.github.com/users/annnufan/received_events","type":"User","site_admin":false},"body":"Add solutions for Q1 and Q2","created_at":"2018-05-21T09:37:14Z","updated_at":"2018-05-21T13:55:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b3fd96a7466a0474d9c8ca7a72ecf6d171d76c14","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/pulls/6/commits","review_comments_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/pulls/6/comments","review_comment_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/pulls/comments{/number}","comments_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/issues/6/comments","statuses_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/statuses/c0134854bbad29d7a609f17c14c665a7a30f1066","head":{"label":"flerdacodeu:annnufan-1","ref":"annnufan-1","sha":"c0134854bbad29d7a609f17c14c665a7a30f1066","user":{"login":"flerdacodeu","id":28591648,"avatar_url":"https://avatars2.githubusercontent.com/u/28591648?v=4","gravatar_id":"","url":"https://api.github.com/users/flerdacodeu","html_url":"https://github.com/flerdacodeu","followers_url":"https://api.github.com/users/flerdacodeu/followers","following_url":"https://api.github.com/users/flerdacodeu/following{/other_user}","gists_url":"https://api.github.com/users/flerdacodeu/gists{/gist_id}","starred_url":"https://api.github.com/users/flerdacodeu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flerdacodeu/subscriptions","organizations_url":"https://api.github.com/users/flerdacodeu/orgs","repos_url":"https://api.github.com/users/flerdacodeu/repos","events_url":"https://api.github.com/users/flerdacodeu/events{/privacy}","received_events_url":"https://api.github.com/users/flerdacodeu/received_events","type":"User","site_admin":false},"repo":{"id":133326560,"name":"CodeU-2018-Group4","full_name":"flerdacodeu/CodeU-2018-Group4","owner":{"login":"flerdacodeu","id":28591648,"avatar_url":"https://avatars2.githubusercontent.com/u/28591648?v=4","gravatar_id":"","url":"https://api.github.com/users/flerdacodeu","html_url":"https://github.com/flerdacodeu","followers_url":"https://api.github.com/users/flerdacodeu/followers","following_url":"https://api.github.com/users/flerdacodeu/following{/other_user}","gists_url":"https://api.github.com/users/flerdacodeu/gists{/gist_id}","starred_url":"https://api.github.com/users/flerdacodeu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flerdacodeu/subscriptions","organizations_url":"https://api.github.com/users/flerdacodeu/orgs","repos_url":"https://api.github.com/users/flerdacodeu/repos","events_url":"https://api.github.com/users/flerdacodeu/events{/privacy}","received_events_url":"https://api.github.com/users/flerdacodeu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/flerdacodeu/CodeU-2018-Group4","description":null,"fork":false,"url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4","forks_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/forks","keys_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/keys{/key_id}","collaborators_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/teams","hooks_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/hooks","issue_events_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/issues/events{/number}","events_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/events","assignees_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/assignees{/user}","branches_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/branches{/branch}","tags_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/tags","blobs_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/git/refs{/sha}","trees_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/git/trees{/sha}","statuses_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/statuses/{sha}","languages_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/languages","stargazers_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/stargazers","contributors_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/contributors","subscribers_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/subscribers","subscription_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/subscription","commits_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/commits{/sha}","git_commits_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/git/commits{/sha}","comments_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/comments{/number}","issue_comment_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/issues/comments{/number}","contents_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/contents/{+path}","compare_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/compare/{base}...{head}","merges_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/merges","archive_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/downloads","issues_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/issues{/number}","pulls_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/pulls{/number}","milestones_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/milestones{/number}","notifications_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/labels{/name}","releases_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/releases{/id}","deployments_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/deployments","created_at":"2018-05-14T08:06:27Z","updated_at":"2018-05-16T10:01:16Z","pushed_at":"2018-05-21T11:50:08Z","git_url":"git://github.com/flerdacodeu/CodeU-2018-Group4.git","ssh_url":"git@github.com:flerdacodeu/CodeU-2018-Group4.git","clone_url":"https://github.com/flerdacodeu/CodeU-2018-Group4.git","svn_url":"https://github.com/flerdacodeu/CodeU-2018-Group4","homepage":null,"size":28,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":5,"license":null,"forks":0,"open_issues":5,"watchers":1,"default_branch":"master"}},"base":{"label":"flerdacodeu:master","ref":"master","sha":"a477edf5bc63c9caf0a1afdf8803f2452014b242","user":{"login":"flerdacodeu","id":28591648,"avatar_url":"https://avatars2.githubusercontent.com/u/28591648?v=4","gravatar_id":"","url":"https://api.github.com/users/flerdacodeu","html_url":"https://github.com/flerdacodeu","followers_url":"https://api.github.com/users/flerdacodeu/followers","following_url":"https://api.github.com/users/flerdacodeu/following{/other_user}","gists_url":"https://api.github.com/users/flerdacodeu/gists{/gist_id}","starred_url":"https://api.github.com/users/flerdacodeu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flerdacodeu/subscriptions","organizations_url":"https://api.github.com/users/flerdacodeu/orgs","repos_url":"https://api.github.com/users/flerdacodeu/repos","events_url":"https://api.github.com/users/flerdacodeu/events{/privacy}","received_events_url":"https://api.github.com/users/flerdacodeu/received_events","type":"User","site_admin":false},"repo":{"id":133326560,"name":"CodeU-2018-Group4","full_name":"flerdacodeu/CodeU-2018-Group4","owner":{"login":"flerdacodeu","id":28591648,"avatar_url":"https://avatars2.githubusercontent.com/u/28591648?v=4","gravatar_id":"","url":"https://api.github.com/users/flerdacodeu","html_url":"https://github.com/flerdacodeu","followers_url":"https://api.github.com/users/flerdacodeu/followers","following_url":"https://api.github.com/users/flerdacodeu/following{/other_user}","gists_url":"https://api.github.com/users/flerdacodeu/gists{/gist_id}","starred_url":"https://api.github.com/users/flerdacodeu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flerdacodeu/subscriptions","organizations_url":"https://api.github.com/users/flerdacodeu/orgs","repos_url":"https://api.github.com/users/flerdacodeu/repos","events_url":"https://api.github.com/users/flerdacodeu/events{/privacy}","received_events_url":"https://api.github.com/users/flerdacodeu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/flerdacodeu/CodeU-2018-Group4","description":null,"fork":false,"url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4","forks_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/forks","keys_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/keys{/key_id}","collaborators_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/teams","hooks_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/hooks","issue_events_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/issues/events{/number}","events_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/events","assignees_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/assignees{/user}","branches_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/branches{/branch}","tags_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/tags","blobs_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/git/refs{/sha}","trees_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/git/trees{/sha}","statuses_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/statuses/{sha}","languages_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/languages","stargazers_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/stargazers","contributors_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/contributors","subscribers_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/subscribers","subscription_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/subscription","commits_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/commits{/sha}","git_commits_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/git/commits{/sha}","comments_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/comments{/number}","issue_comment_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/issues/comments{/number}","contents_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/contents/{+path}","compare_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/compare/{base}...{head}","merges_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/merges","archive_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/downloads","issues_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/issues{/number}","pulls_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/pulls{/number}","milestones_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/milestones{/number}","notifications_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/labels{/name}","releases_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/releases{/id}","deployments_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/deployments","created_at":"2018-05-14T08:06:27Z","updated_at":"2018-05-16T10:01:16Z","pushed_at":"2018-05-21T11:50:08Z","git_url":"git://github.com/flerdacodeu/CodeU-2018-Group4.git","ssh_url":"git@github.com:flerdacodeu/CodeU-2018-Group4.git","clone_url":"https://github.com/flerdacodeu/CodeU-2018-Group4.git","svn_url":"https://github.com/flerdacodeu/CodeU-2018-Group4","homepage":null,"size":28,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":5,"license":null,"forks":0,"open_issues":5,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/pulls/6"},"html":{"href":"https://github.com/flerdacodeu/CodeU-2018-Group4/pull/6"},"issue":{"href":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/issues/6"},"comments":{"href":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group4/statuses/c0134854bbad29d7a609f17c14c665a7a30f1066"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"Brusi"}}