{"action":"created","comment":{"url":"https://api.github.com/repos/piyush-metacube/get2015/pulls/comments/36976129","id":36976129,"diff_hunk":"@@ -0,0 +1,96 @@\n+import java.util.ArrayList;\n+import java.util.List;\n+\n+public class Day4Assignment\n+{\n+\tfinal int NUMBER_OF_COLUMNS = 4; // for matrix of 4X4 for N Queen Problem\n+\tList<String> towerStrings = new ArrayList<String>();\n+\n+\t// function to check for TOwer of Hanoi solution\n+\tpublic List<String> towerOfHanoi(String source, String destination, String temp, int numOfDisk)\n+\t{\n+\t\tif (numOfDisk > 1)\n+\t\t{\n+\t\t\t// Move top n-1 disks from source to destination, using temp as auxiliary\n+\t\t\ttowerOfHanoi(source, temp, destination, numOfDisk - 1);\n+\t\t\t// Move remaining disks from source to temp\n+\t\t\ttowerStrings.add(\"Move Disk \" + numOfDisk + \" from \" + source + \" to \" + destination);\n+\t\t\t// Move n-1 disks from destination to temp using source as auxiliary\n+\t\t\ttowerOfHanoi(temp, destination, source, numOfDisk - 1);\n+\t\t}\n+\t\telse // If only 1 disk, make the move and return\n+\t\tif (numOfDisk == 1)","path":"PF/Assignment 4/Day4Assignment.java","position":22,"original_position":22,"commit_id":"8af6699d883a277b33b050aab4c8a0961bb54bfb","original_commit_id":"8af6699d883a277b33b050aab4c8a0961bb54bfb","user":{"login":"anurag13","id":13681735,"avatar_url":"https://avatars.githubusercontent.com/u/13681735?v=3","gravatar_id":"","url":"https://api.github.com/users/anurag13","html_url":"https://github.com/anurag13","followers_url":"https://api.github.com/users/anurag13/followers","following_url":"https://api.github.com/users/anurag13/following{/other_user}","gists_url":"https://api.github.com/users/anurag13/gists{/gist_id}","starred_url":"https://api.github.com/users/anurag13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anurag13/subscriptions","organizations_url":"https://api.github.com/users/anurag13/orgs","repos_url":"https://api.github.com/users/anurag13/repos","events_url":"https://api.github.com/users/anurag13/events{/privacy}","received_events_url":"https://api.github.com/users/anurag13/received_events","type":"User","site_admin":false},"body":"use else if in one line and then put the comment","created_at":"2015-08-13T13:55:46Z","updated_at":"2015-08-13T13:55:46Z","html_url":"https://github.com/piyush-metacube/get2015/pull/5#discussion_r36976129","pull_request_url":"https://api.github.com/repos/piyush-metacube/get2015/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/piyush-metacube/get2015/pulls/comments/36976129"},"html":{"href":"https://github.com/piyush-metacube/get2015/pull/5#discussion_r36976129"},"pull_request":{"href":"https://api.github.com/repos/piyush-metacube/get2015/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/piyush-metacube/get2015/pulls/5","id":42237724,"html_url":"https://github.com/piyush-metacube/get2015/pull/5","diff_url":"https://github.com/piyush-metacube/get2015/pull/5.diff","patch_url":"https://github.com/piyush-metacube/get2015/pull/5.patch","issue_url":"https://api.github.com/repos/piyush-metacube/get2015/issues/5","number":5,"state":"open","locked":false,"title":"Assignment4","user":{"login":"piyush-metacube","id":13659282,"avatar_url":"https://avatars.githubusercontent.com/u/13659282?v=3","gravatar_id":"","url":"https://api.github.com/users/piyush-metacube","html_url":"https://github.com/piyush-metacube","followers_url":"https://api.github.com/users/piyush-metacube/followers","following_url":"https://api.github.com/users/piyush-metacube/following{/other_user}","gists_url":"https://api.github.com/users/piyush-metacube/gists{/gist_id}","starred_url":"https://api.github.com/users/piyush-metacube/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piyush-metacube/subscriptions","organizations_url":"https://api.github.com/users/piyush-metacube/orgs","repos_url":"https://api.github.com/users/piyush-metacube/repos","events_url":"https://api.github.com/users/piyush-metacube/events{/privacy}","received_events_url":"https://api.github.com/users/piyush-metacube/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-12T13:11:31Z","updated_at":"2015-08-13T13:55:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e608151dc96d4eece6ba69743cf4c8c827bd7a15","assignee":{"login":"anurag13","id":13681735,"avatar_url":"https://avatars.githubusercontent.com/u/13681735?v=3","gravatar_id":"","url":"https://api.github.com/users/anurag13","html_url":"https://github.com/anurag13","followers_url":"https://api.github.com/users/anurag13/followers","following_url":"https://api.github.com/users/anurag13/following{/other_user}","gists_url":"https://api.github.com/users/anurag13/gists{/gist_id}","starred_url":"https://api.github.com/users/anurag13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anurag13/subscriptions","organizations_url":"https://api.github.com/users/anurag13/orgs","repos_url":"https://api.github.com/users/anurag13/repos","events_url":"https://api.github.com/users/anurag13/events{/privacy}","received_events_url":"https://api.github.com/users/anurag13/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/piyush-metacube/get2015/pulls/5/commits","review_comments_url":"https://api.github.com/repos/piyush-metacube/get2015/pulls/5/comments","review_comment_url":"https://api.github.com/repos/piyush-metacube/get2015/pulls/comments{/number}","comments_url":"https://api.github.com/repos/piyush-metacube/get2015/issues/5/comments","statuses_url":"https://api.github.com/repos/piyush-metacube/get2015/statuses/8af6699d883a277b33b050aab4c8a0961bb54bfb","head":{"label":"piyush-metacube:Assignment4","ref":"Assignment4","sha":"8af6699d883a277b33b050aab4c8a0961bb54bfb","user":{"login":"piyush-metacube","id":13659282,"avatar_url":"https://avatars.githubusercontent.com/u/13659282?v=3","gravatar_id":"","url":"https://api.github.com/users/piyush-metacube","html_url":"https://github.com/piyush-metacube","followers_url":"https://api.github.com/users/piyush-metacube/followers","following_url":"https://api.github.com/users/piyush-metacube/following{/other_user}","gists_url":"https://api.github.com/users/piyush-metacube/gists{/gist_id}","starred_url":"https://api.github.com/users/piyush-metacube/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piyush-metacube/subscriptions","organizations_url":"https://api.github.com/users/piyush-metacube/orgs","repos_url":"https://api.github.com/users/piyush-metacube/repos","events_url":"https://api.github.com/users/piyush-metacube/events{/privacy}","received_events_url":"https://api.github.com/users/piyush-metacube/received_events","type":"User","site_admin":false},"repo":{"id":40306771,"name":"get2015","full_name":"piyush-metacube/get2015","owner":{"login":"piyush-metacube","id":13659282,"avatar_url":"https://avatars.githubusercontent.com/u/13659282?v=3","gravatar_id":"","url":"https://api.github.com/users/piyush-metacube","html_url":"https://github.com/piyush-metacube","followers_url":"https://api.github.com/users/piyush-metacube/followers","following_url":"https://api.github.com/users/piyush-metacube/following{/other_user}","gists_url":"https://api.github.com/users/piyush-metacube/gists{/gist_id}","starred_url":"https://api.github.com/users/piyush-metacube/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piyush-metacube/subscriptions","organizations_url":"https://api.github.com/users/piyush-metacube/orgs","repos_url":"https://api.github.com/users/piyush-metacube/repos","events_url":"https://api.github.com/users/piyush-metacube/events{/privacy}","received_events_url":"https://api.github.com/users/piyush-metacube/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/piyush-metacube/get2015","description":"Training repo for GET 2015 batch","fork":true,"url":"https://api.github.com/repos/piyush-metacube/get2015","forks_url":"https://api.github.com/repos/piyush-metacube/get2015/forks","keys_url":"https://api.github.com/repos/piyush-metacube/get2015/keys{/key_id}","collaborators_url":"https://api.github.com/repos/piyush-metacube/get2015/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/piyush-metacube/get2015/teams","hooks_url":"https://api.github.com/repos/piyush-metacube/get2015/hooks","issue_events_url":"https://api.github.com/repos/piyush-metacube/get2015/issues/events{/number}","events_url":"https://api.github.com/repos/piyush-metacube/get2015/events","assignees_url":"https://api.github.com/repos/piyush-metacube/get2015/assignees{/user}","branches_url":"https://api.github.com/repos/piyush-metacube/get2015/branches{/branch}","tags_url":"https://api.github.com/repos/piyush-metacube/get2015/tags","blobs_url":"https://api.github.com/repos/piyush-metacube/get2015/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/piyush-metacube/get2015/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/piyush-metacube/get2015/git/refs{/sha}","trees_url":"https://api.github.com/repos/piyush-metacube/get2015/git/trees{/sha}","statuses_url":"https://api.github.com/repos/piyush-metacube/get2015/statuses/{sha}","languages_url":"https://api.github.com/repos/piyush-metacube/get2015/languages","stargazers_url":"https://api.github.com/repos/piyush-metacube/get2015/stargazers","contributors_url":"https://api.github.com/repos/piyush-metacube/get2015/contributors","subscribers_url":"https://api.github.com/repos/piyush-metacube/get2015/subscribers","subscription_url":"https://api.github.com/repos/piyush-metacube/get2015/subscription","commits_url":"https://api.github.com/repos/piyush-metacube/get2015/commits{/sha}","git_commits_url":"https://api.github.com/repos/piyush-metacube/get2015/git/commits{/sha}","comments_url":"https://api.github.com/repos/piyush-metacube/get2015/comments{/number}","issue_comment_url":"https://api.github.com/repos/piyush-metacube/get2015/issues/comments{/number}","contents_url":"https://api.github.com/repos/piyush-metacube/get2015/contents/{+path}","compare_url":"https://api.github.com/repos/piyush-metacube/get2015/compare/{base}...{head}","merges_url":"https://api.github.com/repos/piyush-metacube/get2015/merges","archive_url":"https://api.github.com/repos/piyush-metacube/get2015/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/piyush-metacube/get2015/downloads","issues_url":"https://api.github.com/repos/piyush-metacube/get2015/issues{/number}","pulls_url":"https://api.github.com/repos/piyush-metacube/get2015/pulls{/number}","milestones_url":"https://api.github.com/repos/piyush-metacube/get2015/milestones{/number}","notifications_url":"https://api.github.com/repos/piyush-metacube/get2015/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/piyush-metacube/get2015/labels{/name}","releases_url":"https://api.github.com/repos/piyush-metacube/get2015/releases{/id}","created_at":"2015-08-06T13:39:00Z","updated_at":"2015-08-04T12:33:00Z","pushed_at":"2015-08-12T13:11:31Z","git_url":"git://github.com/piyush-metacube/get2015.git","ssh_url":"git@github.com:piyush-metacube/get2015.git","clone_url":"https://github.com/piyush-metacube/get2015.git","svn_url":"https://github.com/piyush-metacube/get2015","homepage":null,"size":194,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"piyush-metacube:master","ref":"master","sha":"e52a6c4ff8198a2f43d5b4cfa46944c6f4686dfe","user":{"login":"piyush-metacube","id":13659282,"avatar_url":"https://avatars.githubusercontent.com/u/13659282?v=3","gravatar_id":"","url":"https://api.github.com/users/piyush-metacube","html_url":"https://github.com/piyush-metacube","followers_url":"https://api.github.com/users/piyush-metacube/followers","following_url":"https://api.github.com/users/piyush-metacube/following{/other_user}","gists_url":"https://api.github.com/users/piyush-metacube/gists{/gist_id}","starred_url":"https://api.github.com/users/piyush-metacube/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piyush-metacube/subscriptions","organizations_url":"https://api.github.com/users/piyush-metacube/orgs","repos_url":"https://api.github.com/users/piyush-metacube/repos","events_url":"https://api.github.com/users/piyush-metacube/events{/privacy}","received_events_url":"https://api.github.com/users/piyush-metacube/received_events","type":"User","site_admin":false},"repo":{"id":40306771,"name":"get2015","full_name":"piyush-metacube/get2015","owner":{"login":"piyush-metacube","id":13659282,"avatar_url":"https://avatars.githubusercontent.com/u/13659282?v=3","gravatar_id":"","url":"https://api.github.com/users/piyush-metacube","html_url":"https://github.com/piyush-metacube","followers_url":"https://api.github.com/users/piyush-metacube/followers","following_url":"https://api.github.com/users/piyush-metacube/following{/other_user}","gists_url":"https://api.github.com/users/piyush-metacube/gists{/gist_id}","starred_url":"https://api.github.com/users/piyush-metacube/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piyush-metacube/subscriptions","organizations_url":"https://api.github.com/users/piyush-metacube/orgs","repos_url":"https://api.github.com/users/piyush-metacube/repos","events_url":"https://api.github.com/users/piyush-metacube/events{/privacy}","received_events_url":"https://api.github.com/users/piyush-metacube/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/piyush-metacube/get2015","description":"Training repo for GET 2015 batch","fork":true,"url":"https://api.github.com/repos/piyush-metacube/get2015","forks_url":"https://api.github.com/repos/piyush-metacube/get2015/forks","keys_url":"https://api.github.com/repos/piyush-metacube/get2015/keys{/key_id}","collaborators_url":"https://api.github.com/repos/piyush-metacube/get2015/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/piyush-metacube/get2015/teams","hooks_url":"https://api.github.com/repos/piyush-metacube/get2015/hooks","issue_events_url":"https://api.github.com/repos/piyush-metacube/get2015/issues/events{/number}","events_url":"https://api.github.com/repos/piyush-metacube/get2015/events","assignees_url":"https://api.github.com/repos/piyush-metacube/get2015/assignees{/user}","branches_url":"https://api.github.com/repos/piyush-metacube/get2015/branches{/branch}","tags_url":"https://api.github.com/repos/piyush-metacube/get2015/tags","blobs_url":"https://api.github.com/repos/piyush-metacube/get2015/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/piyush-metacube/get2015/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/piyush-metacube/get2015/git/refs{/sha}","trees_url":"https://api.github.com/repos/piyush-metacube/get2015/git/trees{/sha}","statuses_url":"https://api.github.com/repos/piyush-metacube/get2015/statuses/{sha}","languages_url":"https://api.github.com/repos/piyush-metacube/get2015/languages","stargazers_url":"https://api.github.com/repos/piyush-metacube/get2015/stargazers","contributors_url":"https://api.github.com/repos/piyush-metacube/get2015/contributors","subscribers_url":"https://api.github.com/repos/piyush-metacube/get2015/subscribers","subscription_url":"https://api.github.com/repos/piyush-metacube/get2015/subscription","commits_url":"https://api.github.com/repos/piyush-metacube/get2015/commits{/sha}","git_commits_url":"https://api.github.com/repos/piyush-metacube/get2015/git/commits{/sha}","comments_url":"https://api.github.com/repos/piyush-metacube/get2015/comments{/number}","issue_comment_url":"https://api.github.com/repos/piyush-metacube/get2015/issues/comments{/number}","contents_url":"https://api.github.com/repos/piyush-metacube/get2015/contents/{+path}","compare_url":"https://api.github.com/repos/piyush-metacube/get2015/compare/{base}...{head}","merges_url":"https://api.github.com/repos/piyush-metacube/get2015/merges","archive_url":"https://api.github.com/repos/piyush-metacube/get2015/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/piyush-metacube/get2015/downloads","issues_url":"https://api.github.com/repos/piyush-metacube/get2015/issues{/number}","pulls_url":"https://api.github.com/repos/piyush-metacube/get2015/pulls{/number}","milestones_url":"https://api.github.com/repos/piyush-metacube/get2015/milestones{/number}","notifications_url":"https://api.github.com/repos/piyush-metacube/get2015/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/piyush-metacube/get2015/labels{/name}","releases_url":"https://api.github.com/repos/piyush-metacube/get2015/releases{/id}","created_at":"2015-08-06T13:39:00Z","updated_at":"2015-08-04T12:33:00Z","pushed_at":"2015-08-12T13:11:31Z","git_url":"git://github.com/piyush-metacube/get2015.git","ssh_url":"git@github.com:piyush-metacube/get2015.git","clone_url":"https://github.com/piyush-metacube/get2015.git","svn_url":"https://github.com/piyush-metacube/get2015","homepage":null,"size":194,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/piyush-metacube/get2015/pulls/5"},"html":{"href":"https://github.com/piyush-metacube/get2015/pull/5"},"issue":{"href":"https://api.github.com/repos/piyush-metacube/get2015/issues/5"},"comments":{"href":"https://api.github.com/repos/piyush-metacube/get2015/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/piyush-metacube/get2015/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/piyush-metacube/get2015/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/piyush-metacube/get2015/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/piyush-metacube/get2015/statuses/8af6699d883a277b33b050aab4c8a0961bb54bfb"}}}}