{"action":"created","comment":{"url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/pulls/comments/226664667","pull_request_review_id":166546220,"id":226664667,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNjY2NDY2Nw==","diff_hunk":"@@ -0,0 +1,167 @@\n+﻿using System;\n+using System.Collections;\n+using System.Collections.Generic;\n+using System.Runtime.CompilerServices;\n+\n+namespace LinkedList\n+{\n+\n+    public class LinkedList<T> : IEnumerable<T>\n+    {\n+        private Node<T> _head;\n+\n+        public int Length { get; private set; }\n+\n+        private Node<T> _lastAdd { get; set; }\n+\n+\n+\n+\n+        public LinkedList() { }\n+\n+        public void Add(T value)\n+        {\n+            Node<T> current;\n+            if (_head == null)\n+            {\n+                _head = new Node<T>(value);\n+                Length++;\n+                _lastAdd = _head;\n+                return;\n+            }\n+\n+            current = _head;\n+            while (current.Next != null)\n+            {\n+                current = current.Next;\n+            }\n+\n+            current.Next = new Node<T>(value);\n+            Length++;\n+            _lastAdd = current.Next;\n+\n+        }\n+\n+        public void Pop()\n+        {\n+            var current = _head;\n+            if (_lastAdd == _head)\n+            {\n+                var currentNode = _head.Next;\n+                _head = currentNode;\n+                _lastAdd = _head;\n+                Length--;\n+                return;\n+            }\n+\n+            while (current.Next != _lastAdd)\n+            {\n+                current = current.Next;\n+            }\n+\n+            _lastAdd = current;\n+            current.Next = current.Next.Next;\n+            Length--;\n+        }\n+\n+        public void Push(T value)\n+        {\n+            var current = _head;\n+            var previous = new Node<T>(value);\n+            _head = previous;\n+            _head.Next = current;\n+            _lastAdd = _head;\n+            Length++;\n+        }\n+\n+        public void AddAt(int index, T value)\n+        {\n+            var current = GetByIndex(index - 1);\n+            var next = current.Next;\n+            current.Next = new Node<T>(value) { Next = next };\n+            Length++;\n+            _lastAdd = current.Next;\n+        }\n+\n+        public T RemoveAt(int index)\n+        {\n+            var current = GetByIndex(index - 1);","path":"DataStructures/LinkedList.cs","position":88,"original_position":88,"commit_id":"c6e8e61442cc7b57f524ea282bcb4b6691603e66","original_commit_id":"c6e8e61442cc7b57f524ea282bcb4b6691603e66","user":{"login":"evgeniy-glushin","id":17412730,"node_id":"MDQ6VXNlcjE3NDEyNzMw","avatar_url":"https://avatars0.githubusercontent.com/u/17412730?v=4","gravatar_id":"","url":"https://api.github.com/users/evgeniy-glushin","html_url":"https://github.com/evgeniy-glushin","followers_url":"https://api.github.com/users/evgeniy-glushin/followers","following_url":"https://api.github.com/users/evgeniy-glushin/following{/other_user}","gists_url":"https://api.github.com/users/evgeniy-glushin/gists{/gist_id}","starred_url":"https://api.github.com/users/evgeniy-glushin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evgeniy-glushin/subscriptions","organizations_url":"https://api.github.com/users/evgeniy-glushin/orgs","repos_url":"https://api.github.com/users/evgeniy-glushin/repos","events_url":"https://api.github.com/users/evgeniy-glushin/events{/privacy}","received_events_url":"https://api.github.com/users/evgeniy-glushin/received_events","type":"User","site_admin":false},"body":"this is rather previous than current","created_at":"2018-10-19T14:20:45Z","updated_at":"2018-10-19T14:20:45Z","html_url":"https://github.com/Vladislav-Sirenko/Mentoring-program/pull/1#discussion_r226664667","pull_request_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/pulls/1","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/pulls/comments/226664667"},"html":{"href":"https://github.com/Vladislav-Sirenko/Mentoring-program/pull/1#discussion_r226664667"},"pull_request":{"href":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/pulls/1","id":223157611,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIzMTU3NjEx","html_url":"https://github.com/Vladislav-Sirenko/Mentoring-program/pull/1","diff_url":"https://github.com/Vladislav-Sirenko/Mentoring-program/pull/1.diff","patch_url":"https://github.com/Vladislav-Sirenko/Mentoring-program/pull/1.patch","issue_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/issues/1","number":1,"state":"open","locked":false,"title":"LinkedList Implemented","user":{"login":"Vladislav-Sirenko","id":33954269,"node_id":"MDQ6VXNlcjMzOTU0MjY5","avatar_url":"https://avatars3.githubusercontent.com/u/33954269?v=4","gravatar_id":"","url":"https://api.github.com/users/Vladislav-Sirenko","html_url":"https://github.com/Vladislav-Sirenko","followers_url":"https://api.github.com/users/Vladislav-Sirenko/followers","following_url":"https://api.github.com/users/Vladislav-Sirenko/following{/other_user}","gists_url":"https://api.github.com/users/Vladislav-Sirenko/gists{/gist_id}","starred_url":"https://api.github.com/users/Vladislav-Sirenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vladislav-Sirenko/subscriptions","organizations_url":"https://api.github.com/users/Vladislav-Sirenko/orgs","repos_url":"https://api.github.com/users/Vladislav-Sirenko/repos","events_url":"https://api.github.com/users/Vladislav-Sirenko/events{/privacy}","received_events_url":"https://api.github.com/users/Vladislav-Sirenko/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-10-16T08:27:40Z","updated_at":"2018-10-19T14:20:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f2683151cdbedd9bfa90bff80611b77cf8022817","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/pulls/1/commits","review_comments_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/pulls/1/comments","review_comment_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/issues/1/comments","statuses_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/statuses/c6e8e61442cc7b57f524ea282bcb4b6691603e66","head":{"label":"Vladislav-Sirenko:linked-list","ref":"linked-list","sha":"c6e8e61442cc7b57f524ea282bcb4b6691603e66","user":{"login":"Vladislav-Sirenko","id":33954269,"node_id":"MDQ6VXNlcjMzOTU0MjY5","avatar_url":"https://avatars3.githubusercontent.com/u/33954269?v=4","gravatar_id":"","url":"https://api.github.com/users/Vladislav-Sirenko","html_url":"https://github.com/Vladislav-Sirenko","followers_url":"https://api.github.com/users/Vladislav-Sirenko/followers","following_url":"https://api.github.com/users/Vladislav-Sirenko/following{/other_user}","gists_url":"https://api.github.com/users/Vladislav-Sirenko/gists{/gist_id}","starred_url":"https://api.github.com/users/Vladislav-Sirenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vladislav-Sirenko/subscriptions","organizations_url":"https://api.github.com/users/Vladislav-Sirenko/orgs","repos_url":"https://api.github.com/users/Vladislav-Sirenko/repos","events_url":"https://api.github.com/users/Vladislav-Sirenko/events{/privacy}","received_events_url":"https://api.github.com/users/Vladislav-Sirenko/received_events","type":"User","site_admin":false},"repo":{"id":153248209,"node_id":"MDEwOlJlcG9zaXRvcnkxNTMyNDgyMDk=","name":"Mentoring-program","full_name":"Vladislav-Sirenko/Mentoring-program","private":false,"owner":{"login":"Vladislav-Sirenko","id":33954269,"node_id":"MDQ6VXNlcjMzOTU0MjY5","avatar_url":"https://avatars3.githubusercontent.com/u/33954269?v=4","gravatar_id":"","url":"https://api.github.com/users/Vladislav-Sirenko","html_url":"https://github.com/Vladislav-Sirenko","followers_url":"https://api.github.com/users/Vladislav-Sirenko/followers","following_url":"https://api.github.com/users/Vladislav-Sirenko/following{/other_user}","gists_url":"https://api.github.com/users/Vladislav-Sirenko/gists{/gist_id}","starred_url":"https://api.github.com/users/Vladislav-Sirenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vladislav-Sirenko/subscriptions","organizations_url":"https://api.github.com/users/Vladislav-Sirenko/orgs","repos_url":"https://api.github.com/users/Vladislav-Sirenko/repos","events_url":"https://api.github.com/users/Vladislav-Sirenko/events{/privacy}","received_events_url":"https://api.github.com/users/Vladislav-Sirenko/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Vladislav-Sirenko/Mentoring-program","description":null,"fork":false,"url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program","forks_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/forks","keys_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/teams","hooks_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/hooks","issue_events_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/issues/events{/number}","events_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/events","assignees_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/assignees{/user}","branches_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/branches{/branch}","tags_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/tags","blobs_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/git/refs{/sha}","trees_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/statuses/{sha}","languages_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/languages","stargazers_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/stargazers","contributors_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/contributors","subscribers_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/subscribers","subscription_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/subscription","commits_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/commits{/sha}","git_commits_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/git/commits{/sha}","comments_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/comments{/number}","issue_comment_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/issues/comments{/number}","contents_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/contents/{+path}","compare_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/merges","archive_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/downloads","issues_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/issues{/number}","pulls_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/pulls{/number}","milestones_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/milestones{/number}","notifications_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/labels{/name}","releases_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/releases{/id}","deployments_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/deployments","created_at":"2018-10-16T08:15:13Z","updated_at":"2018-10-16T08:15:16Z","pushed_at":"2018-10-18T09:58:26Z","git_url":"git://github.com/Vladislav-Sirenko/Mentoring-program.git","ssh_url":"git@github.com:Vladislav-Sirenko/Mentoring-program.git","clone_url":"https://github.com/Vladislav-Sirenko/Mentoring-program.git","svn_url":"https://github.com/Vladislav-Sirenko/Mentoring-program","homepage":null,"size":31,"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,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"Vladislav-Sirenko:master","ref":"master","sha":"68ec6eeeeca8dcabcca14c645015d6d3331f1182","user":{"login":"Vladislav-Sirenko","id":33954269,"node_id":"MDQ6VXNlcjMzOTU0MjY5","avatar_url":"https://avatars3.githubusercontent.com/u/33954269?v=4","gravatar_id":"","url":"https://api.github.com/users/Vladislav-Sirenko","html_url":"https://github.com/Vladislav-Sirenko","followers_url":"https://api.github.com/users/Vladislav-Sirenko/followers","following_url":"https://api.github.com/users/Vladislav-Sirenko/following{/other_user}","gists_url":"https://api.github.com/users/Vladislav-Sirenko/gists{/gist_id}","starred_url":"https://api.github.com/users/Vladislav-Sirenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vladislav-Sirenko/subscriptions","organizations_url":"https://api.github.com/users/Vladislav-Sirenko/orgs","repos_url":"https://api.github.com/users/Vladislav-Sirenko/repos","events_url":"https://api.github.com/users/Vladislav-Sirenko/events{/privacy}","received_events_url":"https://api.github.com/users/Vladislav-Sirenko/received_events","type":"User","site_admin":false},"repo":{"id":153248209,"node_id":"MDEwOlJlcG9zaXRvcnkxNTMyNDgyMDk=","name":"Mentoring-program","full_name":"Vladislav-Sirenko/Mentoring-program","private":false,"owner":{"login":"Vladislav-Sirenko","id":33954269,"node_id":"MDQ6VXNlcjMzOTU0MjY5","avatar_url":"https://avatars3.githubusercontent.com/u/33954269?v=4","gravatar_id":"","url":"https://api.github.com/users/Vladislav-Sirenko","html_url":"https://github.com/Vladislav-Sirenko","followers_url":"https://api.github.com/users/Vladislav-Sirenko/followers","following_url":"https://api.github.com/users/Vladislav-Sirenko/following{/other_user}","gists_url":"https://api.github.com/users/Vladislav-Sirenko/gists{/gist_id}","starred_url":"https://api.github.com/users/Vladislav-Sirenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vladislav-Sirenko/subscriptions","organizations_url":"https://api.github.com/users/Vladislav-Sirenko/orgs","repos_url":"https://api.github.com/users/Vladislav-Sirenko/repos","events_url":"https://api.github.com/users/Vladislav-Sirenko/events{/privacy}","received_events_url":"https://api.github.com/users/Vladislav-Sirenko/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Vladislav-Sirenko/Mentoring-program","description":null,"fork":false,"url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program","forks_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/forks","keys_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/teams","hooks_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/hooks","issue_events_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/issues/events{/number}","events_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/events","assignees_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/assignees{/user}","branches_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/branches{/branch}","tags_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/tags","blobs_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/git/refs{/sha}","trees_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/statuses/{sha}","languages_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/languages","stargazers_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/stargazers","contributors_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/contributors","subscribers_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/subscribers","subscription_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/subscription","commits_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/commits{/sha}","git_commits_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/git/commits{/sha}","comments_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/comments{/number}","issue_comment_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/issues/comments{/number}","contents_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/contents/{+path}","compare_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/merges","archive_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/downloads","issues_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/issues{/number}","pulls_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/pulls{/number}","milestones_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/milestones{/number}","notifications_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/labels{/name}","releases_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/releases{/id}","deployments_url":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/deployments","created_at":"2018-10-16T08:15:13Z","updated_at":"2018-10-16T08:15:16Z","pushed_at":"2018-10-18T09:58:26Z","git_url":"git://github.com/Vladislav-Sirenko/Mentoring-program.git","ssh_url":"git@github.com:Vladislav-Sirenko/Mentoring-program.git","clone_url":"https://github.com/Vladislav-Sirenko/Mentoring-program.git","svn_url":"https://github.com/Vladislav-Sirenko/Mentoring-program","homepage":null,"size":31,"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,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/pulls/1"},"html":{"href":"https://github.com/Vladislav-Sirenko/Mentoring-program/pull/1"},"issue":{"href":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/issues/1"},"comments":{"href":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/Vladislav-Sirenko/Mentoring-program/statuses/c6e8e61442cc7b57f524ea282bcb4b6691603e66"}},"author_association":"OWNER"}}
{"actor":{"display_login":"evgeniy-glushin"}}