{"action":"created","comment":{"url":"https://api.github.com/repos/Dovgalyuk/Algorithms/pulls/comments/223574243","pull_request_review_id":162732022,"id":223574243,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMzU3NDI0Mw==","diff_hunk":"@@ -3,57 +3,116 @@\n \n struct ListItem\n {\n+\tData item;\n+\tListItem *next;\n+\tListItem *prev;\n };\n \n struct List\n {\n+\tListItem *head;\n };\n \n List *list_create()\n {\n-    return NULL;\n+\tList *tmp = new List;\n+\ttmp->head = NULL;\n+    return tmp;\n }\n \n void list_delete(List *list)\n {\n+\tListItem *tmp = (list)->head;\n+\tListItem *next = NULL;\n+\n+\twhile (tmp) {\n+\t\tnext = tmp->next;\n+\t\tfree(tmp);","path":"Library/list.cpp","position":29,"original_position":29,"commit_id":"eb4cd9c9a2bcc5c6cf955c06f20b521a2e4f0342","original_commit_id":"eb4cd9c9a2bcc5c6cf955c06f20b521a2e4f0342","user":{"login":"Dovgalyuk","id":6038023,"node_id":"MDQ6VXNlcjYwMzgwMjM=","avatar_url":"https://avatars3.githubusercontent.com/u/6038023?v=4","gravatar_id":"","url":"https://api.github.com/users/Dovgalyuk","html_url":"https://github.com/Dovgalyuk","followers_url":"https://api.github.com/users/Dovgalyuk/followers","following_url":"https://api.github.com/users/Dovgalyuk/following{/other_user}","gists_url":"https://api.github.com/users/Dovgalyuk/gists{/gist_id}","starred_url":"https://api.github.com/users/Dovgalyuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dovgalyuk/subscriptions","organizations_url":"https://api.github.com/users/Dovgalyuk/orgs","repos_url":"https://api.github.com/users/Dovgalyuk/repos","events_url":"https://api.github.com/users/Dovgalyuk/events{/privacy}","received_events_url":"https://api.github.com/users/Dovgalyuk/received_events","type":"User","site_admin":false},"body":"Если мы используем new, то тут должен быть delete, а не free.","created_at":"2018-10-09T06:31:36Z","updated_at":"2018-10-09T06:35:00Z","html_url":"https://github.com/Dovgalyuk/Algorithms/pull/6#discussion_r223574243","pull_request_url":"https://api.github.com/repos/Dovgalyuk/Algorithms/pulls/6","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/Dovgalyuk/Algorithms/pulls/comments/223574243"},"html":{"href":"https://github.com/Dovgalyuk/Algorithms/pull/6#discussion_r223574243"},"pull_request":{"href":"https://api.github.com/repos/Dovgalyuk/Algorithms/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/Dovgalyuk/Algorithms/pulls/6","id":221181240,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIxMTgxMjQw","html_url":"https://github.com/Dovgalyuk/Algorithms/pull/6","diff_url":"https://github.com/Dovgalyuk/Algorithms/pull/6.diff","patch_url":"https://github.com/Dovgalyuk/Algorithms/pull/6.patch","issue_url":"https://api.github.com/repos/Dovgalyuk/Algorithms/issues/6","number":6,"state":"open","locked":false,"title":"Lab 01 (v6)","user":{"login":"Vitaljaz","id":43145747,"node_id":"MDQ6VXNlcjQzMTQ1NzQ3","avatar_url":"https://avatars0.githubusercontent.com/u/43145747?v=4","gravatar_id":"","url":"https://api.github.com/users/Vitaljaz","html_url":"https://github.com/Vitaljaz","followers_url":"https://api.github.com/users/Vitaljaz/followers","following_url":"https://api.github.com/users/Vitaljaz/following{/other_user}","gists_url":"https://api.github.com/users/Vitaljaz/gists{/gist_id}","starred_url":"https://api.github.com/users/Vitaljaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vitaljaz/subscriptions","organizations_url":"https://api.github.com/users/Vitaljaz/orgs","repos_url":"https://api.github.com/users/Vitaljaz/repos","events_url":"https://api.github.com/users/Vitaljaz/events{/privacy}","received_events_url":"https://api.github.com/users/Vitaljaz/received_events","type":"User","site_admin":false},"body":"1. Реализовать двусвязный список и стек на основе этого списка.\r\n2. Используя стек, проверить правильность этой последовательности.","created_at":"2018-10-08T16:49:37Z","updated_at":"2018-10-09T06:35:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ebcf5ba6765b802ac5e192da029f1605594fbb06","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Dovgalyuk/Algorithms/pulls/6/commits","review_comments_url":"https://api.github.com/repos/Dovgalyuk/Algorithms/pulls/6/comments","review_comment_url":"https://api.github.com/repos/Dovgalyuk/Algorithms/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Dovgalyuk/Algorithms/issues/6/comments","statuses_url":"https://api.github.com/repos/Dovgalyuk/Algorithms/statuses/eb4cd9c9a2bcc5c6cf955c06f20b521a2e4f0342","head":{"label":"Vitaljaz:master","ref":"master","sha":"eb4cd9c9a2bcc5c6cf955c06f20b521a2e4f0342","user":{"login":"Vitaljaz","id":43145747,"node_id":"MDQ6VXNlcjQzMTQ1NzQ3","avatar_url":"https://avatars0.githubusercontent.com/u/43145747?v=4","gravatar_id":"","url":"https://api.github.com/users/Vitaljaz","html_url":"https://github.com/Vitaljaz","followers_url":"https://api.github.com/users/Vitaljaz/followers","following_url":"https://api.github.com/users/Vitaljaz/following{/other_user}","gists_url":"https://api.github.com/users/Vitaljaz/gists{/gist_id}","starred_url":"https://api.github.com/users/Vitaljaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vitaljaz/subscriptions","organizations_url":"https://api.github.com/users/Vitaljaz/orgs","repos_url":"https://api.github.com/users/Vitaljaz/repos","events_url":"https://api.github.com/users/Vitaljaz/events{/privacy}","received_events_url":"https://api.github.com/users/Vitaljaz/received_events","type":"User","site_admin":false},"repo":{"id":151105419,"node_id":"MDEwOlJlcG9zaXRvcnkxNTExMDU0MTk=","name":"Algorithms","full_name":"Vitaljaz/Algorithms","private":false,"owner":{"login":"Vitaljaz","id":43145747,"node_id":"MDQ6VXNlcjQzMTQ1NzQ3","avatar_url":"https://avatars0.githubusercontent.com/u/43145747?v=4","gravatar_id":"","url":"https://api.github.com/users/Vitaljaz","html_url":"https://github.com/Vitaljaz","followers_url":"https://api.github.com/users/Vitaljaz/followers","following_url":"https://api.github.com/users/Vitaljaz/following{/other_user}","gists_url":"https://api.github.com/users/Vitaljaz/gists{/gist_id}","starred_url":"https://api.github.com/users/Vitaljaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vitaljaz/subscriptions","organizations_url":"https://api.github.com/users/Vitaljaz/orgs","repos_url":"https://api.github.com/users/Vitaljaz/repos","events_url":"https://api.github.com/users/Vitaljaz/events{/privacy}","received_events_url":"https://api.github.com/users/Vitaljaz/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Vitaljaz/Algorithms","description":null,"fork":true,"url":"https://api.github.com/repos/Vitaljaz/Algorithms","forks_url":"https://api.github.com/repos/Vitaljaz/Algorithms/forks","keys_url":"https://api.github.com/repos/Vitaljaz/Algorithms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Vitaljaz/Algorithms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Vitaljaz/Algorithms/teams","hooks_url":"https://api.github.com/repos/Vitaljaz/Algorithms/hooks","issue_events_url":"https://api.github.com/repos/Vitaljaz/Algorithms/issues/events{/number}","events_url":"https://api.github.com/repos/Vitaljaz/Algorithms/events","assignees_url":"https://api.github.com/repos/Vitaljaz/Algorithms/assignees{/user}","branches_url":"https://api.github.com/repos/Vitaljaz/Algorithms/branches{/branch}","tags_url":"https://api.github.com/repos/Vitaljaz/Algorithms/tags","blobs_url":"https://api.github.com/repos/Vitaljaz/Algorithms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Vitaljaz/Algorithms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Vitaljaz/Algorithms/git/refs{/sha}","trees_url":"https://api.github.com/repos/Vitaljaz/Algorithms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Vitaljaz/Algorithms/statuses/{sha}","languages_url":"https://api.github.com/repos/Vitaljaz/Algorithms/languages","stargazers_url":"https://api.github.com/repos/Vitaljaz/Algorithms/stargazers","contributors_url":"https://api.github.com/repos/Vitaljaz/Algorithms/contributors","subscribers_url":"https://api.github.com/repos/Vitaljaz/Algorithms/subscribers","subscription_url":"https://api.github.com/repos/Vitaljaz/Algorithms/subscription","commits_url":"https://api.github.com/repos/Vitaljaz/Algorithms/commits{/sha}","git_commits_url":"https://api.github.com/repos/Vitaljaz/Algorithms/git/commits{/sha}","comments_url":"https://api.github.com/repos/Vitaljaz/Algorithms/comments{/number}","issue_comment_url":"https://api.github.com/repos/Vitaljaz/Algorithms/issues/comments{/number}","contents_url":"https://api.github.com/repos/Vitaljaz/Algorithms/contents/{+path}","compare_url":"https://api.github.com/repos/Vitaljaz/Algorithms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Vitaljaz/Algorithms/merges","archive_url":"https://api.github.com/repos/Vitaljaz/Algorithms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Vitaljaz/Algorithms/downloads","issues_url":"https://api.github.com/repos/Vitaljaz/Algorithms/issues{/number}","pulls_url":"https://api.github.com/repos/Vitaljaz/Algorithms/pulls{/number}","milestones_url":"https://api.github.com/repos/Vitaljaz/Algorithms/milestones{/number}","notifications_url":"https://api.github.com/repos/Vitaljaz/Algorithms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Vitaljaz/Algorithms/labels{/name}","releases_url":"https://api.github.com/repos/Vitaljaz/Algorithms/releases{/id}","deployments_url":"https://api.github.com/repos/Vitaljaz/Algorithms/deployments","created_at":"2018-10-01T14:48:05Z","updated_at":"2018-10-08T16:45:34Z","pushed_at":"2018-10-08T16:45:33Z","git_url":"git://github.com/Vitaljaz/Algorithms.git","ssh_url":"git@github.com:Vitaljaz/Algorithms.git","clone_url":"https://github.com/Vitaljaz/Algorithms.git","svn_url":"https://github.com/Vitaljaz/Algorithms","homepage":null,"size":15116,"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":"Dovgalyuk:master","ref":"master","sha":"391856de5c18dec72d24df7a0f4a7b14f3d8a35a","user":{"login":"Dovgalyuk","id":6038023,"node_id":"MDQ6VXNlcjYwMzgwMjM=","avatar_url":"https://avatars3.githubusercontent.com/u/6038023?v=4","gravatar_id":"","url":"https://api.github.com/users/Dovgalyuk","html_url":"https://github.com/Dovgalyuk","followers_url":"https://api.github.com/users/Dovgalyuk/followers","following_url":"https://api.github.com/users/Dovgalyuk/following{/other_user}","gists_url":"https://api.github.com/users/Dovgalyuk/gists{/gist_id}","starred_url":"https://api.github.com/users/Dovgalyuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dovgalyuk/subscriptions","organizations_url":"https://api.github.com/users/Dovgalyuk/orgs","repos_url":"https://api.github.com/users/Dovgalyuk/repos","events_url":"https://api.github.com/users/Dovgalyuk/events{/privacy}","received_events_url":"https://api.github.com/users/Dovgalyuk/received_events","type":"User","site_admin":false},"repo":{"id":102388588,"node_id":"MDEwOlJlcG9zaXRvcnkxMDIzODg1ODg=","name":"Algorithms","full_name":"Dovgalyuk/Algorithms","private":false,"owner":{"login":"Dovgalyuk","id":6038023,"node_id":"MDQ6VXNlcjYwMzgwMjM=","avatar_url":"https://avatars3.githubusercontent.com/u/6038023?v=4","gravatar_id":"","url":"https://api.github.com/users/Dovgalyuk","html_url":"https://github.com/Dovgalyuk","followers_url":"https://api.github.com/users/Dovgalyuk/followers","following_url":"https://api.github.com/users/Dovgalyuk/following{/other_user}","gists_url":"https://api.github.com/users/Dovgalyuk/gists{/gist_id}","starred_url":"https://api.github.com/users/Dovgalyuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dovgalyuk/subscriptions","organizations_url":"https://api.github.com/users/Dovgalyuk/orgs","repos_url":"https://api.github.com/users/Dovgalyuk/repos","events_url":"https://api.github.com/users/Dovgalyuk/events{/privacy}","received_events_url":"https://api.github.com/users/Dovgalyuk/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Dovgalyuk/Algorithms","description":null,"fork":false,"url":"https://api.github.com/repos/Dovgalyuk/Algorithms","forks_url":"https://api.github.com/repos/Dovgalyuk/Algorithms/forks","keys_url":"https://api.github.com/repos/Dovgalyuk/Algorithms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Dovgalyuk/Algorithms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Dovgalyuk/Algorithms/teams","hooks_url":"https://api.github.com/repos/Dovgalyuk/Algorithms/hooks","issue_events_url":"https://api.github.com/repos/Dovgalyuk/Algorithms/issues/events{/number}","events_url":"https://api.github.com/repos/Dovgalyuk/Algorithms/events","assignees_url":"https://api.github.com/repos/Dovgalyuk/Algorithms/assignees{/user}","branches_url":"https://api.github.com/repos/Dovgalyuk/Algorithms/branches{/branch}","tags_url":"https://api.github.com/repos/Dovgalyuk/Algorithms/tags","blobs_url":"https://api.github.com/repos/Dovgalyuk/Algorithms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Dovgalyuk/Algorithms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Dovgalyuk/Algorithms/git/refs{/sha}","trees_url":"https://api.github.com/repos/Dovgalyuk/Algorithms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Dovgalyuk/Algorithms/statuses/{sha}","languages_url":"https://api.github.com/repos/Dovgalyuk/Algorithms/languages","stargazers_url":"https://api.github.com/repos/Dovgalyuk/Algorithms/stargazers","contributors_url":"https://api.github.com/repos/Dovgalyuk/Algorithms/contributors","subscribers_url":"https://api.github.com/repos/Dovgalyuk/Algorithms/subscribers","subscription_url":"https://api.github.com/repos/Dovgalyuk/Algorithms/subscription","commits_url":"https://api.github.com/repos/Dovgalyuk/Algorithms/commits{/sha}","git_commits_url":"https://api.github.com/repos/Dovgalyuk/Algorithms/git/commits{/sha}","comments_url":"https://api.github.com/repos/Dovgalyuk/Algorithms/comments{/number}","issue_comment_url":"https://api.github.com/repos/Dovgalyuk/Algorithms/issues/comments{/number}","contents_url":"https://api.github.com/repos/Dovgalyuk/Algorithms/contents/{+path}","compare_url":"https://api.github.com/repos/Dovgalyuk/Algorithms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Dovgalyuk/Algorithms/merges","archive_url":"https://api.github.com/repos/Dovgalyuk/Algorithms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Dovgalyuk/Algorithms/downloads","issues_url":"https://api.github.com/repos/Dovgalyuk/Algorithms/issues{/number}","pulls_url":"https://api.github.com/repos/Dovgalyuk/Algorithms/pulls{/number}","milestones_url":"https://api.github.com/repos/Dovgalyuk/Algorithms/milestones{/number}","notifications_url":"https://api.github.com/repos/Dovgalyuk/Algorithms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Dovgalyuk/Algorithms/labels{/name}","releases_url":"https://api.github.com/repos/Dovgalyuk/Algorithms/releases{/id}","deployments_url":"https://api.github.com/repos/Dovgalyuk/Algorithms/deployments","created_at":"2017-09-04T18:04:20Z","updated_at":"2018-09-25T11:43:56Z","pushed_at":"2018-10-08T16:49:37Z","git_url":"git://github.com/Dovgalyuk/Algorithms.git","ssh_url":"git@github.com:Dovgalyuk/Algorithms.git","clone_url":"https://github.com/Dovgalyuk/Algorithms.git","svn_url":"https://github.com/Dovgalyuk/Algorithms","homepage":null,"size":23,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":22,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":22,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Dovgalyuk/Algorithms/pulls/6"},"html":{"href":"https://github.com/Dovgalyuk/Algorithms/pull/6"},"issue":{"href":"https://api.github.com/repos/Dovgalyuk/Algorithms/issues/6"},"comments":{"href":"https://api.github.com/repos/Dovgalyuk/Algorithms/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/Dovgalyuk/Algorithms/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/Dovgalyuk/Algorithms/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Dovgalyuk/Algorithms/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/Dovgalyuk/Algorithms/statuses/eb4cd9c9a2bcc5c6cf955c06f20b521a2e4f0342"}},"author_association":"NONE"}}
{"actor":{"display_login":"Dovgalyuk"}}