{"action":"created","comment":{"url":"https://api.github.com/repos/iiitv/algos/pulls/comments/120836729","pull_request_review_id":42830407,"id":120836729,"diff_hunk":"@@ -0,0 +1,31 @@\n+/*\n+*  Given a rod of length n length unit and an array of prices that contains prices of all pieces of size smaller than n. \n+*  Determine the maximum new_pricesue obtainable by cutting up the rod and selling the pieces.\n+*  Time Complexity: O(n^2)\n+*  Space Complexity: O(n)\n+*/\n+\n+#include <stdio.h>\n+#include <string.h>\n+\n+#define max(a, b) (a > b)? a : b;\n+\n+int rod_cutting(int *prices) {","path":"rod_cutting_problem/rod_cutting.c","position":13,"original_position":13,"commit_id":"41e311d38ad5d1d2ead0009c14037815769eeacd","original_commit_id":"41e311d38ad5d1d2ead0009c14037815769eeacd","user":{"login":"singhpratyush","id":10860278,"avatar_url":"https://avatars2.githubusercontent.com/u/10860278?v=3","gravatar_id":"","url":"https://api.github.com/users/singhpratyush","html_url":"https://github.com/singhpratyush","followers_url":"https://api.github.com/users/singhpratyush/followers","following_url":"https://api.github.com/users/singhpratyush/following{/other_user}","gists_url":"https://api.github.com/users/singhpratyush/gists{/gist_id}","starred_url":"https://api.github.com/users/singhpratyush/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/singhpratyush/subscriptions","organizations_url":"https://api.github.com/users/singhpratyush/orgs","repos_url":"https://api.github.com/users/singhpratyush/repos","events_url":"https://api.github.com/users/singhpratyush/events{/privacy}","received_events_url":"https://api.github.com/users/singhpratyush/received_events","type":"User","site_admin":false},"body":"`prices` can be `const`.","created_at":"2017-06-08T09:12:13Z","updated_at":"2017-06-08T09:12:52Z","html_url":"https://github.com/iiitv/algos/pull/214#discussion_r120836729","pull_request_url":"https://api.github.com/repos/iiitv/algos/pulls/214","_links":{"self":{"href":"https://api.github.com/repos/iiitv/algos/pulls/comments/120836729"},"html":{"href":"https://github.com/iiitv/algos/pull/214#discussion_r120836729"},"pull_request":{"href":"https://api.github.com/repos/iiitv/algos/pulls/214"}}},"pull_request":{"url":"https://api.github.com/repos/iiitv/algos/pulls/214","id":124591328,"html_url":"https://github.com/iiitv/algos/pull/214","diff_url":"https://github.com/iiitv/algos/pull/214.diff","patch_url":"https://github.com/iiitv/algos/pull/214.patch","issue_url":"https://api.github.com/repos/iiitv/algos/issues/214","number":214,"state":"open","locked":false,"title":"Adding Rod Cutting [C]","user":{"login":"Monal5031","id":21009189,"avatar_url":"https://avatars3.githubusercontent.com/u/21009189?v=3","gravatar_id":"","url":"https://api.github.com/users/Monal5031","html_url":"https://github.com/Monal5031","followers_url":"https://api.github.com/users/Monal5031/followers","following_url":"https://api.github.com/users/Monal5031/following{/other_user}","gists_url":"https://api.github.com/users/Monal5031/gists{/gist_id}","starred_url":"https://api.github.com/users/Monal5031/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Monal5031/subscriptions","organizations_url":"https://api.github.com/users/Monal5031/orgs","repos_url":"https://api.github.com/users/Monal5031/repos","events_url":"https://api.github.com/users/Monal5031/events{/privacy}","received_events_url":"https://api.github.com/users/Monal5031/received_events","type":"User","site_admin":false},"body":"<!--\r\nHi!\r\nThanks for considering contributing to this ever-growing list of algorithm and data structure implementations.\r\nYour contribution is valuable.\r\nIn order to help us evaluate PRs better, we ask you to have a look at the following declaration and check the points you agree with. ( [x] )\r\nPRs which don't agree to all the points mentioned below will be rejected. \r\nAlso make sure that this PR corresponds to one and only one issue. Write the issue number in the space provided below.\r\n-->\r\n\r\nFixes #209 \r\n\r\n\r\n#### By submitting this pull request I confirm I've read and complied with the below declarations.\r\n\r\n- [x] I have read the [Contribution guidelines](https://github.com/iiitv/algos/blob/master/CONTRIBUTING.md) and I am confident that my PR reflects them.\r\n- [x] I have followed the [coding guidelines](https://github.com/iiitv/algos/blob/master/CONTRIBUTING.md#cs) for this project.\r\n- [x] My code follows the [skeleton code structure](https://github.com/iiitv/algos/blob/master/CONTRIBUTING.md#sample).\r\n- [x] This pull request has a descriptive title. For example, `Added {Algorithm/DS name} [{Language}]`, not `Update README.md` or `Added new code`.\r\n- [x] This pull request will be closed if I fail to update it even once in a continuous timespan of 7 days.\r\n","created_at":"2017-06-08T08:14:49Z","updated_at":"2017-06-08T09:12:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e14b01d57088e90d44562c20182dc498aaaa06de","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/iiitv/algos/pulls/214/commits","review_comments_url":"https://api.github.com/repos/iiitv/algos/pulls/214/comments","review_comment_url":"https://api.github.com/repos/iiitv/algos/pulls/comments{/number}","comments_url":"https://api.github.com/repos/iiitv/algos/issues/214/comments","statuses_url":"https://api.github.com/repos/iiitv/algos/statuses/41e311d38ad5d1d2ead0009c14037815769eeacd","head":{"label":"Monal5031:adding-rod-cutting-c","ref":"adding-rod-cutting-c","sha":"41e311d38ad5d1d2ead0009c14037815769eeacd","user":{"login":"Monal5031","id":21009189,"avatar_url":"https://avatars3.githubusercontent.com/u/21009189?v=3","gravatar_id":"","url":"https://api.github.com/users/Monal5031","html_url":"https://github.com/Monal5031","followers_url":"https://api.github.com/users/Monal5031/followers","following_url":"https://api.github.com/users/Monal5031/following{/other_user}","gists_url":"https://api.github.com/users/Monal5031/gists{/gist_id}","starred_url":"https://api.github.com/users/Monal5031/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Monal5031/subscriptions","organizations_url":"https://api.github.com/users/Monal5031/orgs","repos_url":"https://api.github.com/users/Monal5031/repos","events_url":"https://api.github.com/users/Monal5031/events{/privacy}","received_events_url":"https://api.github.com/users/Monal5031/received_events","type":"User","site_admin":false},"repo":{"id":84812432,"name":"algos","full_name":"Monal5031/algos","owner":{"login":"Monal5031","id":21009189,"avatar_url":"https://avatars3.githubusercontent.com/u/21009189?v=3","gravatar_id":"","url":"https://api.github.com/users/Monal5031","html_url":"https://github.com/Monal5031","followers_url":"https://api.github.com/users/Monal5031/followers","following_url":"https://api.github.com/users/Monal5031/following{/other_user}","gists_url":"https://api.github.com/users/Monal5031/gists{/gist_id}","starred_url":"https://api.github.com/users/Monal5031/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Monal5031/subscriptions","organizations_url":"https://api.github.com/users/Monal5031/orgs","repos_url":"https://api.github.com/users/Monal5031/repos","events_url":"https://api.github.com/users/Monal5031/events{/privacy}","received_events_url":"https://api.github.com/users/Monal5031/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Monal5031/algos","description":"Popular Algorithms implemented in popular languages","fork":true,"url":"https://api.github.com/repos/Monal5031/algos","forks_url":"https://api.github.com/repos/Monal5031/algos/forks","keys_url":"https://api.github.com/repos/Monal5031/algos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Monal5031/algos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Monal5031/algos/teams","hooks_url":"https://api.github.com/repos/Monal5031/algos/hooks","issue_events_url":"https://api.github.com/repos/Monal5031/algos/issues/events{/number}","events_url":"https://api.github.com/repos/Monal5031/algos/events","assignees_url":"https://api.github.com/repos/Monal5031/algos/assignees{/user}","branches_url":"https://api.github.com/repos/Monal5031/algos/branches{/branch}","tags_url":"https://api.github.com/repos/Monal5031/algos/tags","blobs_url":"https://api.github.com/repos/Monal5031/algos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Monal5031/algos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Monal5031/algos/git/refs{/sha}","trees_url":"https://api.github.com/repos/Monal5031/algos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Monal5031/algos/statuses/{sha}","languages_url":"https://api.github.com/repos/Monal5031/algos/languages","stargazers_url":"https://api.github.com/repos/Monal5031/algos/stargazers","contributors_url":"https://api.github.com/repos/Monal5031/algos/contributors","subscribers_url":"https://api.github.com/repos/Monal5031/algos/subscribers","subscription_url":"https://api.github.com/repos/Monal5031/algos/subscription","commits_url":"https://api.github.com/repos/Monal5031/algos/commits{/sha}","git_commits_url":"https://api.github.com/repos/Monal5031/algos/git/commits{/sha}","comments_url":"https://api.github.com/repos/Monal5031/algos/comments{/number}","issue_comment_url":"https://api.github.com/repos/Monal5031/algos/issues/comments{/number}","contents_url":"https://api.github.com/repos/Monal5031/algos/contents/{+path}","compare_url":"https://api.github.com/repos/Monal5031/algos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Monal5031/algos/merges","archive_url":"https://api.github.com/repos/Monal5031/algos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Monal5031/algos/downloads","issues_url":"https://api.github.com/repos/Monal5031/algos/issues{/number}","pulls_url":"https://api.github.com/repos/Monal5031/algos/pulls{/number}","milestones_url":"https://api.github.com/repos/Monal5031/algos/milestones{/number}","notifications_url":"https://api.github.com/repos/Monal5031/algos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Monal5031/algos/labels{/name}","releases_url":"https://api.github.com/repos/Monal5031/algos/releases{/id}","deployments_url":"https://api.github.com/repos/Monal5031/algos/deployments","created_at":"2017-03-13T10:14:23Z","updated_at":"2017-04-03T22:22:04Z","pushed_at":"2017-06-08T08:39:40Z","git_url":"git://github.com/Monal5031/algos.git","ssh_url":"git@github.com:Monal5031/algos.git","clone_url":"https://github.com/Monal5031/algos.git","svn_url":"https://github.com/Monal5031/algos","homepage":"","size":109,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"iiitv:master","ref":"master","sha":"f9856ba366256e7e4cb39a3c7904e5df31b2eca4","user":{"login":"iiitv","id":9347727,"avatar_url":"https://avatars2.githubusercontent.com/u/9347727?v=3","gravatar_id":"","url":"https://api.github.com/users/iiitv","html_url":"https://github.com/iiitv","followers_url":"https://api.github.com/users/iiitv/followers","following_url":"https://api.github.com/users/iiitv/following{/other_user}","gists_url":"https://api.github.com/users/iiitv/gists{/gist_id}","starred_url":"https://api.github.com/users/iiitv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iiitv/subscriptions","organizations_url":"https://api.github.com/users/iiitv/orgs","repos_url":"https://api.github.com/users/iiitv/repos","events_url":"https://api.github.com/users/iiitv/events{/privacy}","received_events_url":"https://api.github.com/users/iiitv/received_events","type":"Organization","site_admin":false},"repo":{"id":84344298,"name":"algos","full_name":"iiitv/algos","owner":{"login":"iiitv","id":9347727,"avatar_url":"https://avatars2.githubusercontent.com/u/9347727?v=3","gravatar_id":"","url":"https://api.github.com/users/iiitv","html_url":"https://github.com/iiitv","followers_url":"https://api.github.com/users/iiitv/followers","following_url":"https://api.github.com/users/iiitv/following{/other_user}","gists_url":"https://api.github.com/users/iiitv/gists{/gist_id}","starred_url":"https://api.github.com/users/iiitv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iiitv/subscriptions","organizations_url":"https://api.github.com/users/iiitv/orgs","repos_url":"https://api.github.com/users/iiitv/repos","events_url":"https://api.github.com/users/iiitv/events{/privacy}","received_events_url":"https://api.github.com/users/iiitv/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/iiitv/algos","description":"Popular Algorithms and Data Structures implemented in popular languages","fork":false,"url":"https://api.github.com/repos/iiitv/algos","forks_url":"https://api.github.com/repos/iiitv/algos/forks","keys_url":"https://api.github.com/repos/iiitv/algos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iiitv/algos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iiitv/algos/teams","hooks_url":"https://api.github.com/repos/iiitv/algos/hooks","issue_events_url":"https://api.github.com/repos/iiitv/algos/issues/events{/number}","events_url":"https://api.github.com/repos/iiitv/algos/events","assignees_url":"https://api.github.com/repos/iiitv/algos/assignees{/user}","branches_url":"https://api.github.com/repos/iiitv/algos/branches{/branch}","tags_url":"https://api.github.com/repos/iiitv/algos/tags","blobs_url":"https://api.github.com/repos/iiitv/algos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iiitv/algos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iiitv/algos/git/refs{/sha}","trees_url":"https://api.github.com/repos/iiitv/algos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iiitv/algos/statuses/{sha}","languages_url":"https://api.github.com/repos/iiitv/algos/languages","stargazers_url":"https://api.github.com/repos/iiitv/algos/stargazers","contributors_url":"https://api.github.com/repos/iiitv/algos/contributors","subscribers_url":"https://api.github.com/repos/iiitv/algos/subscribers","subscription_url":"https://api.github.com/repos/iiitv/algos/subscription","commits_url":"https://api.github.com/repos/iiitv/algos/commits{/sha}","git_commits_url":"https://api.github.com/repos/iiitv/algos/git/commits{/sha}","comments_url":"https://api.github.com/repos/iiitv/algos/comments{/number}","issue_comment_url":"https://api.github.com/repos/iiitv/algos/issues/comments{/number}","contents_url":"https://api.github.com/repos/iiitv/algos/contents/{+path}","compare_url":"https://api.github.com/repos/iiitv/algos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iiitv/algos/merges","archive_url":"https://api.github.com/repos/iiitv/algos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iiitv/algos/downloads","issues_url":"https://api.github.com/repos/iiitv/algos/issues{/number}","pulls_url":"https://api.github.com/repos/iiitv/algos/pulls{/number}","milestones_url":"https://api.github.com/repos/iiitv/algos/milestones{/number}","notifications_url":"https://api.github.com/repos/iiitv/algos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iiitv/algos/labels{/name}","releases_url":"https://api.github.com/repos/iiitv/algos/releases{/id}","deployments_url":"https://api.github.com/repos/iiitv/algos/deployments","created_at":"2017-03-08T16:49:57Z","updated_at":"2017-06-08T08:58:46Z","pushed_at":"2017-06-08T08:59:10Z","git_url":"git://github.com/iiitv/algos.git","ssh_url":"git@github.com:iiitv/algos.git","clone_url":"https://github.com/iiitv/algos.git","svn_url":"https://github.com/iiitv/algos","homepage":"","size":113,"stargazers_count":44,"watchers_count":44,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":32,"mirror_url":null,"open_issues_count":25,"forks":32,"open_issues":25,"watchers":44,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/iiitv/algos/pulls/214"},"html":{"href":"https://github.com/iiitv/algos/pull/214"},"issue":{"href":"https://api.github.com/repos/iiitv/algos/issues/214"},"comments":{"href":"https://api.github.com/repos/iiitv/algos/issues/214/comments"},"review_comments":{"href":"https://api.github.com/repos/iiitv/algos/pulls/214/comments"},"review_comment":{"href":"https://api.github.com/repos/iiitv/algos/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/iiitv/algos/pulls/214/commits"},"statuses":{"href":"https://api.github.com/repos/iiitv/algos/statuses/41e311d38ad5d1d2ead0009c14037815769eeacd"}}}}
{"actor":{"display_login":"singhpratyush"}}