{"action":"created","comment":{"url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/pulls/comments/244094190","pull_request_review_id":188016663,"id":244094190,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0NDA5NDE5MA==","diff_hunk":"@@ -0,0 +1,61 @@\n+#include \"myStack.h\"\n+#include <vector>\n+#include <limits>\n+\n+struct StackElement\n+{\n+\tint value;\n+\tStackElement* next;\n+};\n+\n+struct Stack\n+{\n+\tStackElement* head;\n+};\n+\n+Stack* createStack()\n+{\n+\tStack* stack = new Stack { nullptr };\n+\treturn stack;\n+}\n+\n+bool isEmptyStack(Stack* stack)\n+{\n+\treturn (stack->head == nullptr);\n+}\n+\n+void push(Stack* stack, int newValue)\n+{\n+\tif (isEmptyStack(stack))\n+\t{\n+\t\tStackElement* newElement = new StackElement{ newValue, nullptr };\n+\t\tstack->head = newElement;\n+\t\treturn;\n+\t}\n+\tStackElement* nexElement = stack->head;\n+\tStackElement* newElement = new StackElement{ newValue, nexElement };\n+\tstack->head = newElement;","path":"Homework_6/6_1_ex/6_1_ex/myStack.cpp","position":37,"original_position":37,"commit_id":"26cb06038ee2b8087e50b5264afe836d372bcb8b","original_commit_id":"26cb06038ee2b8087e50b5264afe836d372bcb8b","user":{"login":"yurii-litvinov","id":706768,"node_id":"MDQ6VXNlcjcwNjc2OA==","avatar_url":"https://avatars3.githubusercontent.com/u/706768?v=4","gravatar_id":"","url":"https://api.github.com/users/yurii-litvinov","html_url":"https://github.com/yurii-litvinov","followers_url":"https://api.github.com/users/yurii-litvinov/followers","following_url":"https://api.github.com/users/yurii-litvinov/following{/other_user}","gists_url":"https://api.github.com/users/yurii-litvinov/gists{/gist_id}","starred_url":"https://api.github.com/users/yurii-litvinov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yurii-litvinov/subscriptions","organizations_url":"https://api.github.com/users/yurii-litvinov/orgs","repos_url":"https://api.github.com/users/yurii-litvinov/repos","events_url":"https://api.github.com/users/yurii-litvinov/events{/privacy}","received_events_url":"https://api.github.com/users/yurii-litvinov/received_events","type":"User","site_admin":false},"body":"Разницы между случаем isEmptyStack(stack) и не isEmptyStack(stack) на самом деле нету, просто stack->head будет nullptr","created_at":"2018-12-27T07:06:34Z","updated_at":"2018-12-27T07:09:06Z","html_url":"https://github.com/Maria-Miroshnikova/Homeworks_SPbU/pull/20#discussion_r244094190","pull_request_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/pulls/20","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/pulls/comments/244094190"},"html":{"href":"https://github.com/Maria-Miroshnikova/Homeworks_SPbU/pull/20#discussion_r244094190"},"pull_request":{"href":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/pulls/20","id":241048574,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQxMDQ4NTc0","html_url":"https://github.com/Maria-Miroshnikova/Homeworks_SPbU/pull/20","diff_url":"https://github.com/Maria-Miroshnikova/Homeworks_SPbU/pull/20.diff","patch_url":"https://github.com/Maria-Miroshnikova/Homeworks_SPbU/pull/20.patch","issue_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/issues/20","number":20,"state":"open","locked":false,"title":"ex 6.1","user":{"login":"Maria-Miroshnikova","id":43678315,"node_id":"MDQ6VXNlcjQzNjc4MzE1","avatar_url":"https://avatars1.githubusercontent.com/u/43678315?v=4","gravatar_id":"","url":"https://api.github.com/users/Maria-Miroshnikova","html_url":"https://github.com/Maria-Miroshnikova","followers_url":"https://api.github.com/users/Maria-Miroshnikova/followers","following_url":"https://api.github.com/users/Maria-Miroshnikova/following{/other_user}","gists_url":"https://api.github.com/users/Maria-Miroshnikova/gists{/gist_id}","starred_url":"https://api.github.com/users/Maria-Miroshnikova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Maria-Miroshnikova/subscriptions","organizations_url":"https://api.github.com/users/Maria-Miroshnikova/orgs","repos_url":"https://api.github.com/users/Maria-Miroshnikova/repos","events_url":"https://api.github.com/users/Maria-Miroshnikova/events{/privacy}","received_events_url":"https://api.github.com/users/Maria-Miroshnikova/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-12-26T23:22:44Z","updated_at":"2018-12-27T07:09:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6ebedfe86152b72f445eab6ecf98f7536673ed71","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/pulls/20/commits","review_comments_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/pulls/20/comments","review_comment_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/issues/20/comments","statuses_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/statuses/26cb06038ee2b8087e50b5264afe836d372bcb8b","head":{"label":"Maria-Miroshnikova:Homework_6","ref":"Homework_6","sha":"26cb06038ee2b8087e50b5264afe836d372bcb8b","user":{"login":"Maria-Miroshnikova","id":43678315,"node_id":"MDQ6VXNlcjQzNjc4MzE1","avatar_url":"https://avatars1.githubusercontent.com/u/43678315?v=4","gravatar_id":"","url":"https://api.github.com/users/Maria-Miroshnikova","html_url":"https://github.com/Maria-Miroshnikova","followers_url":"https://api.github.com/users/Maria-Miroshnikova/followers","following_url":"https://api.github.com/users/Maria-Miroshnikova/following{/other_user}","gists_url":"https://api.github.com/users/Maria-Miroshnikova/gists{/gist_id}","starred_url":"https://api.github.com/users/Maria-Miroshnikova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Maria-Miroshnikova/subscriptions","organizations_url":"https://api.github.com/users/Maria-Miroshnikova/orgs","repos_url":"https://api.github.com/users/Maria-Miroshnikova/repos","events_url":"https://api.github.com/users/Maria-Miroshnikova/events{/privacy}","received_events_url":"https://api.github.com/users/Maria-Miroshnikova/received_events","type":"User","site_admin":false},"repo":{"id":152465707,"node_id":"MDEwOlJlcG9zaXRvcnkxNTI0NjU3MDc=","name":"Homeworks_SPbU","full_name":"Maria-Miroshnikova/Homeworks_SPbU","private":false,"owner":{"login":"Maria-Miroshnikova","id":43678315,"node_id":"MDQ6VXNlcjQzNjc4MzE1","avatar_url":"https://avatars1.githubusercontent.com/u/43678315?v=4","gravatar_id":"","url":"https://api.github.com/users/Maria-Miroshnikova","html_url":"https://github.com/Maria-Miroshnikova","followers_url":"https://api.github.com/users/Maria-Miroshnikova/followers","following_url":"https://api.github.com/users/Maria-Miroshnikova/following{/other_user}","gists_url":"https://api.github.com/users/Maria-Miroshnikova/gists{/gist_id}","starred_url":"https://api.github.com/users/Maria-Miroshnikova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Maria-Miroshnikova/subscriptions","organizations_url":"https://api.github.com/users/Maria-Miroshnikova/orgs","repos_url":"https://api.github.com/users/Maria-Miroshnikova/repos","events_url":"https://api.github.com/users/Maria-Miroshnikova/events{/privacy}","received_events_url":"https://api.github.com/users/Maria-Miroshnikova/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Maria-Miroshnikova/Homeworks_SPbU","description":"Homeworks for University","fork":false,"url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU","forks_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/forks","keys_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/teams","hooks_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/hooks","issue_events_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/issues/events{/number}","events_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/events","assignees_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/assignees{/user}","branches_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/branches{/branch}","tags_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/tags","blobs_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/git/refs{/sha}","trees_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/statuses/{sha}","languages_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/languages","stargazers_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/stargazers","contributors_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/contributors","subscribers_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/subscribers","subscription_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/subscription","commits_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/commits{/sha}","git_commits_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/git/commits{/sha}","comments_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/comments{/number}","issue_comment_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/issues/comments{/number}","contents_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/contents/{+path}","compare_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/merges","archive_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/downloads","issues_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/issues{/number}","pulls_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/pulls{/number}","milestones_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/milestones{/number}","notifications_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/labels{/name}","releases_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/releases{/id}","deployments_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/deployments","created_at":"2018-10-10T17:49:17Z","updated_at":"2018-12-07T16:39:49Z","pushed_at":"2018-12-27T05:35:11Z","git_url":"git://github.com/Maria-Miroshnikova/Homeworks_SPbU.git","ssh_url":"git@github.com:Maria-Miroshnikova/Homeworks_SPbU.git","clone_url":"https://github.com/Maria-Miroshnikova/Homeworks_SPbU.git","svn_url":"https://github.com/Maria-Miroshnikova/Homeworks_SPbU","homepage":null,"size":4789,"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,"archived":false,"open_issues_count":20,"license":null,"forks":0,"open_issues":20,"watchers":0,"default_branch":"master"}},"base":{"label":"Maria-Miroshnikova:master","ref":"master","sha":"01f4eafb06646e1576891860e57756b1a52c2d76","user":{"login":"Maria-Miroshnikova","id":43678315,"node_id":"MDQ6VXNlcjQzNjc4MzE1","avatar_url":"https://avatars1.githubusercontent.com/u/43678315?v=4","gravatar_id":"","url":"https://api.github.com/users/Maria-Miroshnikova","html_url":"https://github.com/Maria-Miroshnikova","followers_url":"https://api.github.com/users/Maria-Miroshnikova/followers","following_url":"https://api.github.com/users/Maria-Miroshnikova/following{/other_user}","gists_url":"https://api.github.com/users/Maria-Miroshnikova/gists{/gist_id}","starred_url":"https://api.github.com/users/Maria-Miroshnikova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Maria-Miroshnikova/subscriptions","organizations_url":"https://api.github.com/users/Maria-Miroshnikova/orgs","repos_url":"https://api.github.com/users/Maria-Miroshnikova/repos","events_url":"https://api.github.com/users/Maria-Miroshnikova/events{/privacy}","received_events_url":"https://api.github.com/users/Maria-Miroshnikova/received_events","type":"User","site_admin":false},"repo":{"id":152465707,"node_id":"MDEwOlJlcG9zaXRvcnkxNTI0NjU3MDc=","name":"Homeworks_SPbU","full_name":"Maria-Miroshnikova/Homeworks_SPbU","private":false,"owner":{"login":"Maria-Miroshnikova","id":43678315,"node_id":"MDQ6VXNlcjQzNjc4MzE1","avatar_url":"https://avatars1.githubusercontent.com/u/43678315?v=4","gravatar_id":"","url":"https://api.github.com/users/Maria-Miroshnikova","html_url":"https://github.com/Maria-Miroshnikova","followers_url":"https://api.github.com/users/Maria-Miroshnikova/followers","following_url":"https://api.github.com/users/Maria-Miroshnikova/following{/other_user}","gists_url":"https://api.github.com/users/Maria-Miroshnikova/gists{/gist_id}","starred_url":"https://api.github.com/users/Maria-Miroshnikova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Maria-Miroshnikova/subscriptions","organizations_url":"https://api.github.com/users/Maria-Miroshnikova/orgs","repos_url":"https://api.github.com/users/Maria-Miroshnikova/repos","events_url":"https://api.github.com/users/Maria-Miroshnikova/events{/privacy}","received_events_url":"https://api.github.com/users/Maria-Miroshnikova/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Maria-Miroshnikova/Homeworks_SPbU","description":"Homeworks for University","fork":false,"url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU","forks_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/forks","keys_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/teams","hooks_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/hooks","issue_events_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/issues/events{/number}","events_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/events","assignees_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/assignees{/user}","branches_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/branches{/branch}","tags_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/tags","blobs_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/git/refs{/sha}","trees_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/statuses/{sha}","languages_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/languages","stargazers_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/stargazers","contributors_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/contributors","subscribers_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/subscribers","subscription_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/subscription","commits_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/commits{/sha}","git_commits_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/git/commits{/sha}","comments_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/comments{/number}","issue_comment_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/issues/comments{/number}","contents_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/contents/{+path}","compare_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/merges","archive_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/downloads","issues_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/issues{/number}","pulls_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/pulls{/number}","milestones_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/milestones{/number}","notifications_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/labels{/name}","releases_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/releases{/id}","deployments_url":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/deployments","created_at":"2018-10-10T17:49:17Z","updated_at":"2018-12-07T16:39:49Z","pushed_at":"2018-12-27T05:35:11Z","git_url":"git://github.com/Maria-Miroshnikova/Homeworks_SPbU.git","ssh_url":"git@github.com:Maria-Miroshnikova/Homeworks_SPbU.git","clone_url":"https://github.com/Maria-Miroshnikova/Homeworks_SPbU.git","svn_url":"https://github.com/Maria-Miroshnikova/Homeworks_SPbU","homepage":null,"size":4789,"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,"archived":false,"open_issues_count":20,"license":null,"forks":0,"open_issues":20,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/pulls/20"},"html":{"href":"https://github.com/Maria-Miroshnikova/Homeworks_SPbU/pull/20"},"issue":{"href":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/issues/20"},"comments":{"href":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/Maria-Miroshnikova/Homeworks_SPbU/statuses/26cb06038ee2b8087e50b5264afe836d372bcb8b"}},"author_association":"OWNER"}}
{"actor":{"display_login":"yurii-litvinov"}}