{"action":"created","comment":{"url":"https://api.github.com/repos/iiitv/algos/pulls/comments/116380073","pull_request_review_id":37999267,"id":116380073,"diff_hunk":"@@ -0,0 +1,42 @@\n+\n+class longestCommonSubsequence\n+{\n+\t//Function that returns Longest Common Subsequence of two strings\n+\t//Complexity - O( len(str1) * len(str2) )\n+\tstatic String LCS(String str1, String str2)\n+\t{\n+\t\tint [][] arr = new int[str1.length()+1][str2.length()+1];\n+\t\tfor(int i=str1.length()-1;i>=0;i--)\n+\t\t{\n+\t\t\tfor(int j=str2.length()-1;j>=0;j--)\n+\t\t\t{\n+\t\t\t\tif(str1.charAt(i)==str2.charAt(j))\n+\t\t\t\t\tarr[i][j] = arr[i+1][j+1]+1;\n+\t\t\t\telse\n+\t\t\t\t\tarr[i][j] = Math.max(arr[i+1][j] , arr[i][j+1]);","path":"longest_common_subsequence/longestCommonSubsequence.java","position":16,"original_position":16,"commit_id":"390a785e5c5786c95191c7688146655e09d87153","original_commit_id":"390a785e5c5786c95191c7688146655e09d87153","user":{"login":"aashutoshrathi","id":21199234,"avatar_url":"https://avatars1.githubusercontent.com/u/21199234?v=3","gravatar_id":"","url":"https://api.github.com/users/aashutoshrathi","html_url":"https://github.com/aashutoshrathi","followers_url":"https://api.github.com/users/aashutoshrathi/followers","following_url":"https://api.github.com/users/aashutoshrathi/following{/other_user}","gists_url":"https://api.github.com/users/aashutoshrathi/gists{/gist_id}","starred_url":"https://api.github.com/users/aashutoshrathi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aashutoshrathi/subscriptions","organizations_url":"https://api.github.com/users/aashutoshrathi/orgs","repos_url":"https://api.github.com/users/aashutoshrathi/repos","events_url":"https://api.github.com/users/aashutoshrathi/events{/privacy}","received_events_url":"https://api.github.com/users/aashutoshrathi/received_events","type":"User","site_admin":false},"body":"remove one whitespace between `arr[i+1][j]` and `,`","created_at":"2017-05-14T12:48:23Z","updated_at":"2017-05-14T12:48:23Z","html_url":"https://github.com/iiitv/algos/pull/180#discussion_r116380073","pull_request_url":"https://api.github.com/repos/iiitv/algos/pulls/180","_links":{"self":{"href":"https://api.github.com/repos/iiitv/algos/pulls/comments/116380073"},"html":{"href":"https://github.com/iiitv/algos/pull/180#discussion_r116380073"},"pull_request":{"href":"https://api.github.com/repos/iiitv/algos/pulls/180"}}},"pull_request":{"url":"https://api.github.com/repos/iiitv/algos/pulls/180","id":120484690,"html_url":"https://github.com/iiitv/algos/pull/180","diff_url":"https://github.com/iiitv/algos/pull/180.diff","patch_url":"https://github.com/iiitv/algos/pull/180.patch","issue_url":"https://api.github.com/repos/iiitv/algos/issues/180","number":180,"state":"open","locked":false,"title":"Added longest common Subsequence","user":{"login":"TarunISCO","id":20115398,"avatar_url":"https://avatars1.githubusercontent.com/u/20115398?v=3","gravatar_id":"","url":"https://api.github.com/users/TarunISCO","html_url":"https://github.com/TarunISCO","followers_url":"https://api.github.com/users/TarunISCO/followers","following_url":"https://api.github.com/users/TarunISCO/following{/other_user}","gists_url":"https://api.github.com/users/TarunISCO/gists{/gist_id}","starred_url":"https://api.github.com/users/TarunISCO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TarunISCO/subscriptions","organizations_url":"https://api.github.com/users/TarunISCO/orgs","repos_url":"https://api.github.com/users/TarunISCO/repos","events_url":"https://api.github.com/users/TarunISCO/events{/privacy}","received_events_url":"https://api.github.com/users/TarunISCO/received_events","type":"User","site_admin":false},"body":"\r\n\r\nFixes #168 \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-05-14T12:45:10Z","updated_at":"2017-05-14T12:48:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"90346f6b27c8e66dee101bedd555051f86fa4522","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/iiitv/algos/pulls/180/commits","review_comments_url":"https://api.github.com/repos/iiitv/algos/pulls/180/comments","review_comment_url":"https://api.github.com/repos/iiitv/algos/pulls/comments{/number}","comments_url":"https://api.github.com/repos/iiitv/algos/issues/180/comments","statuses_url":"https://api.github.com/repos/iiitv/algos/statuses/390a785e5c5786c95191c7688146655e09d87153","head":{"label":"TarunISCO:adding-longest-common-subsequence","ref":"adding-longest-common-subsequence","sha":"390a785e5c5786c95191c7688146655e09d87153","user":{"login":"TarunISCO","id":20115398,"avatar_url":"https://avatars1.githubusercontent.com/u/20115398?v=3","gravatar_id":"","url":"https://api.github.com/users/TarunISCO","html_url":"https://github.com/TarunISCO","followers_url":"https://api.github.com/users/TarunISCO/followers","following_url":"https://api.github.com/users/TarunISCO/following{/other_user}","gists_url":"https://api.github.com/users/TarunISCO/gists{/gist_id}","starred_url":"https://api.github.com/users/TarunISCO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TarunISCO/subscriptions","organizations_url":"https://api.github.com/users/TarunISCO/orgs","repos_url":"https://api.github.com/users/TarunISCO/repos","events_url":"https://api.github.com/users/TarunISCO/events{/privacy}","received_events_url":"https://api.github.com/users/TarunISCO/received_events","type":"User","site_admin":false},"repo":{"id":91241517,"name":"algos","full_name":"TarunISCO/algos","owner":{"login":"TarunISCO","id":20115398,"avatar_url":"https://avatars1.githubusercontent.com/u/20115398?v=3","gravatar_id":"","url":"https://api.github.com/users/TarunISCO","html_url":"https://github.com/TarunISCO","followers_url":"https://api.github.com/users/TarunISCO/followers","following_url":"https://api.github.com/users/TarunISCO/following{/other_user}","gists_url":"https://api.github.com/users/TarunISCO/gists{/gist_id}","starred_url":"https://api.github.com/users/TarunISCO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TarunISCO/subscriptions","organizations_url":"https://api.github.com/users/TarunISCO/orgs","repos_url":"https://api.github.com/users/TarunISCO/repos","events_url":"https://api.github.com/users/TarunISCO/events{/privacy}","received_events_url":"https://api.github.com/users/TarunISCO/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/TarunISCO/algos","description":"Popular Algorithms and Data Structures implemented in popular languages","fork":true,"url":"https://api.github.com/repos/TarunISCO/algos","forks_url":"https://api.github.com/repos/TarunISCO/algos/forks","keys_url":"https://api.github.com/repos/TarunISCO/algos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TarunISCO/algos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TarunISCO/algos/teams","hooks_url":"https://api.github.com/repos/TarunISCO/algos/hooks","issue_events_url":"https://api.github.com/repos/TarunISCO/algos/issues/events{/number}","events_url":"https://api.github.com/repos/TarunISCO/algos/events","assignees_url":"https://api.github.com/repos/TarunISCO/algos/assignees{/user}","branches_url":"https://api.github.com/repos/TarunISCO/algos/branches{/branch}","tags_url":"https://api.github.com/repos/TarunISCO/algos/tags","blobs_url":"https://api.github.com/repos/TarunISCO/algos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TarunISCO/algos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TarunISCO/algos/git/refs{/sha}","trees_url":"https://api.github.com/repos/TarunISCO/algos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TarunISCO/algos/statuses/{sha}","languages_url":"https://api.github.com/repos/TarunISCO/algos/languages","stargazers_url":"https://api.github.com/repos/TarunISCO/algos/stargazers","contributors_url":"https://api.github.com/repos/TarunISCO/algos/contributors","subscribers_url":"https://api.github.com/repos/TarunISCO/algos/subscribers","subscription_url":"https://api.github.com/repos/TarunISCO/algos/subscription","commits_url":"https://api.github.com/repos/TarunISCO/algos/commits{/sha}","git_commits_url":"https://api.github.com/repos/TarunISCO/algos/git/commits{/sha}","comments_url":"https://api.github.com/repos/TarunISCO/algos/comments{/number}","issue_comment_url":"https://api.github.com/repos/TarunISCO/algos/issues/comments{/number}","contents_url":"https://api.github.com/repos/TarunISCO/algos/contents/{+path}","compare_url":"https://api.github.com/repos/TarunISCO/algos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TarunISCO/algos/merges","archive_url":"https://api.github.com/repos/TarunISCO/algos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TarunISCO/algos/downloads","issues_url":"https://api.github.com/repos/TarunISCO/algos/issues{/number}","pulls_url":"https://api.github.com/repos/TarunISCO/algos/pulls{/number}","milestones_url":"https://api.github.com/repos/TarunISCO/algos/milestones{/number}","notifications_url":"https://api.github.com/repos/TarunISCO/algos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TarunISCO/algos/labels{/name}","releases_url":"https://api.github.com/repos/TarunISCO/algos/releases{/id}","deployments_url":"https://api.github.com/repos/TarunISCO/algos/deployments","created_at":"2017-05-14T12:21:16Z","updated_at":"2017-05-14T12:21:17Z","pushed_at":"2017-05-14T12:26:53Z","git_url":"git://github.com/TarunISCO/algos.git","ssh_url":"git@github.com:TarunISCO/algos.git","clone_url":"https://github.com/TarunISCO/algos.git","svn_url":"https://github.com/TarunISCO/algos","homepage":"","size":94,"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":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"iiitv:master","ref":"master","sha":"12c542023d4bfe6e2e9dbcfea6a5233f38885918","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-05-14T05:53:07Z","pushed_at":"2017-05-14T12:45:11Z","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":94,"stargazers_count":37,"watchers_count":37,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":26,"mirror_url":null,"open_issues_count":25,"forks":26,"open_issues":25,"watchers":37,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/iiitv/algos/pulls/180"},"html":{"href":"https://github.com/iiitv/algos/pull/180"},"issue":{"href":"https://api.github.com/repos/iiitv/algos/issues/180"},"comments":{"href":"https://api.github.com/repos/iiitv/algos/issues/180/comments"},"review_comments":{"href":"https://api.github.com/repos/iiitv/algos/pulls/180/comments"},"review_comment":{"href":"https://api.github.com/repos/iiitv/algos/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/iiitv/algos/pulls/180/commits"},"statuses":{"href":"https://api.github.com/repos/iiitv/algos/statuses/390a785e5c5786c95191c7688146655e09d87153"}}}}
{"actor":{"display_login":"aashutoshrathi"}}