{"action":"created","comment":{"url":"https://api.github.com/repos/OpenGenus/cosmos/pulls/comments/224025517","pull_request_review_id":163291444,"id":224025517,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNDAyNTUxNw==","diff_hunk":"@@ -0,0 +1,44 @@\n+#include<bits/stdc++.h>\n+using namespace std;\n+int l=0;\n+void ans(int input[],int startindex,int size,int index,int output[],int osize,int k)\n+{\n+if(startindex==size)\n+\t{\n+\t\tint sum=0;\n+\t for(int i=0;i<index;i++)\n+\t{\n+\t  \n+\t sum+= output[i];\n+    \n+\t}\n+\tif(sum==k)\n+\t{\n+\tfor(int i=0;i<index;i++)\n+\t{\n+\t  \n+//\tcout<<output[i]<<\" \";\n+    \n+\t}\n+\tcout<<endl;\t\n+\t}\n+\t l++;\n+\t return;\n+\t}\n+\t\n+\tans(input,startindex+1,size,index,output,osize,k);\n+\tcout<<startindex<<endl;\n+\toutput[index++]=input[startindex];\n+\t\n+\tans(input,startindex+1,size,index,output,osize+1,k);\n+}\n+int main()","path":"code/backtracking/src/print subaarrays with length.cpp","position":35,"original_position":35,"commit_id":"a7e700b2163840dc42a2dcfe7016b6e4b23b7370","original_commit_id":"a7e700b2163840dc42a2dcfe7016b6e4b23b7370","user":{"login":"arnavb","id":30810402,"node_id":"MDQ6VXNlcjMwODEwNDAy","avatar_url":"https://avatars0.githubusercontent.com/u/30810402?v=4","gravatar_id":"","url":"https://api.github.com/users/arnavb","html_url":"https://github.com/arnavb","followers_url":"https://api.github.com/users/arnavb/followers","following_url":"https://api.github.com/users/arnavb/following{/other_user}","gists_url":"https://api.github.com/users/arnavb/gists{/gist_id}","starred_url":"https://api.github.com/users/arnavb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arnavb/subscriptions","organizations_url":"https://api.github.com/users/arnavb/orgs","repos_url":"https://api.github.com/users/arnavb/repos","events_url":"https://api.github.com/users/arnavb/events{/privacy}","received_events_url":"https://api.github.com/users/arnavb/received_events","type":"User","site_admin":false},"body":"Newline between functions.","created_at":"2018-10-10T10:45:27Z","updated_at":"2018-10-10T10:45:46Z","html_url":"https://github.com/OpenGenus/cosmos/pull/3779#discussion_r224025517","pull_request_url":"https://api.github.com/repos/OpenGenus/cosmos/pulls/3779","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/OpenGenus/cosmos/pulls/comments/224025517"},"html":{"href":"https://github.com/OpenGenus/cosmos/pull/3779#discussion_r224025517"},"pull_request":{"href":"https://api.github.com/repos/OpenGenus/cosmos/pulls/3779"}}},"pull_request":{"url":"https://api.github.com/repos/OpenGenus/cosmos/pulls/3779","id":221502226,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIxNTAyMjI2","html_url":"https://github.com/OpenGenus/cosmos/pull/3779","diff_url":"https://github.com/OpenGenus/cosmos/pull/3779.diff","patch_url":"https://github.com/OpenGenus/cosmos/pull/3779.patch","issue_url":"https://api.github.com/repos/OpenGenus/cosmos/issues/3779","number":3779,"state":"open","locked":false,"title":"created print subarrays with length.cpp","user":{"login":"vikashumain","id":20916492,"node_id":"MDQ6VXNlcjIwOTE2NDky","avatar_url":"https://avatars2.githubusercontent.com/u/20916492?v=4","gravatar_id":"","url":"https://api.github.com/users/vikashumain","html_url":"https://github.com/vikashumain","followers_url":"https://api.github.com/users/vikashumain/followers","following_url":"https://api.github.com/users/vikashumain/following{/other_user}","gists_url":"https://api.github.com/users/vikashumain/gists{/gist_id}","starred_url":"https://api.github.com/users/vikashumain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vikashumain/subscriptions","organizations_url":"https://api.github.com/users/vikashumain/orgs","repos_url":"https://api.github.com/users/vikashumain/repos","events_url":"https://api.github.com/users/vikashumain/events{/privacy}","received_events_url":"https://api.github.com/users/vikashumain/received_events","type":"User","site_admin":false},"body":"**Fixes issue:**\r\n<!-- [Mention the issue number it fixes or add the details of the changes if it doesn't has a specific issue. -->\r\n\r\n\r\n**Changes:**\r\n<!-- Add here what changes were made in this pull request. -->\r\n\r\n\r\n<!-- Make sure to look at the Style Guide for your language in guides/coding_style/language_name:\r\n\r\n     https://github.com/OpenGenus/cosmos/tree/master/guides/coding_style\r\n\r\n     Note: A coding style guide may not exist for your language, since this is still in beta.\r\n-->\r\n\r\n<!-- Make sure to look at the Documentation Style Guide in guides/documentation.md:\r\n\r\n     https://github.com/OpenGenus/cosmos/blob/master/guides/documentation_guide.md\r\n\r\n     The document style guide may not apply for your algorithm category, you must also look at specified guide under all of the directory in the category, e.g., for project euler:\r\n\r\n     https://github.com/OpenGenus/cosmos/blob/master/code/online_challenges/src/project_euler/documentation_guide.md\r\n-->\r\n","created_at":"2018-10-09T16:17:11Z","updated_at":"2018-10-10T10:45:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"43354fa7d15bbcada5325881bfb0922101fbf204","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/OpenGenus/cosmos/pulls/3779/commits","review_comments_url":"https://api.github.com/repos/OpenGenus/cosmos/pulls/3779/comments","review_comment_url":"https://api.github.com/repos/OpenGenus/cosmos/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OpenGenus/cosmos/issues/3779/comments","statuses_url":"https://api.github.com/repos/OpenGenus/cosmos/statuses/a7e700b2163840dc42a2dcfe7016b6e4b23b7370","head":{"label":"vikashumain:patch-4","ref":"patch-4","sha":"a7e700b2163840dc42a2dcfe7016b6e4b23b7370","user":{"login":"vikashumain","id":20916492,"node_id":"MDQ6VXNlcjIwOTE2NDky","avatar_url":"https://avatars2.githubusercontent.com/u/20916492?v=4","gravatar_id":"","url":"https://api.github.com/users/vikashumain","html_url":"https://github.com/vikashumain","followers_url":"https://api.github.com/users/vikashumain/followers","following_url":"https://api.github.com/users/vikashumain/following{/other_user}","gists_url":"https://api.github.com/users/vikashumain/gists{/gist_id}","starred_url":"https://api.github.com/users/vikashumain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vikashumain/subscriptions","organizations_url":"https://api.github.com/users/vikashumain/orgs","repos_url":"https://api.github.com/users/vikashumain/repos","events_url":"https://api.github.com/users/vikashumain/events{/privacy}","received_events_url":"https://api.github.com/users/vikashumain/received_events","type":"User","site_admin":false},"repo":{"id":151584056,"node_id":"MDEwOlJlcG9zaXRvcnkxNTE1ODQwNTY=","name":"cosmos","full_name":"vikashumain/cosmos","private":false,"owner":{"login":"vikashumain","id":20916492,"node_id":"MDQ6VXNlcjIwOTE2NDky","avatar_url":"https://avatars2.githubusercontent.com/u/20916492?v=4","gravatar_id":"","url":"https://api.github.com/users/vikashumain","html_url":"https://github.com/vikashumain","followers_url":"https://api.github.com/users/vikashumain/followers","following_url":"https://api.github.com/users/vikashumain/following{/other_user}","gists_url":"https://api.github.com/users/vikashumain/gists{/gist_id}","starred_url":"https://api.github.com/users/vikashumain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vikashumain/subscriptions","organizations_url":"https://api.github.com/users/vikashumain/orgs","repos_url":"https://api.github.com/users/vikashumain/repos","events_url":"https://api.github.com/users/vikashumain/events{/privacy}","received_events_url":"https://api.github.com/users/vikashumain/received_events","type":"User","site_admin":false},"html_url":"https://github.com/vikashumain/cosmos","description":"Algorithms that run our universe | Your personal library of every algorithm and data structure code that you will ever encounter | Ask us anything at our forum","fork":true,"url":"https://api.github.com/repos/vikashumain/cosmos","forks_url":"https://api.github.com/repos/vikashumain/cosmos/forks","keys_url":"https://api.github.com/repos/vikashumain/cosmos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vikashumain/cosmos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vikashumain/cosmos/teams","hooks_url":"https://api.github.com/repos/vikashumain/cosmos/hooks","issue_events_url":"https://api.github.com/repos/vikashumain/cosmos/issues/events{/number}","events_url":"https://api.github.com/repos/vikashumain/cosmos/events","assignees_url":"https://api.github.com/repos/vikashumain/cosmos/assignees{/user}","branches_url":"https://api.github.com/repos/vikashumain/cosmos/branches{/branch}","tags_url":"https://api.github.com/repos/vikashumain/cosmos/tags","blobs_url":"https://api.github.com/repos/vikashumain/cosmos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vikashumain/cosmos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vikashumain/cosmos/git/refs{/sha}","trees_url":"https://api.github.com/repos/vikashumain/cosmos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vikashumain/cosmos/statuses/{sha}","languages_url":"https://api.github.com/repos/vikashumain/cosmos/languages","stargazers_url":"https://api.github.com/repos/vikashumain/cosmos/stargazers","contributors_url":"https://api.github.com/repos/vikashumain/cosmos/contributors","subscribers_url":"https://api.github.com/repos/vikashumain/cosmos/subscribers","subscription_url":"https://api.github.com/repos/vikashumain/cosmos/subscription","commits_url":"https://api.github.com/repos/vikashumain/cosmos/commits{/sha}","git_commits_url":"https://api.github.com/repos/vikashumain/cosmos/git/commits{/sha}","comments_url":"https://api.github.com/repos/vikashumain/cosmos/comments{/number}","issue_comment_url":"https://api.github.com/repos/vikashumain/cosmos/issues/comments{/number}","contents_url":"https://api.github.com/repos/vikashumain/cosmos/contents/{+path}","compare_url":"https://api.github.com/repos/vikashumain/cosmos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vikashumain/cosmos/merges","archive_url":"https://api.github.com/repos/vikashumain/cosmos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vikashumain/cosmos/downloads","issues_url":"https://api.github.com/repos/vikashumain/cosmos/issues{/number}","pulls_url":"https://api.github.com/repos/vikashumain/cosmos/pulls{/number}","milestones_url":"https://api.github.com/repos/vikashumain/cosmos/milestones{/number}","notifications_url":"https://api.github.com/repos/vikashumain/cosmos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vikashumain/cosmos/labels{/name}","releases_url":"https://api.github.com/repos/vikashumain/cosmos/releases{/id}","deployments_url":"https://api.github.com/repos/vikashumain/cosmos/deployments","created_at":"2018-10-04T14:19:00Z","updated_at":"2018-10-04T14:19:07Z","pushed_at":"2018-10-09T16:17:01Z","git_url":"git://github.com/vikashumain/cosmos.git","ssh_url":"git@github.com:vikashumain/cosmos.git","clone_url":"https://github.com/vikashumain/cosmos.git","svn_url":"https://github.com/vikashumain/cosmos","homepage":"https://discourse.opengenus.org","size":36203,"stargazers_count":0,"watchers_count":0,"language":"Jupyter Notebook","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":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"OpenGenus:master","ref":"master","sha":"3e4416d9b0947a41617080e421c2b0cd76ac46c2","user":{"login":"OpenGenus","id":18506046,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4NTA2MDQ2","avatar_url":"https://avatars3.githubusercontent.com/u/18506046?v=4","gravatar_id":"","url":"https://api.github.com/users/OpenGenus","html_url":"https://github.com/OpenGenus","followers_url":"https://api.github.com/users/OpenGenus/followers","following_url":"https://api.github.com/users/OpenGenus/following{/other_user}","gists_url":"https://api.github.com/users/OpenGenus/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenGenus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenGenus/subscriptions","organizations_url":"https://api.github.com/users/OpenGenus/orgs","repos_url":"https://api.github.com/users/OpenGenus/repos","events_url":"https://api.github.com/users/OpenGenus/events{/privacy}","received_events_url":"https://api.github.com/users/OpenGenus/received_events","type":"Organization","site_admin":false},"repo":{"id":103749180,"node_id":"MDEwOlJlcG9zaXRvcnkxMDM3NDkxODA=","name":"cosmos","full_name":"OpenGenus/cosmos","private":false,"owner":{"login":"OpenGenus","id":18506046,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4NTA2MDQ2","avatar_url":"https://avatars3.githubusercontent.com/u/18506046?v=4","gravatar_id":"","url":"https://api.github.com/users/OpenGenus","html_url":"https://github.com/OpenGenus","followers_url":"https://api.github.com/users/OpenGenus/followers","following_url":"https://api.github.com/users/OpenGenus/following{/other_user}","gists_url":"https://api.github.com/users/OpenGenus/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenGenus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenGenus/subscriptions","organizations_url":"https://api.github.com/users/OpenGenus/orgs","repos_url":"https://api.github.com/users/OpenGenus/repos","events_url":"https://api.github.com/users/OpenGenus/events{/privacy}","received_events_url":"https://api.github.com/users/OpenGenus/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/OpenGenus/cosmos","description":"Algorithms that run our universe | Your personal library of every algorithm and data structure code that you will ever encounter | Ask us anything at our forum","fork":false,"url":"https://api.github.com/repos/OpenGenus/cosmos","forks_url":"https://api.github.com/repos/OpenGenus/cosmos/forks","keys_url":"https://api.github.com/repos/OpenGenus/cosmos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpenGenus/cosmos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpenGenus/cosmos/teams","hooks_url":"https://api.github.com/repos/OpenGenus/cosmos/hooks","issue_events_url":"https://api.github.com/repos/OpenGenus/cosmos/issues/events{/number}","events_url":"https://api.github.com/repos/OpenGenus/cosmos/events","assignees_url":"https://api.github.com/repos/OpenGenus/cosmos/assignees{/user}","branches_url":"https://api.github.com/repos/OpenGenus/cosmos/branches{/branch}","tags_url":"https://api.github.com/repos/OpenGenus/cosmos/tags","blobs_url":"https://api.github.com/repos/OpenGenus/cosmos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpenGenus/cosmos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpenGenus/cosmos/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpenGenus/cosmos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpenGenus/cosmos/statuses/{sha}","languages_url":"https://api.github.com/repos/OpenGenus/cosmos/languages","stargazers_url":"https://api.github.com/repos/OpenGenus/cosmos/stargazers","contributors_url":"https://api.github.com/repos/OpenGenus/cosmos/contributors","subscribers_url":"https://api.github.com/repos/OpenGenus/cosmos/subscribers","subscription_url":"https://api.github.com/repos/OpenGenus/cosmos/subscription","commits_url":"https://api.github.com/repos/OpenGenus/cosmos/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpenGenus/cosmos/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpenGenus/cosmos/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpenGenus/cosmos/issues/comments{/number}","contents_url":"https://api.github.com/repos/OpenGenus/cosmos/contents/{+path}","compare_url":"https://api.github.com/repos/OpenGenus/cosmos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpenGenus/cosmos/merges","archive_url":"https://api.github.com/repos/OpenGenus/cosmos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpenGenus/cosmos/downloads","issues_url":"https://api.github.com/repos/OpenGenus/cosmos/issues{/number}","pulls_url":"https://api.github.com/repos/OpenGenus/cosmos/pulls{/number}","milestones_url":"https://api.github.com/repos/OpenGenus/cosmos/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenGenus/cosmos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpenGenus/cosmos/labels{/name}","releases_url":"https://api.github.com/repos/OpenGenus/cosmos/releases{/id}","deployments_url":"https://api.github.com/repos/OpenGenus/cosmos/deployments","created_at":"2017-09-16T12:07:05Z","updated_at":"2018-10-10T09:08:48Z","pushed_at":"2018-10-09T16:17:12Z","git_url":"git://github.com/OpenGenus/cosmos.git","ssh_url":"git@github.com:OpenGenus/cosmos.git","clone_url":"https://github.com/OpenGenus/cosmos.git","svn_url":"https://github.com/OpenGenus/cosmos","homepage":"https://discourse.opengenus.org","size":36197,"stargazers_count":10090,"watchers_count":10090,"language":"Jupyter Notebook","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2407,"mirror_url":null,"archived":false,"open_issues_count":1051,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":2407,"open_issues":1051,"watchers":10090,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OpenGenus/cosmos/pulls/3779"},"html":{"href":"https://github.com/OpenGenus/cosmos/pull/3779"},"issue":{"href":"https://api.github.com/repos/OpenGenus/cosmos/issues/3779"},"comments":{"href":"https://api.github.com/repos/OpenGenus/cosmos/issues/3779/comments"},"review_comments":{"href":"https://api.github.com/repos/OpenGenus/cosmos/pulls/3779/comments"},"review_comment":{"href":"https://api.github.com/repos/OpenGenus/cosmos/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OpenGenus/cosmos/pulls/3779/commits"},"statuses":{"href":"https://api.github.com/repos/OpenGenus/cosmos/statuses/a7e700b2163840dc42a2dcfe7016b6e4b23b7370"}},"author_association":"NONE"}}
{"actor":{"display_login":"arnavb"}}