{"action":"created","comment":{"url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/pulls/comments/207142935","pull_request_review_id":142692846,"id":207142935,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNzE0MjkzNQ==","diff_hunk":"@@ -0,0 +1,182 @@\n+/**\n+ * @author dipanshu\n+ * this is the immutable class IntSet which uses an array to represent a set of integers in the range 1-1000. \n+ * It supports public methods like isMember, size, isSubSet etc.\n+ *\n+ */\n+\n+public final class IntSet {\n+\n+\tprivate int[] array;\n+\t\n+\t/**\n+\t * It is the class constructor.\n+\t * @param inputArray which initialises the main array with values b/w 1-1000 with no duplicate entry.\n+ \t */\n+\tpublic IntSet(int inputArray[])\n+\t{\n+\t\tarray = new int[1000];","path":"PF/SCF-6/IntSet.java","position":18,"original_position":18,"commit_id":"3c8ebf0ce7dfd3a31a82c141e9c61bfb3235e132","original_commit_id":"3c8ebf0ce7dfd3a31a82c141e9c61bfb3235e132","user":{"login":"chirag-metacube","id":19548829,"node_id":"MDQ6VXNlcjE5NTQ4ODI5","avatar_url":"https://avatars2.githubusercontent.com/u/19548829?v=4","gravatar_id":"","url":"https://api.github.com/users/chirag-metacube","html_url":"https://github.com/chirag-metacube","followers_url":"https://api.github.com/users/chirag-metacube/followers","following_url":"https://api.github.com/users/chirag-metacube/following{/other_user}","gists_url":"https://api.github.com/users/chirag-metacube/gists{/gist_id}","starred_url":"https://api.github.com/users/chirag-metacube/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chirag-metacube/subscriptions","organizations_url":"https://api.github.com/users/chirag-metacube/orgs","repos_url":"https://api.github.com/users/chirag-metacube/repos","events_url":"https://api.github.com/users/chirag-metacube/events{/privacy}","received_events_url":"https://api.github.com/users/chirag-metacube/received_events","type":"User","site_admin":false},"body":"Instead of storing 1000 numbers array, we can just store non zero elements","created_at":"2018-08-02T08:33:33Z","updated_at":"2018-08-02T08:45:28Z","html_url":"https://github.com/meta-dipanshu-sharma/GET2018/pull/10#discussion_r207142935","pull_request_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/pulls/10","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/pulls/comments/207142935"},"html":{"href":"https://github.com/meta-dipanshu-sharma/GET2018/pull/10#discussion_r207142935"},"pull_request":{"href":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/pulls/10","id":203868105,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAzODY4MTA1","html_url":"https://github.com/meta-dipanshu-sharma/GET2018/pull/10","diff_url":"https://github.com/meta-dipanshu-sharma/GET2018/pull/10.diff","patch_url":"https://github.com/meta-dipanshu-sharma/GET2018/pull/10.patch","issue_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/issues/10","number":10,"state":"open","locked":false,"title":"scf 6","user":{"login":"meta-dipanshu-sharma","id":41181764,"node_id":"MDQ6VXNlcjQxMTgxNzY0","avatar_url":"https://avatars0.githubusercontent.com/u/41181764?v=4","gravatar_id":"","url":"https://api.github.com/users/meta-dipanshu-sharma","html_url":"https://github.com/meta-dipanshu-sharma","followers_url":"https://api.github.com/users/meta-dipanshu-sharma/followers","following_url":"https://api.github.com/users/meta-dipanshu-sharma/following{/other_user}","gists_url":"https://api.github.com/users/meta-dipanshu-sharma/gists{/gist_id}","starred_url":"https://api.github.com/users/meta-dipanshu-sharma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meta-dipanshu-sharma/subscriptions","organizations_url":"https://api.github.com/users/meta-dipanshu-sharma/orgs","repos_url":"https://api.github.com/users/meta-dipanshu-sharma/repos","events_url":"https://api.github.com/users/meta-dipanshu-sharma/events{/privacy}","received_events_url":"https://api.github.com/users/meta-dipanshu-sharma/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-07-25T15:03:17Z","updated_at":"2018-08-02T08:45:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"faf2b8c5938bc45bc9370aecc40472ac03baee61","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/pulls/10/commits","review_comments_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/pulls/10/comments","review_comment_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/pulls/comments{/number}","comments_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/issues/10/comments","statuses_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/statuses/3c8ebf0ce7dfd3a31a82c141e9c61bfb3235e132","head":{"label":"meta-dipanshu-sharma:PF/SCF-6","ref":"PF/SCF-6","sha":"3c8ebf0ce7dfd3a31a82c141e9c61bfb3235e132","user":{"login":"meta-dipanshu-sharma","id":41181764,"node_id":"MDQ6VXNlcjQxMTgxNzY0","avatar_url":"https://avatars0.githubusercontent.com/u/41181764?v=4","gravatar_id":"","url":"https://api.github.com/users/meta-dipanshu-sharma","html_url":"https://github.com/meta-dipanshu-sharma","followers_url":"https://api.github.com/users/meta-dipanshu-sharma/followers","following_url":"https://api.github.com/users/meta-dipanshu-sharma/following{/other_user}","gists_url":"https://api.github.com/users/meta-dipanshu-sharma/gists{/gist_id}","starred_url":"https://api.github.com/users/meta-dipanshu-sharma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meta-dipanshu-sharma/subscriptions","organizations_url":"https://api.github.com/users/meta-dipanshu-sharma/orgs","repos_url":"https://api.github.com/users/meta-dipanshu-sharma/repos","events_url":"https://api.github.com/users/meta-dipanshu-sharma/events{/privacy}","received_events_url":"https://api.github.com/users/meta-dipanshu-sharma/received_events","type":"User","site_admin":false},"repo":{"id":140807758,"node_id":"MDEwOlJlcG9zaXRvcnkxNDA4MDc3NTg=","name":"GET2018","full_name":"meta-dipanshu-sharma/GET2018","owner":{"login":"meta-dipanshu-sharma","id":41181764,"node_id":"MDQ6VXNlcjQxMTgxNzY0","avatar_url":"https://avatars0.githubusercontent.com/u/41181764?v=4","gravatar_id":"","url":"https://api.github.com/users/meta-dipanshu-sharma","html_url":"https://github.com/meta-dipanshu-sharma","followers_url":"https://api.github.com/users/meta-dipanshu-sharma/followers","following_url":"https://api.github.com/users/meta-dipanshu-sharma/following{/other_user}","gists_url":"https://api.github.com/users/meta-dipanshu-sharma/gists{/gist_id}","starred_url":"https://api.github.com/users/meta-dipanshu-sharma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meta-dipanshu-sharma/subscriptions","organizations_url":"https://api.github.com/users/meta-dipanshu-sharma/orgs","repos_url":"https://api.github.com/users/meta-dipanshu-sharma/repos","events_url":"https://api.github.com/users/meta-dipanshu-sharma/events{/privacy}","received_events_url":"https://api.github.com/users/meta-dipanshu-sharma/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/meta-dipanshu-sharma/GET2018","description":null,"fork":false,"url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018","forks_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/forks","keys_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/keys{/key_id}","collaborators_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/teams","hooks_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/hooks","issue_events_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/issues/events{/number}","events_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/events","assignees_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/assignees{/user}","branches_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/branches{/branch}","tags_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/tags","blobs_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/git/refs{/sha}","trees_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/git/trees{/sha}","statuses_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/statuses/{sha}","languages_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/languages","stargazers_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/stargazers","contributors_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/contributors","subscribers_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/subscribers","subscription_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/subscription","commits_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/commits{/sha}","git_commits_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/git/commits{/sha}","comments_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/comments{/number}","issue_comment_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/issues/comments{/number}","contents_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/contents/{+path}","compare_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/compare/{base}...{head}","merges_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/merges","archive_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/downloads","issues_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/issues{/number}","pulls_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/pulls{/number}","milestones_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/milestones{/number}","notifications_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/labels{/name}","releases_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/releases{/id}","deployments_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/deployments","created_at":"2018-07-13T06:41:11Z","updated_at":"2018-07-16T09:17:50Z","pushed_at":"2018-08-01T14:13:57Z","git_url":"git://github.com/meta-dipanshu-sharma/GET2018.git","ssh_url":"git@github.com:meta-dipanshu-sharma/GET2018.git","clone_url":"https://github.com/meta-dipanshu-sharma/GET2018.git","svn_url":"https://github.com/meta-dipanshu-sharma/GET2018","homepage":null,"size":60,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":11,"license":null,"forks":0,"open_issues":11,"watchers":0,"default_branch":"master"}},"base":{"label":"meta-dipanshu-sharma:master","ref":"master","sha":"39a15ef68bf8246c89c6f88349f9761388e58cb3","user":{"login":"meta-dipanshu-sharma","id":41181764,"node_id":"MDQ6VXNlcjQxMTgxNzY0","avatar_url":"https://avatars0.githubusercontent.com/u/41181764?v=4","gravatar_id":"","url":"https://api.github.com/users/meta-dipanshu-sharma","html_url":"https://github.com/meta-dipanshu-sharma","followers_url":"https://api.github.com/users/meta-dipanshu-sharma/followers","following_url":"https://api.github.com/users/meta-dipanshu-sharma/following{/other_user}","gists_url":"https://api.github.com/users/meta-dipanshu-sharma/gists{/gist_id}","starred_url":"https://api.github.com/users/meta-dipanshu-sharma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meta-dipanshu-sharma/subscriptions","organizations_url":"https://api.github.com/users/meta-dipanshu-sharma/orgs","repos_url":"https://api.github.com/users/meta-dipanshu-sharma/repos","events_url":"https://api.github.com/users/meta-dipanshu-sharma/events{/privacy}","received_events_url":"https://api.github.com/users/meta-dipanshu-sharma/received_events","type":"User","site_admin":false},"repo":{"id":140807758,"node_id":"MDEwOlJlcG9zaXRvcnkxNDA4MDc3NTg=","name":"GET2018","full_name":"meta-dipanshu-sharma/GET2018","owner":{"login":"meta-dipanshu-sharma","id":41181764,"node_id":"MDQ6VXNlcjQxMTgxNzY0","avatar_url":"https://avatars0.githubusercontent.com/u/41181764?v=4","gravatar_id":"","url":"https://api.github.com/users/meta-dipanshu-sharma","html_url":"https://github.com/meta-dipanshu-sharma","followers_url":"https://api.github.com/users/meta-dipanshu-sharma/followers","following_url":"https://api.github.com/users/meta-dipanshu-sharma/following{/other_user}","gists_url":"https://api.github.com/users/meta-dipanshu-sharma/gists{/gist_id}","starred_url":"https://api.github.com/users/meta-dipanshu-sharma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meta-dipanshu-sharma/subscriptions","organizations_url":"https://api.github.com/users/meta-dipanshu-sharma/orgs","repos_url":"https://api.github.com/users/meta-dipanshu-sharma/repos","events_url":"https://api.github.com/users/meta-dipanshu-sharma/events{/privacy}","received_events_url":"https://api.github.com/users/meta-dipanshu-sharma/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/meta-dipanshu-sharma/GET2018","description":null,"fork":false,"url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018","forks_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/forks","keys_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/keys{/key_id}","collaborators_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/teams","hooks_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/hooks","issue_events_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/issues/events{/number}","events_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/events","assignees_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/assignees{/user}","branches_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/branches{/branch}","tags_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/tags","blobs_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/git/refs{/sha}","trees_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/git/trees{/sha}","statuses_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/statuses/{sha}","languages_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/languages","stargazers_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/stargazers","contributors_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/contributors","subscribers_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/subscribers","subscription_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/subscription","commits_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/commits{/sha}","git_commits_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/git/commits{/sha}","comments_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/comments{/number}","issue_comment_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/issues/comments{/number}","contents_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/contents/{+path}","compare_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/compare/{base}...{head}","merges_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/merges","archive_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/downloads","issues_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/issues{/number}","pulls_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/pulls{/number}","milestones_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/milestones{/number}","notifications_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/labels{/name}","releases_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/releases{/id}","deployments_url":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/deployments","created_at":"2018-07-13T06:41:11Z","updated_at":"2018-07-16T09:17:50Z","pushed_at":"2018-08-01T14:13:57Z","git_url":"git://github.com/meta-dipanshu-sharma/GET2018.git","ssh_url":"git@github.com:meta-dipanshu-sharma/GET2018.git","clone_url":"https://github.com/meta-dipanshu-sharma/GET2018.git","svn_url":"https://github.com/meta-dipanshu-sharma/GET2018","homepage":null,"size":60,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":11,"license":null,"forks":0,"open_issues":11,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/pulls/10"},"html":{"href":"https://github.com/meta-dipanshu-sharma/GET2018/pull/10"},"issue":{"href":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/issues/10"},"comments":{"href":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/meta-dipanshu-sharma/GET2018/statuses/3c8ebf0ce7dfd3a31a82c141e9c61bfb3235e132"}},"author_association":"OWNER"}}
{"actor":{"display_login":"chirag-metacube"}}