{"action":"created","comment":{"url":"https://api.github.com/repos/LambdaSchool/Data-Structures/pulls/comments/224246170","pull_request_review_id":163567172,"id":224246170,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNDI0NjE3MA==","diff_hunk":"@@ -23,13 +23,31 @@ def __init__(self):\n     self.tail = None\n \n   def add_to_tail(self, value):\n-    pass\n+    if self.tail is None:\n+      first_node = Node(value)\n+      self.head = first_node\n+      self.tail = first_node\n+    else:\n+      newest_node = Node(value)\n+      self.tail.next_node = newest_node\n+      self.tail = newest_node\n+      self.tail.next_node = None","path":"linked_list/linked_list.py","position":13,"original_position":13,"commit_id":"eb08eb64adc50846f53d7fd2cbf2838dbe968812","original_commit_id":"eb08eb64adc50846f53d7fd2cbf2838dbe968812","user":{"login":"honda0306","id":23174373,"node_id":"MDQ6VXNlcjIzMTc0Mzcz","avatar_url":"https://avatars2.githubusercontent.com/u/23174373?v=4","gravatar_id":"","url":"https://api.github.com/users/honda0306","html_url":"https://github.com/honda0306","followers_url":"https://api.github.com/users/honda0306/followers","following_url":"https://api.github.com/users/honda0306/following{/other_user}","gists_url":"https://api.github.com/users/honda0306/gists{/gist_id}","starred_url":"https://api.github.com/users/honda0306/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/honda0306/subscriptions","organizations_url":"https://api.github.com/users/honda0306/orgs","repos_url":"https://api.github.com/users/honda0306/repos","events_url":"https://api.github.com/users/honda0306/events{/privacy}","received_events_url":"https://api.github.com/users/honda0306/received_events","type":"User","site_admin":false},"body":"Great implementation here, seems to work alright. When you use `newest_node`, are you referring to the node after the original head?","created_at":"2018-10-10T21:22:18Z","updated_at":"2018-10-10T21:22:18Z","html_url":"https://github.com/LambdaSchool/Data-Structures/pull/198#discussion_r224246170","pull_request_url":"https://api.github.com/repos/LambdaSchool/Data-Structures/pulls/198","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/LambdaSchool/Data-Structures/pulls/comments/224246170"},"html":{"href":"https://github.com/LambdaSchool/Data-Structures/pull/198#discussion_r224246170"},"pull_request":{"href":"https://api.github.com/repos/LambdaSchool/Data-Structures/pulls/198"}}},"pull_request":{"url":"https://api.github.com/repos/LambdaSchool/Data-Structures/pulls/198","id":221884650,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIxODg0NjUw","html_url":"https://github.com/LambdaSchool/Data-Structures/pull/198","diff_url":"https://github.com/LambdaSchool/Data-Structures/pull/198.diff","patch_url":"https://github.com/LambdaSchool/Data-Structures/pull/198.patch","issue_url":"https://api.github.com/repos/LambdaSchool/Data-Structures/issues/198","number":198,"state":"open","locked":false,"title":"Charlie Winslow","user":{"login":"cwinslow22","id":13722514,"node_id":"MDQ6VXNlcjEzNzIyNTE0","avatar_url":"https://avatars2.githubusercontent.com/u/13722514?v=4","gravatar_id":"","url":"https://api.github.com/users/cwinslow22","html_url":"https://github.com/cwinslow22","followers_url":"https://api.github.com/users/cwinslow22/followers","following_url":"https://api.github.com/users/cwinslow22/following{/other_user}","gists_url":"https://api.github.com/users/cwinslow22/gists{/gist_id}","starred_url":"https://api.github.com/users/cwinslow22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cwinslow22/subscriptions","organizations_url":"https://api.github.com/users/cwinslow22/orgs","repos_url":"https://api.github.com/users/cwinslow22/repos","events_url":"https://api.github.com/users/cwinslow22/events{/privacy}","received_events_url":"https://api.github.com/users/cwinslow22/received_events","type":"User","site_admin":false},"body":"**Linked Lists**\r\n\r\n- Should have the methods: add_to_tail, remove_head,contains, and get_max.\r\n\r\n  - [x] add_to_tail replaces the tail with a new value that is passed in.\r\n\r\n  - [x] remove_head removes and returns the head node.\r\n\r\n  - [x] contains should search through the linked list and return true if a matching value is found.\r\n\r\n  - [ ] get_max returns the maximum value in the linked list.\r\n\r\n  - [ ] The head property is a reference to the first node and the tail property is a reference to the last node. Build your nodes with objects.\r\n\r\n**Queues**\r\n\r\n- Should have the methods: enqueue, dequeue, and len.\r\n  \r\n  - [ ] enqueue should add an item to the back of the queue.\r\n\r\n  - [ ] dequeue should remove and return an item from the front of the queue.\r\n\r\n  - [ ] len returns the number of items in the queue.\r\n\r\n**Binary Search Trees**\r\n\r\n- Should have the methods insert, contains, get_max.\r\n\r\n  - [ ] insert adds the input value to the binary search tree, adhering to the rules of the ordering of elements in a binary search tree.\r\n\r\n  - [ ] contains searches the binary search tree for the input value, returning a boolean indicating whether the value exists in the tree or not.\r\n\r\n  - [ ] get_max returns the maximum value in the binary search tree.","created_at":"2018-10-10T18:13:52Z","updated_at":"2018-10-10T21:22:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"be1dfe5497073f9c3dfc99989a756df74705c311","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/LambdaSchool/Data-Structures/pulls/198/commits","review_comments_url":"https://api.github.com/repos/LambdaSchool/Data-Structures/pulls/198/comments","review_comment_url":"https://api.github.com/repos/LambdaSchool/Data-Structures/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LambdaSchool/Data-Structures/issues/198/comments","statuses_url":"https://api.github.com/repos/LambdaSchool/Data-Structures/statuses/eb08eb64adc50846f53d7fd2cbf2838dbe968812","head":{"label":"cwinslow22:master","ref":"master","sha":"eb08eb64adc50846f53d7fd2cbf2838dbe968812","user":{"login":"cwinslow22","id":13722514,"node_id":"MDQ6VXNlcjEzNzIyNTE0","avatar_url":"https://avatars2.githubusercontent.com/u/13722514?v=4","gravatar_id":"","url":"https://api.github.com/users/cwinslow22","html_url":"https://github.com/cwinslow22","followers_url":"https://api.github.com/users/cwinslow22/followers","following_url":"https://api.github.com/users/cwinslow22/following{/other_user}","gists_url":"https://api.github.com/users/cwinslow22/gists{/gist_id}","starred_url":"https://api.github.com/users/cwinslow22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cwinslow22/subscriptions","organizations_url":"https://api.github.com/users/cwinslow22/orgs","repos_url":"https://api.github.com/users/cwinslow22/repos","events_url":"https://api.github.com/users/cwinslow22/events{/privacy}","received_events_url":"https://api.github.com/users/cwinslow22/received_events","type":"User","site_admin":false},"repo":{"id":152465690,"node_id":"MDEwOlJlcG9zaXRvcnkxNTI0NjU2OTA=","name":"Data-Structures","full_name":"cwinslow22/Data-Structures","private":false,"owner":{"login":"cwinslow22","id":13722514,"node_id":"MDQ6VXNlcjEzNzIyNTE0","avatar_url":"https://avatars2.githubusercontent.com/u/13722514?v=4","gravatar_id":"","url":"https://api.github.com/users/cwinslow22","html_url":"https://github.com/cwinslow22","followers_url":"https://api.github.com/users/cwinslow22/followers","following_url":"https://api.github.com/users/cwinslow22/following{/other_user}","gists_url":"https://api.github.com/users/cwinslow22/gists{/gist_id}","starred_url":"https://api.github.com/users/cwinslow22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cwinslow22/subscriptions","organizations_url":"https://api.github.com/users/cwinslow22/orgs","repos_url":"https://api.github.com/users/cwinslow22/repos","events_url":"https://api.github.com/users/cwinslow22/events{/privacy}","received_events_url":"https://api.github.com/users/cwinslow22/received_events","type":"User","site_admin":false},"html_url":"https://github.com/cwinslow22/Data-Structures","description":null,"fork":true,"url":"https://api.github.com/repos/cwinslow22/Data-Structures","forks_url":"https://api.github.com/repos/cwinslow22/Data-Structures/forks","keys_url":"https://api.github.com/repos/cwinslow22/Data-Structures/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cwinslow22/Data-Structures/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cwinslow22/Data-Structures/teams","hooks_url":"https://api.github.com/repos/cwinslow22/Data-Structures/hooks","issue_events_url":"https://api.github.com/repos/cwinslow22/Data-Structures/issues/events{/number}","events_url":"https://api.github.com/repos/cwinslow22/Data-Structures/events","assignees_url":"https://api.github.com/repos/cwinslow22/Data-Structures/assignees{/user}","branches_url":"https://api.github.com/repos/cwinslow22/Data-Structures/branches{/branch}","tags_url":"https://api.github.com/repos/cwinslow22/Data-Structures/tags","blobs_url":"https://api.github.com/repos/cwinslow22/Data-Structures/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cwinslow22/Data-Structures/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cwinslow22/Data-Structures/git/refs{/sha}","trees_url":"https://api.github.com/repos/cwinslow22/Data-Structures/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cwinslow22/Data-Structures/statuses/{sha}","languages_url":"https://api.github.com/repos/cwinslow22/Data-Structures/languages","stargazers_url":"https://api.github.com/repos/cwinslow22/Data-Structures/stargazers","contributors_url":"https://api.github.com/repos/cwinslow22/Data-Structures/contributors","subscribers_url":"https://api.github.com/repos/cwinslow22/Data-Structures/subscribers","subscription_url":"https://api.github.com/repos/cwinslow22/Data-Structures/subscription","commits_url":"https://api.github.com/repos/cwinslow22/Data-Structures/commits{/sha}","git_commits_url":"https://api.github.com/repos/cwinslow22/Data-Structures/git/commits{/sha}","comments_url":"https://api.github.com/repos/cwinslow22/Data-Structures/comments{/number}","issue_comment_url":"https://api.github.com/repos/cwinslow22/Data-Structures/issues/comments{/number}","contents_url":"https://api.github.com/repos/cwinslow22/Data-Structures/contents/{+path}","compare_url":"https://api.github.com/repos/cwinslow22/Data-Structures/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cwinslow22/Data-Structures/merges","archive_url":"https://api.github.com/repos/cwinslow22/Data-Structures/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cwinslow22/Data-Structures/downloads","issues_url":"https://api.github.com/repos/cwinslow22/Data-Structures/issues{/number}","pulls_url":"https://api.github.com/repos/cwinslow22/Data-Structures/pulls{/number}","milestones_url":"https://api.github.com/repos/cwinslow22/Data-Structures/milestones{/number}","notifications_url":"https://api.github.com/repos/cwinslow22/Data-Structures/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cwinslow22/Data-Structures/labels{/name}","releases_url":"https://api.github.com/repos/cwinslow22/Data-Structures/releases{/id}","deployments_url":"https://api.github.com/repos/cwinslow22/Data-Structures/deployments","created_at":"2018-10-10T17:49:11Z","updated_at":"2018-10-10T20:58:11Z","pushed_at":"2018-10-10T20:58:10Z","git_url":"git://github.com/cwinslow22/Data-Structures.git","ssh_url":"git@github.com:cwinslow22/Data-Structures.git","clone_url":"https://github.com/cwinslow22/Data-Structures.git","svn_url":"https://github.com/cwinslow22/Data-Structures","homepage":null,"size":246,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"LambdaSchool:master","ref":"master","sha":"ccd291e978e1e1874408dba16138fbfaf7be3294","user":{"login":"LambdaSchool","id":24780114,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0NzgwMTE0","avatar_url":"https://avatars1.githubusercontent.com/u/24780114?v=4","gravatar_id":"","url":"https://api.github.com/users/LambdaSchool","html_url":"https://github.com/LambdaSchool","followers_url":"https://api.github.com/users/LambdaSchool/followers","following_url":"https://api.github.com/users/LambdaSchool/following{/other_user}","gists_url":"https://api.github.com/users/LambdaSchool/gists{/gist_id}","starred_url":"https://api.github.com/users/LambdaSchool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LambdaSchool/subscriptions","organizations_url":"https://api.github.com/users/LambdaSchool/orgs","repos_url":"https://api.github.com/users/LambdaSchool/repos","events_url":"https://api.github.com/users/LambdaSchool/events{/privacy}","received_events_url":"https://api.github.com/users/LambdaSchool/received_events","type":"Organization","site_admin":false},"repo":{"id":132027752,"node_id":"MDEwOlJlcG9zaXRvcnkxMzIwMjc3NTI=","name":"Data-Structures","full_name":"LambdaSchool/Data-Structures","private":false,"owner":{"login":"LambdaSchool","id":24780114,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0NzgwMTE0","avatar_url":"https://avatars1.githubusercontent.com/u/24780114?v=4","gravatar_id":"","url":"https://api.github.com/users/LambdaSchool","html_url":"https://github.com/LambdaSchool","followers_url":"https://api.github.com/users/LambdaSchool/followers","following_url":"https://api.github.com/users/LambdaSchool/following{/other_user}","gists_url":"https://api.github.com/users/LambdaSchool/gists{/gist_id}","starred_url":"https://api.github.com/users/LambdaSchool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LambdaSchool/subscriptions","organizations_url":"https://api.github.com/users/LambdaSchool/orgs","repos_url":"https://api.github.com/users/LambdaSchool/repos","events_url":"https://api.github.com/users/LambdaSchool/events{/privacy}","received_events_url":"https://api.github.com/users/LambdaSchool/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/LambdaSchool/Data-Structures","description":null,"fork":false,"url":"https://api.github.com/repos/LambdaSchool/Data-Structures","forks_url":"https://api.github.com/repos/LambdaSchool/Data-Structures/forks","keys_url":"https://api.github.com/repos/LambdaSchool/Data-Structures/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LambdaSchool/Data-Structures/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LambdaSchool/Data-Structures/teams","hooks_url":"https://api.github.com/repos/LambdaSchool/Data-Structures/hooks","issue_events_url":"https://api.github.com/repos/LambdaSchool/Data-Structures/issues/events{/number}","events_url":"https://api.github.com/repos/LambdaSchool/Data-Structures/events","assignees_url":"https://api.github.com/repos/LambdaSchool/Data-Structures/assignees{/user}","branches_url":"https://api.github.com/repos/LambdaSchool/Data-Structures/branches{/branch}","tags_url":"https://api.github.com/repos/LambdaSchool/Data-Structures/tags","blobs_url":"https://api.github.com/repos/LambdaSchool/Data-Structures/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LambdaSchool/Data-Structures/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LambdaSchool/Data-Structures/git/refs{/sha}","trees_url":"https://api.github.com/repos/LambdaSchool/Data-Structures/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LambdaSchool/Data-Structures/statuses/{sha}","languages_url":"https://api.github.com/repos/LambdaSchool/Data-Structures/languages","stargazers_url":"https://api.github.com/repos/LambdaSchool/Data-Structures/stargazers","contributors_url":"https://api.github.com/repos/LambdaSchool/Data-Structures/contributors","subscribers_url":"https://api.github.com/repos/LambdaSchool/Data-Structures/subscribers","subscription_url":"https://api.github.com/repos/LambdaSchool/Data-Structures/subscription","commits_url":"https://api.github.com/repos/LambdaSchool/Data-Structures/commits{/sha}","git_commits_url":"https://api.github.com/repos/LambdaSchool/Data-Structures/git/commits{/sha}","comments_url":"https://api.github.com/repos/LambdaSchool/Data-Structures/comments{/number}","issue_comment_url":"https://api.github.com/repos/LambdaSchool/Data-Structures/issues/comments{/number}","contents_url":"https://api.github.com/repos/LambdaSchool/Data-Structures/contents/{+path}","compare_url":"https://api.github.com/repos/LambdaSchool/Data-Structures/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LambdaSchool/Data-Structures/merges","archive_url":"https://api.github.com/repos/LambdaSchool/Data-Structures/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LambdaSchool/Data-Structures/downloads","issues_url":"https://api.github.com/repos/LambdaSchool/Data-Structures/issues{/number}","pulls_url":"https://api.github.com/repos/LambdaSchool/Data-Structures/pulls{/number}","milestones_url":"https://api.github.com/repos/LambdaSchool/Data-Structures/milestones{/number}","notifications_url":"https://api.github.com/repos/LambdaSchool/Data-Structures/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LambdaSchool/Data-Structures/labels{/name}","releases_url":"https://api.github.com/repos/LambdaSchool/Data-Structures/releases{/id}","deployments_url":"https://api.github.com/repos/LambdaSchool/Data-Structures/deployments","created_at":"2018-05-03T17:22:09Z","updated_at":"2018-10-04T15:33:37Z","pushed_at":"2018-10-10T21:22:07Z","git_url":"git://github.com/LambdaSchool/Data-Structures.git","ssh_url":"git@github.com:LambdaSchool/Data-Structures.git","clone_url":"https://github.com/LambdaSchool/Data-Structures.git","svn_url":"https://github.com/LambdaSchool/Data-Structures","homepage":null,"size":245,"stargazers_count":7,"watchers_count":7,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":275,"mirror_url":null,"archived":false,"open_issues_count":215,"license":null,"forks":275,"open_issues":215,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/LambdaSchool/Data-Structures/pulls/198"},"html":{"href":"https://github.com/LambdaSchool/Data-Structures/pull/198"},"issue":{"href":"https://api.github.com/repos/LambdaSchool/Data-Structures/issues/198"},"comments":{"href":"https://api.github.com/repos/LambdaSchool/Data-Structures/issues/198/comments"},"review_comments":{"href":"https://api.github.com/repos/LambdaSchool/Data-Structures/pulls/198/comments"},"review_comment":{"href":"https://api.github.com/repos/LambdaSchool/Data-Structures/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LambdaSchool/Data-Structures/pulls/198/commits"},"statuses":{"href":"https://api.github.com/repos/LambdaSchool/Data-Structures/statuses/eb08eb64adc50846f53d7fd2cbf2838dbe968812"}},"author_association":"NONE"}}
{"actor":{"display_login":"honda0306"}}