{"action":"created","comment":{"url":"https://api.github.com/repos/youreme/algorithm/pulls/comments/62195078","id":62195078,"diff_hunk":"@@ -0,0 +1,48 @@\n+package com.algorithm.question2.mark;\n+\n+public class DeleteMidNode {\n+\t\t\n+\tpublic boolean isNodeInLinkedList(Node head, int data) {\n+\t\tif(head == null) {\n+\t\t\treturn false;\n+\t\t}\n+\t\t\n+\t\tif(head.data == data) {\n+\t\t\treturn true;\n+\t\t}\n+\t\t\n+\t\twhile(head.next != null) {\n+\t\t\thead = head.next;\n+\t\t\tif(head.data == data) {\n+\t\t\t\treturn true;\n+\t\t\t}\n+\t\t}\n+\t\t\n+\t\treturn false;\n+\t}\n+\n+\tpublic Node deleteMidNode(Node head) {\n+\t\tif(head == null) {\n+\t\t\treturn null;\n+\t\t}\n+\t\t\n+\t\tNode first = head;","path":"src/main/java/com/algorithm/question2/mark/DeleteMidNode.java","position":29,"original_position":29,"commit_id":"d8a291b4800e0d37c02123ed75d8b02f37654856","original_commit_id":"d8a291b4800e0d37c02123ed75d8b02f37654856","user":{"login":"youreme","id":5389190,"avatar_url":"https://avatars.githubusercontent.com/u/5389190?v=3","gravatar_id":"","url":"https://api.github.com/users/youreme","html_url":"https://github.com/youreme","followers_url":"https://api.github.com/users/youreme/followers","following_url":"https://api.github.com/users/youreme/following{/other_user}","gists_url":"https://api.github.com/users/youreme/gists{/gist_id}","starred_url":"https://api.github.com/users/youreme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/youreme/subscriptions","organizations_url":"https://api.github.com/users/youreme/orgs","repos_url":"https://api.github.com/users/youreme/repos","events_url":"https://api.github.com/users/youreme/events{/privacy}","received_events_url":"https://api.github.com/users/youreme/received_events","type":"User","site_admin":false},"body":"리스트의 경우 가장 중요한게 head 포인터를 유지하는거라고 하네요.\r\n리스트의 노드 삭제시 중요한 건, 이전 노드의 포인터를 유지하는 거구요~\r\n\r\n잘했어용~","created_at":"2016-05-05T14:32:49Z","updated_at":"2016-05-05T14:32:49Z","html_url":"https://github.com/youreme/algorithm/pull/11#discussion_r62195078","pull_request_url":"https://api.github.com/repos/youreme/algorithm/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/youreme/algorithm/pulls/comments/62195078"},"html":{"href":"https://github.com/youreme/algorithm/pull/11#discussion_r62195078"},"pull_request":{"href":"https://api.github.com/repos/youreme/algorithm/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/youreme/algorithm/pulls/11","id":68973098,"html_url":"https://github.com/youreme/algorithm/pull/11","diff_url":"https://github.com/youreme/algorithm/pull/11.diff","patch_url":"https://github.com/youreme/algorithm/pull/11.patch","issue_url":"https://api.github.com/repos/youreme/algorithm/issues/11","number":11,"state":"open","locked":false,"title":"[question 2] Find Mid Node","user":{"login":"astrod","id":5536380,"avatar_url":"https://avatars.githubusercontent.com/u/5536380?v=3","gravatar_id":"","url":"https://api.github.com/users/astrod","html_url":"https://github.com/astrod","followers_url":"https://api.github.com/users/astrod/followers","following_url":"https://api.github.com/users/astrod/following{/other_user}","gists_url":"https://api.github.com/users/astrod/gists{/gist_id}","starred_url":"https://api.github.com/users/astrod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astrod/subscriptions","organizations_url":"https://api.github.com/users/astrod/orgs","repos_url":"https://api.github.com/users/astrod/repos","events_url":"https://api.github.com/users/astrod/events{/privacy}","received_events_url":"https://api.github.com/users/astrod/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-05T07:04:19Z","updated_at":"2016-05-05T14:32:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fc0aecdb59c982022ad7487283ba220cc18fa098","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/youreme/algorithm/pulls/11/commits","review_comments_url":"https://api.github.com/repos/youreme/algorithm/pulls/11/comments","review_comment_url":"https://api.github.com/repos/youreme/algorithm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/youreme/algorithm/issues/11/comments","statuses_url":"https://api.github.com/repos/youreme/algorithm/statuses/d8a291b4800e0d37c02123ed75d8b02f37654856","head":{"label":"astrod:master","ref":"master","sha":"d8a291b4800e0d37c02123ed75d8b02f37654856","user":{"login":"astrod","id":5536380,"avatar_url":"https://avatars.githubusercontent.com/u/5536380?v=3","gravatar_id":"","url":"https://api.github.com/users/astrod","html_url":"https://github.com/astrod","followers_url":"https://api.github.com/users/astrod/followers","following_url":"https://api.github.com/users/astrod/following{/other_user}","gists_url":"https://api.github.com/users/astrod/gists{/gist_id}","starred_url":"https://api.github.com/users/astrod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astrod/subscriptions","organizations_url":"https://api.github.com/users/astrod/orgs","repos_url":"https://api.github.com/users/astrod/repos","events_url":"https://api.github.com/users/astrod/events{/privacy}","received_events_url":"https://api.github.com/users/astrod/received_events","type":"User","site_admin":false},"repo":{"id":57210221,"name":"algorithm","full_name":"astrod/algorithm","owner":{"login":"astrod","id":5536380,"avatar_url":"https://avatars.githubusercontent.com/u/5536380?v=3","gravatar_id":"","url":"https://api.github.com/users/astrod","html_url":"https://github.com/astrod","followers_url":"https://api.github.com/users/astrod/followers","following_url":"https://api.github.com/users/astrod/following{/other_user}","gists_url":"https://api.github.com/users/astrod/gists{/gist_id}","starred_url":"https://api.github.com/users/astrod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astrod/subscriptions","organizations_url":"https://api.github.com/users/astrod/orgs","repos_url":"https://api.github.com/users/astrod/repos","events_url":"https://api.github.com/users/astrod/events{/privacy}","received_events_url":"https://api.github.com/users/astrod/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/astrod/algorithm","description":"Algorithm Study","fork":true,"url":"https://api.github.com/repos/astrod/algorithm","forks_url":"https://api.github.com/repos/astrod/algorithm/forks","keys_url":"https://api.github.com/repos/astrod/algorithm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/astrod/algorithm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/astrod/algorithm/teams","hooks_url":"https://api.github.com/repos/astrod/algorithm/hooks","issue_events_url":"https://api.github.com/repos/astrod/algorithm/issues/events{/number}","events_url":"https://api.github.com/repos/astrod/algorithm/events","assignees_url":"https://api.github.com/repos/astrod/algorithm/assignees{/user}","branches_url":"https://api.github.com/repos/astrod/algorithm/branches{/branch}","tags_url":"https://api.github.com/repos/astrod/algorithm/tags","blobs_url":"https://api.github.com/repos/astrod/algorithm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/astrod/algorithm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/astrod/algorithm/git/refs{/sha}","trees_url":"https://api.github.com/repos/astrod/algorithm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/astrod/algorithm/statuses/{sha}","languages_url":"https://api.github.com/repos/astrod/algorithm/languages","stargazers_url":"https://api.github.com/repos/astrod/algorithm/stargazers","contributors_url":"https://api.github.com/repos/astrod/algorithm/contributors","subscribers_url":"https://api.github.com/repos/astrod/algorithm/subscribers","subscription_url":"https://api.github.com/repos/astrod/algorithm/subscription","commits_url":"https://api.github.com/repos/astrod/algorithm/commits{/sha}","git_commits_url":"https://api.github.com/repos/astrod/algorithm/git/commits{/sha}","comments_url":"https://api.github.com/repos/astrod/algorithm/comments{/number}","issue_comment_url":"https://api.github.com/repos/astrod/algorithm/issues/comments{/number}","contents_url":"https://api.github.com/repos/astrod/algorithm/contents/{+path}","compare_url":"https://api.github.com/repos/astrod/algorithm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/astrod/algorithm/merges","archive_url":"https://api.github.com/repos/astrod/algorithm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/astrod/algorithm/downloads","issues_url":"https://api.github.com/repos/astrod/algorithm/issues{/number}","pulls_url":"https://api.github.com/repos/astrod/algorithm/pulls{/number}","milestones_url":"https://api.github.com/repos/astrod/algorithm/milestones{/number}","notifications_url":"https://api.github.com/repos/astrod/algorithm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/astrod/algorithm/labels{/name}","releases_url":"https://api.github.com/repos/astrod/algorithm/releases{/id}","deployments_url":"https://api.github.com/repos/astrod/algorithm/deployments","created_at":"2016-04-27T12:04:27Z","updated_at":"2016-04-27T15:26:30Z","pushed_at":"2016-05-05T07:02:53Z","git_url":"git://github.com/astrod/algorithm.git","ssh_url":"git@github.com:astrod/algorithm.git","clone_url":"https://github.com/astrod/algorithm.git","svn_url":"https://github.com/astrod/algorithm","homepage":null,"size":23,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"youreme:master","ref":"master","sha":"88ebc02e51ef814da6da0be63b505c22c0a4c2b6","user":{"login":"youreme","id":5389190,"avatar_url":"https://avatars.githubusercontent.com/u/5389190?v=3","gravatar_id":"","url":"https://api.github.com/users/youreme","html_url":"https://github.com/youreme","followers_url":"https://api.github.com/users/youreme/followers","following_url":"https://api.github.com/users/youreme/following{/other_user}","gists_url":"https://api.github.com/users/youreme/gists{/gist_id}","starred_url":"https://api.github.com/users/youreme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/youreme/subscriptions","organizations_url":"https://api.github.com/users/youreme/orgs","repos_url":"https://api.github.com/users/youreme/repos","events_url":"https://api.github.com/users/youreme/events{/privacy}","received_events_url":"https://api.github.com/users/youreme/received_events","type":"User","site_admin":false},"repo":{"id":57204584,"name":"algorithm","full_name":"youreme/algorithm","owner":{"login":"youreme","id":5389190,"avatar_url":"https://avatars.githubusercontent.com/u/5389190?v=3","gravatar_id":"","url":"https://api.github.com/users/youreme","html_url":"https://github.com/youreme","followers_url":"https://api.github.com/users/youreme/followers","following_url":"https://api.github.com/users/youreme/following{/other_user}","gists_url":"https://api.github.com/users/youreme/gists{/gist_id}","starred_url":"https://api.github.com/users/youreme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/youreme/subscriptions","organizations_url":"https://api.github.com/users/youreme/orgs","repos_url":"https://api.github.com/users/youreme/repos","events_url":"https://api.github.com/users/youreme/events{/privacy}","received_events_url":"https://api.github.com/users/youreme/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/youreme/algorithm","description":"Algorithm Study","fork":false,"url":"https://api.github.com/repos/youreme/algorithm","forks_url":"https://api.github.com/repos/youreme/algorithm/forks","keys_url":"https://api.github.com/repos/youreme/algorithm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/youreme/algorithm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/youreme/algorithm/teams","hooks_url":"https://api.github.com/repos/youreme/algorithm/hooks","issue_events_url":"https://api.github.com/repos/youreme/algorithm/issues/events{/number}","events_url":"https://api.github.com/repos/youreme/algorithm/events","assignees_url":"https://api.github.com/repos/youreme/algorithm/assignees{/user}","branches_url":"https://api.github.com/repos/youreme/algorithm/branches{/branch}","tags_url":"https://api.github.com/repos/youreme/algorithm/tags","blobs_url":"https://api.github.com/repos/youreme/algorithm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/youreme/algorithm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/youreme/algorithm/git/refs{/sha}","trees_url":"https://api.github.com/repos/youreme/algorithm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/youreme/algorithm/statuses/{sha}","languages_url":"https://api.github.com/repos/youreme/algorithm/languages","stargazers_url":"https://api.github.com/repos/youreme/algorithm/stargazers","contributors_url":"https://api.github.com/repos/youreme/algorithm/contributors","subscribers_url":"https://api.github.com/repos/youreme/algorithm/subscribers","subscription_url":"https://api.github.com/repos/youreme/algorithm/subscription","commits_url":"https://api.github.com/repos/youreme/algorithm/commits{/sha}","git_commits_url":"https://api.github.com/repos/youreme/algorithm/git/commits{/sha}","comments_url":"https://api.github.com/repos/youreme/algorithm/comments{/number}","issue_comment_url":"https://api.github.com/repos/youreme/algorithm/issues/comments{/number}","contents_url":"https://api.github.com/repos/youreme/algorithm/contents/{+path}","compare_url":"https://api.github.com/repos/youreme/algorithm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/youreme/algorithm/merges","archive_url":"https://api.github.com/repos/youreme/algorithm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/youreme/algorithm/downloads","issues_url":"https://api.github.com/repos/youreme/algorithm/issues{/number}","pulls_url":"https://api.github.com/repos/youreme/algorithm/pulls{/number}","milestones_url":"https://api.github.com/repos/youreme/algorithm/milestones{/number}","notifications_url":"https://api.github.com/repos/youreme/algorithm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/youreme/algorithm/labels{/name}","releases_url":"https://api.github.com/repos/youreme/algorithm/releases{/id}","deployments_url":"https://api.github.com/repos/youreme/algorithm/deployments","created_at":"2016-04-27T10:20:38Z","updated_at":"2016-05-01T15:28:28Z","pushed_at":"2016-05-05T14:32:00Z","git_url":"git://github.com/youreme/algorithm.git","ssh_url":"git@github.com:youreme/algorithm.git","clone_url":"https://github.com/youreme/algorithm.git","svn_url":"https://github.com/youreme/algorithm","homepage":null,"size":33,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":4,"forks":4,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/youreme/algorithm/pulls/11"},"html":{"href":"https://github.com/youreme/algorithm/pull/11"},"issue":{"href":"https://api.github.com/repos/youreme/algorithm/issues/11"},"comments":{"href":"https://api.github.com/repos/youreme/algorithm/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/youreme/algorithm/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/youreme/algorithm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/youreme/algorithm/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/youreme/algorithm/statuses/d8a291b4800e0d37c02123ed75d8b02f37654856"}}}}