{"action":"created","comment":{"url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/pulls/comments/194606559","pull_request_review_id":127809449,"id":194606559,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NDYwNjU1OQ==","diff_hunk":"@@ -0,0 +1,28 @@\n+package Assignment2;\r\n+\r\n+public class Q2 {\r\n+\t/**\r\n+\t * Returns reference to lowest common ancestor of p and q vals. This method\r\n+\t * assumes that there are no duplicates in the tree also assumes that both p and\r\n+\t * q are always present in the tree. if either p or q matches with current root\r\n+\t * val, then we return that this is our current LCA other wise we try to search\r\n+\t * for it in left subtree and right subtree if any of them return non-null\r\n+\t * answer and other returns null then current root is LCA.\r\n+\t * \r\n+\t * @param root\r\n+\t * @param p\r\n+\t *            first value that we need its common ancestor.\r\n+\t * @param q\r\n+\t *            second value that we need its common ancestor.\r\n+\t * @return\r\n+\t */\r\n+\tpublic static TreeNode commonAnscestor(TreeNode root, int p, int q) {\r","path":"mernarezk/assignment2/Q2.java","position":19,"original_position":19,"commit_id":"0d411c61b2d51904a859433c360c73cce590bec5","original_commit_id":"0d411c61b2d51904a859433c360c73cce590bec5","user":{"login":"mernarezk","id":5147062,"node_id":"MDQ6VXNlcjUxNDcwNjI=","avatar_url":"https://avatars3.githubusercontent.com/u/5147062?v=4","gravatar_id":"","url":"https://api.github.com/users/mernarezk","html_url":"https://github.com/mernarezk","followers_url":"https://api.github.com/users/mernarezk/followers","following_url":"https://api.github.com/users/mernarezk/following{/other_user}","gists_url":"https://api.github.com/users/mernarezk/gists{/gist_id}","starred_url":"https://api.github.com/users/mernarezk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mernarezk/subscriptions","organizations_url":"https://api.github.com/users/mernarezk/orgs","repos_url":"https://api.github.com/users/mernarezk/repos","events_url":"https://api.github.com/users/mernarezk/events{/privacy}","received_events_url":"https://api.github.com/users/mernarezk/received_events","type":"User","site_admin":false},"body":"Done","created_at":"2018-06-12T03:32:11Z","updated_at":"2018-06-12T03:32:11Z","html_url":"https://github.com/flerdacodeu/CodeU-2018-Group11/pull/8#discussion_r194606559","pull_request_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/pulls/8","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/pulls/comments/194606559"},"html":{"href":"https://github.com/flerdacodeu/CodeU-2018-Group11/pull/8#discussion_r194606559"},"pull_request":{"href":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/pulls/8"}},"in_reply_to_id":194004772},"pull_request":{"url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/pulls/8","id":192687371,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkyNjg3Mzcx","html_url":"https://github.com/flerdacodeu/CodeU-2018-Group11/pull/8","diff_url":"https://github.com/flerdacodeu/CodeU-2018-Group11/pull/8.diff","patch_url":"https://github.com/flerdacodeu/CodeU-2018-Group11/pull/8.patch","issue_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/issues/8","number":8,"state":"open","locked":false,"title":"Add Ancestors of BT Node and LCA Solutions.","user":{"login":"mernarezk","id":5147062,"node_id":"MDQ6VXNlcjUxNDcwNjI=","avatar_url":"https://avatars3.githubusercontent.com/u/5147062?v=4","gravatar_id":"","url":"https://api.github.com/users/mernarezk","html_url":"https://github.com/mernarezk","followers_url":"https://api.github.com/users/mernarezk/followers","following_url":"https://api.github.com/users/mernarezk/following{/other_user}","gists_url":"https://api.github.com/users/mernarezk/gists{/gist_id}","starred_url":"https://api.github.com/users/mernarezk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mernarezk/subscriptions","organizations_url":"https://api.github.com/users/mernarezk/orgs","repos_url":"https://api.github.com/users/mernarezk/repos","events_url":"https://api.github.com/users/mernarezk/events{/privacy}","received_events_url":"https://api.github.com/users/mernarezk/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-06-05T12:19:46Z","updated_at":"2018-06-12T03:32:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"21624535e9f8c09178891d0d15d5d60058e77a9f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/pulls/8/commits","review_comments_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/pulls/8/comments","review_comment_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/pulls/comments{/number}","comments_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/issues/8/comments","statuses_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/statuses/0d411c61b2d51904a859433c360c73cce590bec5","head":{"label":"flerdacodeu:mernarezk-assignment2","ref":"mernarezk-assignment2","sha":"0d411c61b2d51904a859433c360c73cce590bec5","user":{"login":"flerdacodeu","id":28591648,"node_id":"MDQ6VXNlcjI4NTkxNjQ4","avatar_url":"https://avatars2.githubusercontent.com/u/28591648?v=4","gravatar_id":"","url":"https://api.github.com/users/flerdacodeu","html_url":"https://github.com/flerdacodeu","followers_url":"https://api.github.com/users/flerdacodeu/followers","following_url":"https://api.github.com/users/flerdacodeu/following{/other_user}","gists_url":"https://api.github.com/users/flerdacodeu/gists{/gist_id}","starred_url":"https://api.github.com/users/flerdacodeu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flerdacodeu/subscriptions","organizations_url":"https://api.github.com/users/flerdacodeu/orgs","repos_url":"https://api.github.com/users/flerdacodeu/repos","events_url":"https://api.github.com/users/flerdacodeu/events{/privacy}","received_events_url":"https://api.github.com/users/flerdacodeu/received_events","type":"User","site_admin":false},"repo":{"id":133326689,"node_id":"MDEwOlJlcG9zaXRvcnkxMzMzMjY2ODk=","name":"CodeU-2018-Group11","full_name":"flerdacodeu/CodeU-2018-Group11","owner":{"login":"flerdacodeu","id":28591648,"node_id":"MDQ6VXNlcjI4NTkxNjQ4","avatar_url":"https://avatars2.githubusercontent.com/u/28591648?v=4","gravatar_id":"","url":"https://api.github.com/users/flerdacodeu","html_url":"https://github.com/flerdacodeu","followers_url":"https://api.github.com/users/flerdacodeu/followers","following_url":"https://api.github.com/users/flerdacodeu/following{/other_user}","gists_url":"https://api.github.com/users/flerdacodeu/gists{/gist_id}","starred_url":"https://api.github.com/users/flerdacodeu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flerdacodeu/subscriptions","organizations_url":"https://api.github.com/users/flerdacodeu/orgs","repos_url":"https://api.github.com/users/flerdacodeu/repos","events_url":"https://api.github.com/users/flerdacodeu/events{/privacy}","received_events_url":"https://api.github.com/users/flerdacodeu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/flerdacodeu/CodeU-2018-Group11","description":null,"fork":false,"url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11","forks_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/forks","keys_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/keys{/key_id}","collaborators_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/teams","hooks_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/hooks","issue_events_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/issues/events{/number}","events_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/events","assignees_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/assignees{/user}","branches_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/branches{/branch}","tags_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/tags","blobs_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/git/refs{/sha}","trees_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/git/trees{/sha}","statuses_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/statuses/{sha}","languages_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/languages","stargazers_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/stargazers","contributors_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/contributors","subscribers_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/subscribers","subscription_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/subscription","commits_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/commits{/sha}","git_commits_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/git/commits{/sha}","comments_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/comments{/number}","issue_comment_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/issues/comments{/number}","contents_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/contents/{+path}","compare_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/compare/{base}...{head}","merges_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/merges","archive_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/downloads","issues_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/issues{/number}","pulls_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/pulls{/number}","milestones_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/milestones{/number}","notifications_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/labels{/name}","releases_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/releases{/id}","deployments_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/deployments","created_at":"2018-05-14T08:07:28Z","updated_at":"2018-06-11T15:32:41Z","pushed_at":"2018-06-11T15:32:38Z","git_url":"git://github.com/flerdacodeu/CodeU-2018-Group11.git","ssh_url":"git@github.com:flerdacodeu/CodeU-2018-Group11.git","clone_url":"https://github.com/flerdacodeu/CodeU-2018-Group11.git","svn_url":"https://github.com/flerdacodeu/CodeU-2018-Group11","homepage":null,"size":76,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":1,"open_issues":3,"watchers":3,"default_branch":"master"}},"base":{"label":"flerdacodeu:master","ref":"master","sha":"2feef5156fa18f02b0c5a2c8822e913907c050b1","user":{"login":"flerdacodeu","id":28591648,"node_id":"MDQ6VXNlcjI4NTkxNjQ4","avatar_url":"https://avatars2.githubusercontent.com/u/28591648?v=4","gravatar_id":"","url":"https://api.github.com/users/flerdacodeu","html_url":"https://github.com/flerdacodeu","followers_url":"https://api.github.com/users/flerdacodeu/followers","following_url":"https://api.github.com/users/flerdacodeu/following{/other_user}","gists_url":"https://api.github.com/users/flerdacodeu/gists{/gist_id}","starred_url":"https://api.github.com/users/flerdacodeu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flerdacodeu/subscriptions","organizations_url":"https://api.github.com/users/flerdacodeu/orgs","repos_url":"https://api.github.com/users/flerdacodeu/repos","events_url":"https://api.github.com/users/flerdacodeu/events{/privacy}","received_events_url":"https://api.github.com/users/flerdacodeu/received_events","type":"User","site_admin":false},"repo":{"id":133326689,"node_id":"MDEwOlJlcG9zaXRvcnkxMzMzMjY2ODk=","name":"CodeU-2018-Group11","full_name":"flerdacodeu/CodeU-2018-Group11","owner":{"login":"flerdacodeu","id":28591648,"node_id":"MDQ6VXNlcjI4NTkxNjQ4","avatar_url":"https://avatars2.githubusercontent.com/u/28591648?v=4","gravatar_id":"","url":"https://api.github.com/users/flerdacodeu","html_url":"https://github.com/flerdacodeu","followers_url":"https://api.github.com/users/flerdacodeu/followers","following_url":"https://api.github.com/users/flerdacodeu/following{/other_user}","gists_url":"https://api.github.com/users/flerdacodeu/gists{/gist_id}","starred_url":"https://api.github.com/users/flerdacodeu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flerdacodeu/subscriptions","organizations_url":"https://api.github.com/users/flerdacodeu/orgs","repos_url":"https://api.github.com/users/flerdacodeu/repos","events_url":"https://api.github.com/users/flerdacodeu/events{/privacy}","received_events_url":"https://api.github.com/users/flerdacodeu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/flerdacodeu/CodeU-2018-Group11","description":null,"fork":false,"url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11","forks_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/forks","keys_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/keys{/key_id}","collaborators_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/teams","hooks_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/hooks","issue_events_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/issues/events{/number}","events_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/events","assignees_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/assignees{/user}","branches_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/branches{/branch}","tags_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/tags","blobs_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/git/refs{/sha}","trees_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/git/trees{/sha}","statuses_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/statuses/{sha}","languages_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/languages","stargazers_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/stargazers","contributors_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/contributors","subscribers_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/subscribers","subscription_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/subscription","commits_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/commits{/sha}","git_commits_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/git/commits{/sha}","comments_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/comments{/number}","issue_comment_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/issues/comments{/number}","contents_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/contents/{+path}","compare_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/compare/{base}...{head}","merges_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/merges","archive_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/downloads","issues_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/issues{/number}","pulls_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/pulls{/number}","milestones_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/milestones{/number}","notifications_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/labels{/name}","releases_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/releases{/id}","deployments_url":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/deployments","created_at":"2018-05-14T08:07:28Z","updated_at":"2018-06-11T15:32:41Z","pushed_at":"2018-06-11T15:32:38Z","git_url":"git://github.com/flerdacodeu/CodeU-2018-Group11.git","ssh_url":"git@github.com:flerdacodeu/CodeU-2018-Group11.git","clone_url":"https://github.com/flerdacodeu/CodeU-2018-Group11.git","svn_url":"https://github.com/flerdacodeu/CodeU-2018-Group11","homepage":null,"size":76,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":1,"open_issues":3,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/pulls/8"},"html":{"href":"https://github.com/flerdacodeu/CodeU-2018-Group11/pull/8"},"issue":{"href":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/issues/8"},"comments":{"href":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/flerdacodeu/CodeU-2018-Group11/statuses/0d411c61b2d51904a859433c360c73cce590bec5"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"mernarezk"}}