{"action":"created","comment":{"url":"https://api.github.com/repos/Ada-C5/recursion/pulls/comments/63309596","id":63309596,"diff_hunk":"@@ -1,16 +1,63 @@\n \n+# RC: n! = n * (n-1)!\n+# BC: 1! = 1\n+# BC: 0! = 1\n def fact(n)\n+  if n <= 1\n+    return 1\n+  end\n+  return n * fact(n-1)\n end","path":"recursion.rb","position":10,"original_position":10,"commit_id":"95ba229eadbac3c676b145f80316d073ec93c1cb","original_commit_id":"95ba229eadbac3c676b145f80316d073ec93c1cb","user":{"login":"malderi","id":19381681,"avatar_url":"https://avatars.githubusercontent.com/u/19381681?v=3","gravatar_id":"","url":"https://api.github.com/users/malderi","html_url":"https://github.com/malderi","followers_url":"https://api.github.com/users/malderi/followers","following_url":"https://api.github.com/users/malderi/following{/other_user}","gists_url":"https://api.github.com/users/malderi/gists{/gist_id}","starred_url":"https://api.github.com/users/malderi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malderi/subscriptions","organizations_url":"https://api.github.com/users/malderi/orgs","repos_url":"https://api.github.com/users/malderi/repos","events_url":"https://api.github.com/users/malderi/events{/privacy}","received_events_url":"https://api.github.com/users/malderi/received_events","type":"User","site_admin":false},"body":"Good solution.","created_at":"2016-05-16T04:47:04Z","updated_at":"2016-05-16T04:47:04Z","html_url":"https://github.com/Ada-C5/recursion/pull/19#discussion_r63309596","pull_request_url":"https://api.github.com/repos/Ada-C5/recursion/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/Ada-C5/recursion/pulls/comments/63309596"},"html":{"href":"https://github.com/Ada-C5/recursion/pull/19#discussion_r63309596"},"pull_request":{"href":"https://api.github.com/repos/Ada-C5/recursion/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/Ada-C5/recursion/pulls/19","id":68899111,"html_url":"https://github.com/Ada-C5/recursion/pull/19","diff_url":"https://github.com/Ada-C5/recursion/pull/19.diff","patch_url":"https://github.com/Ada-C5/recursion/pull/19.patch","issue_url":"https://api.github.com/repos/Ada-C5/recursion/issues/19","number":19,"state":"open","locked":false,"title":"Completed fib and pal problems","user":{"login":"vconklin","id":15038554,"avatar_url":"https://avatars.githubusercontent.com/u/15038554?v=3","gravatar_id":"","url":"https://api.github.com/users/vconklin","html_url":"https://github.com/vconklin","followers_url":"https://api.github.com/users/vconklin/followers","following_url":"https://api.github.com/users/vconklin/following{/other_user}","gists_url":"https://api.github.com/users/vconklin/gists{/gist_id}","starred_url":"https://api.github.com/users/vconklin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vconklin/subscriptions","organizations_url":"https://api.github.com/users/vconklin/orgs","repos_url":"https://api.github.com/users/vconklin/repos","events_url":"https://api.github.com/users/vconklin/events{/privacy}","received_events_url":"https://api.github.com/users/vconklin/received_events","type":"User","site_admin":false},"body":"Here you go! I did this over the weekend and forgot to upload, whoops...","created_at":"2016-05-04T17:19:13Z","updated_at":"2016-05-16T04:47:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eb40eb957257dd62114276a929303e03c67726e8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Ada-C5/recursion/pulls/19/commits","review_comments_url":"https://api.github.com/repos/Ada-C5/recursion/pulls/19/comments","review_comment_url":"https://api.github.com/repos/Ada-C5/recursion/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Ada-C5/recursion/issues/19/comments","statuses_url":"https://api.github.com/repos/Ada-C5/recursion/statuses/95ba229eadbac3c676b145f80316d073ec93c1cb","head":{"label":"vconklin:master","ref":"master","sha":"95ba229eadbac3c676b145f80316d073ec93c1cb","user":{"login":"vconklin","id":15038554,"avatar_url":"https://avatars.githubusercontent.com/u/15038554?v=3","gravatar_id":"","url":"https://api.github.com/users/vconklin","html_url":"https://github.com/vconklin","followers_url":"https://api.github.com/users/vconklin/followers","following_url":"https://api.github.com/users/vconklin/following{/other_user}","gists_url":"https://api.github.com/users/vconklin/gists{/gist_id}","starred_url":"https://api.github.com/users/vconklin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vconklin/subscriptions","organizations_url":"https://api.github.com/users/vconklin/orgs","repos_url":"https://api.github.com/users/vconklin/repos","events_url":"https://api.github.com/users/vconklin/events{/privacy}","received_events_url":"https://api.github.com/users/vconklin/received_events","type":"User","site_admin":false},"repo":{"id":57234055,"name":"recursion","full_name":"vconklin/recursion","owner":{"login":"vconklin","id":15038554,"avatar_url":"https://avatars.githubusercontent.com/u/15038554?v=3","gravatar_id":"","url":"https://api.github.com/users/vconklin","html_url":"https://github.com/vconklin","followers_url":"https://api.github.com/users/vconklin/followers","following_url":"https://api.github.com/users/vconklin/following{/other_user}","gists_url":"https://api.github.com/users/vconklin/gists{/gist_id}","starred_url":"https://api.github.com/users/vconklin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vconklin/subscriptions","organizations_url":"https://api.github.com/users/vconklin/orgs","repos_url":"https://api.github.com/users/vconklin/repos","events_url":"https://api.github.com/users/vconklin/events{/privacy}","received_events_url":"https://api.github.com/users/vconklin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vconklin/recursion","description":"Recursion Practice Problems","fork":true,"url":"https://api.github.com/repos/vconklin/recursion","forks_url":"https://api.github.com/repos/vconklin/recursion/forks","keys_url":"https://api.github.com/repos/vconklin/recursion/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vconklin/recursion/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vconklin/recursion/teams","hooks_url":"https://api.github.com/repos/vconklin/recursion/hooks","issue_events_url":"https://api.github.com/repos/vconklin/recursion/issues/events{/number}","events_url":"https://api.github.com/repos/vconklin/recursion/events","assignees_url":"https://api.github.com/repos/vconklin/recursion/assignees{/user}","branches_url":"https://api.github.com/repos/vconklin/recursion/branches{/branch}","tags_url":"https://api.github.com/repos/vconklin/recursion/tags","blobs_url":"https://api.github.com/repos/vconklin/recursion/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vconklin/recursion/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vconklin/recursion/git/refs{/sha}","trees_url":"https://api.github.com/repos/vconklin/recursion/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vconklin/recursion/statuses/{sha}","languages_url":"https://api.github.com/repos/vconklin/recursion/languages","stargazers_url":"https://api.github.com/repos/vconklin/recursion/stargazers","contributors_url":"https://api.github.com/repos/vconklin/recursion/contributors","subscribers_url":"https://api.github.com/repos/vconklin/recursion/subscribers","subscription_url":"https://api.github.com/repos/vconklin/recursion/subscription","commits_url":"https://api.github.com/repos/vconklin/recursion/commits{/sha}","git_commits_url":"https://api.github.com/repos/vconklin/recursion/git/commits{/sha}","comments_url":"https://api.github.com/repos/vconklin/recursion/comments{/number}","issue_comment_url":"https://api.github.com/repos/vconklin/recursion/issues/comments{/number}","contents_url":"https://api.github.com/repos/vconklin/recursion/contents/{+path}","compare_url":"https://api.github.com/repos/vconklin/recursion/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vconklin/recursion/merges","archive_url":"https://api.github.com/repos/vconklin/recursion/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vconklin/recursion/downloads","issues_url":"https://api.github.com/repos/vconklin/recursion/issues{/number}","pulls_url":"https://api.github.com/repos/vconklin/recursion/pulls{/number}","milestones_url":"https://api.github.com/repos/vconklin/recursion/milestones{/number}","notifications_url":"https://api.github.com/repos/vconklin/recursion/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vconklin/recursion/labels{/name}","releases_url":"https://api.github.com/repos/vconklin/recursion/releases{/id}","deployments_url":"https://api.github.com/repos/vconklin/recursion/deployments","created_at":"2016-04-27T17:49:22Z","updated_at":"2016-04-27T17:49:23Z","pushed_at":"2016-05-04T17:18:41Z","git_url":"git://github.com/vconklin/recursion.git","ssh_url":"git@github.com:vconklin/recursion.git","clone_url":"https://github.com/vconklin/recursion.git","svn_url":"https://github.com/vconklin/recursion","homepage":null,"size":2,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"Ada-C5:master","ref":"master","sha":"43df63d4522a85333c3a1eca80ce012a706e91f8","user":{"login":"Ada-C5","id":16655720,"avatar_url":"https://avatars.githubusercontent.com/u/16655720?v=3","gravatar_id":"","url":"https://api.github.com/users/Ada-C5","html_url":"https://github.com/Ada-C5","followers_url":"https://api.github.com/users/Ada-C5/followers","following_url":"https://api.github.com/users/Ada-C5/following{/other_user}","gists_url":"https://api.github.com/users/Ada-C5/gists{/gist_id}","starred_url":"https://api.github.com/users/Ada-C5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ada-C5/subscriptions","organizations_url":"https://api.github.com/users/Ada-C5/orgs","repos_url":"https://api.github.com/users/Ada-C5/repos","events_url":"https://api.github.com/users/Ada-C5/events{/privacy}","received_events_url":"https://api.github.com/users/Ada-C5/received_events","type":"Organization","site_admin":false},"repo":{"id":57231186,"name":"recursion","full_name":"Ada-C5/recursion","owner":{"login":"Ada-C5","id":16655720,"avatar_url":"https://avatars.githubusercontent.com/u/16655720?v=3","gravatar_id":"","url":"https://api.github.com/users/Ada-C5","html_url":"https://github.com/Ada-C5","followers_url":"https://api.github.com/users/Ada-C5/followers","following_url":"https://api.github.com/users/Ada-C5/following{/other_user}","gists_url":"https://api.github.com/users/Ada-C5/gists{/gist_id}","starred_url":"https://api.github.com/users/Ada-C5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ada-C5/subscriptions","organizations_url":"https://api.github.com/users/Ada-C5/orgs","repos_url":"https://api.github.com/users/Ada-C5/repos","events_url":"https://api.github.com/users/Ada-C5/events{/privacy}","received_events_url":"https://api.github.com/users/Ada-C5/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Ada-C5/recursion","description":"Recursion Practice Problems","fork":true,"url":"https://api.github.com/repos/Ada-C5/recursion","forks_url":"https://api.github.com/repos/Ada-C5/recursion/forks","keys_url":"https://api.github.com/repos/Ada-C5/recursion/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ada-C5/recursion/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ada-C5/recursion/teams","hooks_url":"https://api.github.com/repos/Ada-C5/recursion/hooks","issue_events_url":"https://api.github.com/repos/Ada-C5/recursion/issues/events{/number}","events_url":"https://api.github.com/repos/Ada-C5/recursion/events","assignees_url":"https://api.github.com/repos/Ada-C5/recursion/assignees{/user}","branches_url":"https://api.github.com/repos/Ada-C5/recursion/branches{/branch}","tags_url":"https://api.github.com/repos/Ada-C5/recursion/tags","blobs_url":"https://api.github.com/repos/Ada-C5/recursion/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ada-C5/recursion/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ada-C5/recursion/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ada-C5/recursion/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ada-C5/recursion/statuses/{sha}","languages_url":"https://api.github.com/repos/Ada-C5/recursion/languages","stargazers_url":"https://api.github.com/repos/Ada-C5/recursion/stargazers","contributors_url":"https://api.github.com/repos/Ada-C5/recursion/contributors","subscribers_url":"https://api.github.com/repos/Ada-C5/recursion/subscribers","subscription_url":"https://api.github.com/repos/Ada-C5/recursion/subscription","commits_url":"https://api.github.com/repos/Ada-C5/recursion/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ada-C5/recursion/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ada-C5/recursion/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ada-C5/recursion/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ada-C5/recursion/contents/{+path}","compare_url":"https://api.github.com/repos/Ada-C5/recursion/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ada-C5/recursion/merges","archive_url":"https://api.github.com/repos/Ada-C5/recursion/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ada-C5/recursion/downloads","issues_url":"https://api.github.com/repos/Ada-C5/recursion/issues{/number}","pulls_url":"https://api.github.com/repos/Ada-C5/recursion/pulls{/number}","milestones_url":"https://api.github.com/repos/Ada-C5/recursion/milestones{/number}","notifications_url":"https://api.github.com/repos/Ada-C5/recursion/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ada-C5/recursion/labels{/name}","releases_url":"https://api.github.com/repos/Ada-C5/recursion/releases{/id}","deployments_url":"https://api.github.com/repos/Ada-C5/recursion/deployments","created_at":"2016-04-27T17:05:17Z","updated_at":"2016-04-27T17:05:18Z","pushed_at":"2016-05-07T20:07:32Z","git_url":"git://github.com/Ada-C5/recursion.git","ssh_url":"git@github.com:Ada-C5/recursion.git","clone_url":"https://github.com/Ada-C5/recursion.git","svn_url":"https://github.com/Ada-C5/recursion","homepage":null,"size":1,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":20,"forks":24,"open_issues":20,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Ada-C5/recursion/pulls/19"},"html":{"href":"https://github.com/Ada-C5/recursion/pull/19"},"issue":{"href":"https://api.github.com/repos/Ada-C5/recursion/issues/19"},"comments":{"href":"https://api.github.com/repos/Ada-C5/recursion/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/Ada-C5/recursion/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/Ada-C5/recursion/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Ada-C5/recursion/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/Ada-C5/recursion/statuses/95ba229eadbac3c676b145f80316d073ec93c1cb"}}}}