{"action":"created","comment":{"url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/pulls/comments/138108940","pull_request_review_id":61862179,"id":138108940,"diff_hunk":"@@ -0,0 +1,181 @@\n+#include <iostream>\n+using namespace std;\n+\n+struct Point {\n+    int x;\n+    int y;\n+    Point(int x_, int y_) : x(x_), y(y_) {};\n+};\n+\n+class List {\n+private:\n+    struct node{\n+        Point* data;\n+        node* next;\n+    };\n+    \n+    node* root; // указатель на первый элемент списка\n+\n+public:\n+    List() {\n+        root = NULL;\n+    }\n+    \n+    void print(); // done\n+    void printReverse(); // done\n+    \n+    int size(); // done\n+    bool empty(); // done\n+    \n+    void insert(Point* p); // done\n+    void remove(unsigned int num); // done\n+    \n+    void sort(); // done можно написать сортировку со вложенными циклами\n+                    // идея как с массивами, только там мы ходили счетчиками int i, j\n+                    // а здесь будут указатели node* i, j\n+\n+};\n+\n+void List::insert(Point * p) {\n+    \n+    node *newNode = new node;\n+    newNode->data = p;\n+    newNode->next = root;\n+    root = newNode;\n+}\n+void List::print() {\n+\tnode *tmp = root;\n+\tint counter = 1;\n+\twhile (tmp != NULL) {\n+\t\tcout << counter << \": x = \" << tmp->data->x << \"; y = \" << tmp->data->y << endl;\n+\t\ttmp = tmp->next;\n+\t\tcounter++;\n+\t}\n+\tcout << endl;\n+}\n+void List::printReverse() {\n+\tnode *tmp = root;\n+\tint counter = 0;\n+\twhile (tmp != NULL) {\n+\t\ttmp = tmp->next;\n+\t\tcounter++;\n+\t}\n+\tnode **array = new node*[counter];","path":"17.class.cpp","position":63,"original_position":63,"commit_id":"58659d6186886a045eb8da35a645a80fac264c05","original_commit_id":"58659d6186886a045eb8da35a645a80fac264c05","user":{"login":"Trage111","id":31367406,"avatar_url":"https://avatars3.githubusercontent.com/u/31367406?v=4","gravatar_id":"","url":"https://api.github.com/users/Trage111","html_url":"https://github.com/Trage111","followers_url":"https://api.github.com/users/Trage111/followers","following_url":"https://api.github.com/users/Trage111/following{/other_user}","gists_url":"https://api.github.com/users/Trage111/gists{/gist_id}","starred_url":"https://api.github.com/users/Trage111/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Trage111/subscriptions","organizations_url":"https://api.github.com/users/Trage111/orgs","repos_url":"https://api.github.com/users/Trage111/repos","events_url":"https://api.github.com/users/Trage111/events{/privacy}","received_events_url":"https://api.github.com/users/Trage111/received_events","type":"User","site_admin":false},"body":"Я, во-первых, не понимаю, почему рекурсивный способ лучше массивов. Мне кажется, что массивы лучше, так как памяти расходуется меньше.\r\nВо-вторых, функция же должна что-то принимать, чтобы её можно было сделать рекурсивной?","created_at":"2017-09-11T15:39:02Z","updated_at":"2017-09-11T15:39:02Z","html_url":"https://github.com/Trage111/TheVeryFirst-Veronika/pull/5#discussion_r138108940","pull_request_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/pulls/5","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/pulls/comments/138108940"},"html":{"href":"https://github.com/Trage111/TheVeryFirst-Veronika/pull/5#discussion_r138108940"},"pull_request":{"href":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/pulls/5"}},"in_reply_to_id":138049326},"pull_request":{"url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/pulls/5","id":140222782,"html_url":"https://github.com/Trage111/TheVeryFirst-Veronika/pull/5","diff_url":"https://github.com/Trage111/TheVeryFirst-Veronika/pull/5.diff","patch_url":"https://github.com/Trage111/TheVeryFirst-Veronika/pull/5.patch","issue_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/issues/5","number":5,"state":"open","locked":false,"title":"hw4","user":{"login":"Trage111","id":31367406,"avatar_url":"https://avatars3.githubusercontent.com/u/31367406?v=4","gravatar_id":"","url":"https://api.github.com/users/Trage111","html_url":"https://github.com/Trage111","followers_url":"https://api.github.com/users/Trage111/followers","following_url":"https://api.github.com/users/Trage111/following{/other_user}","gists_url":"https://api.github.com/users/Trage111/gists{/gist_id}","starred_url":"https://api.github.com/users/Trage111/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Trage111/subscriptions","organizations_url":"https://api.github.com/users/Trage111/orgs","repos_url":"https://api.github.com/users/Trage111/repos","events_url":"https://api.github.com/users/Trage111/events{/privacy}","received_events_url":"https://api.github.com/users/Trage111/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-09-10T19:57:35Z","updated_at":"2017-09-11T15:39:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"750039b14b9467e7a8d4bda5d1e702cea98ff590","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/pulls/5/commits","review_comments_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/pulls/5/comments","review_comment_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/issues/5/comments","statuses_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/statuses/58659d6186886a045eb8da35a645a80fac264c05","head":{"label":"Trage111:hw4","ref":"hw4","sha":"58659d6186886a045eb8da35a645a80fac264c05","user":{"login":"Trage111","id":31367406,"avatar_url":"https://avatars3.githubusercontent.com/u/31367406?v=4","gravatar_id":"","url":"https://api.github.com/users/Trage111","html_url":"https://github.com/Trage111","followers_url":"https://api.github.com/users/Trage111/followers","following_url":"https://api.github.com/users/Trage111/following{/other_user}","gists_url":"https://api.github.com/users/Trage111/gists{/gist_id}","starred_url":"https://api.github.com/users/Trage111/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Trage111/subscriptions","organizations_url":"https://api.github.com/users/Trage111/orgs","repos_url":"https://api.github.com/users/Trage111/repos","events_url":"https://api.github.com/users/Trage111/events{/privacy}","received_events_url":"https://api.github.com/users/Trage111/received_events","type":"User","site_admin":false},"repo":{"id":101480284,"name":"TheVeryFirst-Veronika","full_name":"Trage111/TheVeryFirst-Veronika","owner":{"login":"Trage111","id":31367406,"avatar_url":"https://avatars3.githubusercontent.com/u/31367406?v=4","gravatar_id":"","url":"https://api.github.com/users/Trage111","html_url":"https://github.com/Trage111","followers_url":"https://api.github.com/users/Trage111/followers","following_url":"https://api.github.com/users/Trage111/following{/other_user}","gists_url":"https://api.github.com/users/Trage111/gists{/gist_id}","starred_url":"https://api.github.com/users/Trage111/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Trage111/subscriptions","organizations_url":"https://api.github.com/users/Trage111/orgs","repos_url":"https://api.github.com/users/Trage111/repos","events_url":"https://api.github.com/users/Trage111/events{/privacy}","received_events_url":"https://api.github.com/users/Trage111/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Trage111/TheVeryFirst-Veronika","description":null,"fork":false,"url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika","forks_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/forks","keys_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/teams","hooks_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/hooks","issue_events_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/issues/events{/number}","events_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/events","assignees_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/assignees{/user}","branches_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/branches{/branch}","tags_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/tags","blobs_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/git/refs{/sha}","trees_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/statuses/{sha}","languages_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/languages","stargazers_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/stargazers","contributors_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/contributors","subscribers_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/subscribers","subscription_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/subscription","commits_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/commits{/sha}","git_commits_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/git/commits{/sha}","comments_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/comments{/number}","issue_comment_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/issues/comments{/number}","contents_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/contents/{+path}","compare_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/merges","archive_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/downloads","issues_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/issues{/number}","pulls_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/pulls{/number}","milestones_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/milestones{/number}","notifications_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/labels{/name}","releases_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/releases{/id}","deployments_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/deployments","created_at":"2017-08-26T10:56:32Z","updated_at":"2017-08-27T21:07:05Z","pushed_at":"2017-09-10T19:57:35Z","git_url":"git://github.com/Trage111/TheVeryFirst-Veronika.git","ssh_url":"git@github.com:Trage111/TheVeryFirst-Veronika.git","clone_url":"https://github.com/Trage111/TheVeryFirst-Veronika.git","svn_url":"https://github.com/Trage111/TheVeryFirst-Veronika","homepage":null,"size":25,"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":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"Trage111:master","ref":"master","sha":"f3caee13b8ce3f3586d89e69b03be99894379d7c","user":{"login":"Trage111","id":31367406,"avatar_url":"https://avatars3.githubusercontent.com/u/31367406?v=4","gravatar_id":"","url":"https://api.github.com/users/Trage111","html_url":"https://github.com/Trage111","followers_url":"https://api.github.com/users/Trage111/followers","following_url":"https://api.github.com/users/Trage111/following{/other_user}","gists_url":"https://api.github.com/users/Trage111/gists{/gist_id}","starred_url":"https://api.github.com/users/Trage111/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Trage111/subscriptions","organizations_url":"https://api.github.com/users/Trage111/orgs","repos_url":"https://api.github.com/users/Trage111/repos","events_url":"https://api.github.com/users/Trage111/events{/privacy}","received_events_url":"https://api.github.com/users/Trage111/received_events","type":"User","site_admin":false},"repo":{"id":101480284,"name":"TheVeryFirst-Veronika","full_name":"Trage111/TheVeryFirst-Veronika","owner":{"login":"Trage111","id":31367406,"avatar_url":"https://avatars3.githubusercontent.com/u/31367406?v=4","gravatar_id":"","url":"https://api.github.com/users/Trage111","html_url":"https://github.com/Trage111","followers_url":"https://api.github.com/users/Trage111/followers","following_url":"https://api.github.com/users/Trage111/following{/other_user}","gists_url":"https://api.github.com/users/Trage111/gists{/gist_id}","starred_url":"https://api.github.com/users/Trage111/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Trage111/subscriptions","organizations_url":"https://api.github.com/users/Trage111/orgs","repos_url":"https://api.github.com/users/Trage111/repos","events_url":"https://api.github.com/users/Trage111/events{/privacy}","received_events_url":"https://api.github.com/users/Trage111/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Trage111/TheVeryFirst-Veronika","description":null,"fork":false,"url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika","forks_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/forks","keys_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/teams","hooks_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/hooks","issue_events_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/issues/events{/number}","events_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/events","assignees_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/assignees{/user}","branches_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/branches{/branch}","tags_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/tags","blobs_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/git/refs{/sha}","trees_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/statuses/{sha}","languages_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/languages","stargazers_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/stargazers","contributors_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/contributors","subscribers_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/subscribers","subscription_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/subscription","commits_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/commits{/sha}","git_commits_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/git/commits{/sha}","comments_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/comments{/number}","issue_comment_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/issues/comments{/number}","contents_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/contents/{+path}","compare_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/merges","archive_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/downloads","issues_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/issues{/number}","pulls_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/pulls{/number}","milestones_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/milestones{/number}","notifications_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/labels{/name}","releases_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/releases{/id}","deployments_url":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/deployments","created_at":"2017-08-26T10:56:32Z","updated_at":"2017-08-27T21:07:05Z","pushed_at":"2017-09-10T19:57:35Z","git_url":"git://github.com/Trage111/TheVeryFirst-Veronika.git","ssh_url":"git@github.com:Trage111/TheVeryFirst-Veronika.git","clone_url":"https://github.com/Trage111/TheVeryFirst-Veronika.git","svn_url":"https://github.com/Trage111/TheVeryFirst-Veronika","homepage":null,"size":25,"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":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/pulls/5"},"html":{"href":"https://github.com/Trage111/TheVeryFirst-Veronika/pull/5"},"issue":{"href":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/issues/5"},"comments":{"href":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/Trage111/TheVeryFirst-Veronika/statuses/58659d6186886a045eb8da35a645a80fac264c05"}},"author_association":"OWNER"}}
{"actor":{"display_login":"Trage111"}}