{"action":"created","comment":{"url":"https://api.github.com/repos/andriibugaiov/Leetcode/pulls/comments/85452451","pull_request_review_id":6169125,"id":85452451,"diff_hunk":"@@ -0,0 +1,36 @@\n+// Definitions:\n+// m - the size of the first vector\n+// n - the size of the second vector\n+\n+// Time/Space analysis:\n+// T = O(m + n) - amortized\n+// S = O(m + n)\n+class Solution {\n+public:\n+    vector<int> intersect(vector<int>& nums1, vector<int>& nums2) {\n+        // Small optimization to make sure we use less memory\n+        // by storing less elements in the unordered_set.","path":"350_IntersectionOfTwoArrays.cpp","position":12,"original_position":12,"commit_id":"1afb98ee01ec3754a402e76c034344aae3578c3a","original_commit_id":"1afb98ee01ec3754a402e76c034344aae3578c3a","user":{"login":"andriibugaiov","id":7279883,"avatar_url":"https://avatars.githubusercontent.com/u/7279883?v=3","gravatar_id":"","url":"https://api.github.com/users/andriibugaiov","html_url":"https://github.com/andriibugaiov","followers_url":"https://api.github.com/users/andriibugaiov/followers","following_url":"https://api.github.com/users/andriibugaiov/following{/other_user}","gists_url":"https://api.github.com/users/andriibugaiov/gists{/gist_id}","starred_url":"https://api.github.com/users/andriibugaiov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andriibugaiov/subscriptions","organizations_url":"https://api.github.com/users/andriibugaiov/orgs","repos_url":"https://api.github.com/users/andriibugaiov/repos","events_url":"https://api.github.com/users/andriibugaiov/events{/privacy}","received_events_url":"https://api.github.com/users/andriibugaiov/received_events","type":"User","site_admin":false},"body":"It does. Still, for Leetcode tests it gives an adventage.","created_at":"2016-10-28T00:04:36Z","updated_at":"2016-10-28T00:04:36Z","html_url":"https://github.com/andriibugaiov/Leetcode/pull/5#discussion_r85452451","pull_request_url":"https://api.github.com/repos/andriibugaiov/Leetcode/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/andriibugaiov/Leetcode/pulls/comments/85452451"},"html":{"href":"https://github.com/andriibugaiov/Leetcode/pull/5#discussion_r85452451"},"pull_request":{"href":"https://api.github.com/repos/andriibugaiov/Leetcode/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/andriibugaiov/Leetcode/pulls/5","id":91118794,"html_url":"https://github.com/andriibugaiov/Leetcode/pull/5","diff_url":"https://github.com/andriibugaiov/Leetcode/pull/5.diff","patch_url":"https://github.com/andriibugaiov/Leetcode/pull/5.patch","issue_url":"https://api.github.com/repos/andriibugaiov/Leetcode/issues/5","number":5,"state":"open","locked":false,"title":"Create 349_IntersectionOfTwoArrays.cpp","user":{"login":"andriibugaiov","id":7279883,"avatar_url":"https://avatars.githubusercontent.com/u/7279883?v=3","gravatar_id":"","url":"https://api.github.com/users/andriibugaiov","html_url":"https://github.com/andriibugaiov","followers_url":"https://api.github.com/users/andriibugaiov/followers","following_url":"https://api.github.com/users/andriibugaiov/following{/other_user}","gists_url":"https://api.github.com/users/andriibugaiov/gists{/gist_id}","starred_url":"https://api.github.com/users/andriibugaiov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andriibugaiov/subscriptions","organizations_url":"https://api.github.com/users/andriibugaiov/orgs","repos_url":"https://api.github.com/users/andriibugaiov/repos","events_url":"https://api.github.com/users/andriibugaiov/events{/privacy}","received_events_url":"https://api.github.com/users/andriibugaiov/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-27T01:30:03Z","updated_at":"2016-10-28T00:04:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a6ce6e15a2aca4f1173477d22d869a17ee57d123","assignee":{"login":"Yorkio","id":22884429,"avatar_url":"https://avatars.githubusercontent.com/u/22884429?v=3","gravatar_id":"","url":"https://api.github.com/users/Yorkio","html_url":"https://github.com/Yorkio","followers_url":"https://api.github.com/users/Yorkio/followers","following_url":"https://api.github.com/users/Yorkio/following{/other_user}","gists_url":"https://api.github.com/users/Yorkio/gists{/gist_id}","starred_url":"https://api.github.com/users/Yorkio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yorkio/subscriptions","organizations_url":"https://api.github.com/users/Yorkio/orgs","repos_url":"https://api.github.com/users/Yorkio/repos","events_url":"https://api.github.com/users/Yorkio/events{/privacy}","received_events_url":"https://api.github.com/users/Yorkio/received_events","type":"User","site_admin":false},"assignees":[{"login":"Yorkio","id":22884429,"avatar_url":"https://avatars.githubusercontent.com/u/22884429?v=3","gravatar_id":"","url":"https://api.github.com/users/Yorkio","html_url":"https://github.com/Yorkio","followers_url":"https://api.github.com/users/Yorkio/followers","following_url":"https://api.github.com/users/Yorkio/following{/other_user}","gists_url":"https://api.github.com/users/Yorkio/gists{/gist_id}","starred_url":"https://api.github.com/users/Yorkio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yorkio/subscriptions","organizations_url":"https://api.github.com/users/Yorkio/orgs","repos_url":"https://api.github.com/users/Yorkio/repos","events_url":"https://api.github.com/users/Yorkio/events{/privacy}","received_events_url":"https://api.github.com/users/Yorkio/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/andriibugaiov/Leetcode/pulls/5/commits","review_comments_url":"https://api.github.com/repos/andriibugaiov/Leetcode/pulls/5/comments","review_comment_url":"https://api.github.com/repos/andriibugaiov/Leetcode/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andriibugaiov/Leetcode/issues/5/comments","statuses_url":"https://api.github.com/repos/andriibugaiov/Leetcode/statuses/1afb98ee01ec3754a402e76c034344aae3578c3a","head":{"label":"andriibugaiov:review_349","ref":"review_349","sha":"1afb98ee01ec3754a402e76c034344aae3578c3a","user":{"login":"andriibugaiov","id":7279883,"avatar_url":"https://avatars.githubusercontent.com/u/7279883?v=3","gravatar_id":"","url":"https://api.github.com/users/andriibugaiov","html_url":"https://github.com/andriibugaiov","followers_url":"https://api.github.com/users/andriibugaiov/followers","following_url":"https://api.github.com/users/andriibugaiov/following{/other_user}","gists_url":"https://api.github.com/users/andriibugaiov/gists{/gist_id}","starred_url":"https://api.github.com/users/andriibugaiov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andriibugaiov/subscriptions","organizations_url":"https://api.github.com/users/andriibugaiov/orgs","repos_url":"https://api.github.com/users/andriibugaiov/repos","events_url":"https://api.github.com/users/andriibugaiov/events{/privacy}","received_events_url":"https://api.github.com/users/andriibugaiov/received_events","type":"User","site_admin":false},"repo":{"id":71303565,"name":"Leetcode","full_name":"andriibugaiov/Leetcode","owner":{"login":"andriibugaiov","id":7279883,"avatar_url":"https://avatars.githubusercontent.com/u/7279883?v=3","gravatar_id":"","url":"https://api.github.com/users/andriibugaiov","html_url":"https://github.com/andriibugaiov","followers_url":"https://api.github.com/users/andriibugaiov/followers","following_url":"https://api.github.com/users/andriibugaiov/following{/other_user}","gists_url":"https://api.github.com/users/andriibugaiov/gists{/gist_id}","starred_url":"https://api.github.com/users/andriibugaiov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andriibugaiov/subscriptions","organizations_url":"https://api.github.com/users/andriibugaiov/orgs","repos_url":"https://api.github.com/users/andriibugaiov/repos","events_url":"https://api.github.com/users/andriibugaiov/events{/privacy}","received_events_url":"https://api.github.com/users/andriibugaiov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andriibugaiov/Leetcode","description":"-","fork":false,"url":"https://api.github.com/repos/andriibugaiov/Leetcode","forks_url":"https://api.github.com/repos/andriibugaiov/Leetcode/forks","keys_url":"https://api.github.com/repos/andriibugaiov/Leetcode/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andriibugaiov/Leetcode/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andriibugaiov/Leetcode/teams","hooks_url":"https://api.github.com/repos/andriibugaiov/Leetcode/hooks","issue_events_url":"https://api.github.com/repos/andriibugaiov/Leetcode/issues/events{/number}","events_url":"https://api.github.com/repos/andriibugaiov/Leetcode/events","assignees_url":"https://api.github.com/repos/andriibugaiov/Leetcode/assignees{/user}","branches_url":"https://api.github.com/repos/andriibugaiov/Leetcode/branches{/branch}","tags_url":"https://api.github.com/repos/andriibugaiov/Leetcode/tags","blobs_url":"https://api.github.com/repos/andriibugaiov/Leetcode/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andriibugaiov/Leetcode/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andriibugaiov/Leetcode/git/refs{/sha}","trees_url":"https://api.github.com/repos/andriibugaiov/Leetcode/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andriibugaiov/Leetcode/statuses/{sha}","languages_url":"https://api.github.com/repos/andriibugaiov/Leetcode/languages","stargazers_url":"https://api.github.com/repos/andriibugaiov/Leetcode/stargazers","contributors_url":"https://api.github.com/repos/andriibugaiov/Leetcode/contributors","subscribers_url":"https://api.github.com/repos/andriibugaiov/Leetcode/subscribers","subscription_url":"https://api.github.com/repos/andriibugaiov/Leetcode/subscription","commits_url":"https://api.github.com/repos/andriibugaiov/Leetcode/commits{/sha}","git_commits_url":"https://api.github.com/repos/andriibugaiov/Leetcode/git/commits{/sha}","comments_url":"https://api.github.com/repos/andriibugaiov/Leetcode/comments{/number}","issue_comment_url":"https://api.github.com/repos/andriibugaiov/Leetcode/issues/comments{/number}","contents_url":"https://api.github.com/repos/andriibugaiov/Leetcode/contents/{+path}","compare_url":"https://api.github.com/repos/andriibugaiov/Leetcode/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andriibugaiov/Leetcode/merges","archive_url":"https://api.github.com/repos/andriibugaiov/Leetcode/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andriibugaiov/Leetcode/downloads","issues_url":"https://api.github.com/repos/andriibugaiov/Leetcode/issues{/number}","pulls_url":"https://api.github.com/repos/andriibugaiov/Leetcode/pulls{/number}","milestones_url":"https://api.github.com/repos/andriibugaiov/Leetcode/milestones{/number}","notifications_url":"https://api.github.com/repos/andriibugaiov/Leetcode/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andriibugaiov/Leetcode/labels{/name}","releases_url":"https://api.github.com/repos/andriibugaiov/Leetcode/releases{/id}","deployments_url":"https://api.github.com/repos/andriibugaiov/Leetcode/deployments","created_at":"2016-10-19T00:36:29Z","updated_at":"2016-10-19T02:33:53Z","pushed_at":"2016-10-27T02:07:13Z","git_url":"git://github.com/andriibugaiov/Leetcode.git","ssh_url":"git@github.com:andriibugaiov/Leetcode.git","clone_url":"https://github.com/andriibugaiov/Leetcode.git","svn_url":"https://github.com/andriibugaiov/Leetcode","homepage":null,"size":22,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"andriibugaiov:master","ref":"master","sha":"d3edbeddb6965b5e73a2086249aa1c6388bfb489","user":{"login":"andriibugaiov","id":7279883,"avatar_url":"https://avatars.githubusercontent.com/u/7279883?v=3","gravatar_id":"","url":"https://api.github.com/users/andriibugaiov","html_url":"https://github.com/andriibugaiov","followers_url":"https://api.github.com/users/andriibugaiov/followers","following_url":"https://api.github.com/users/andriibugaiov/following{/other_user}","gists_url":"https://api.github.com/users/andriibugaiov/gists{/gist_id}","starred_url":"https://api.github.com/users/andriibugaiov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andriibugaiov/subscriptions","organizations_url":"https://api.github.com/users/andriibugaiov/orgs","repos_url":"https://api.github.com/users/andriibugaiov/repos","events_url":"https://api.github.com/users/andriibugaiov/events{/privacy}","received_events_url":"https://api.github.com/users/andriibugaiov/received_events","type":"User","site_admin":false},"repo":{"id":71303565,"name":"Leetcode","full_name":"andriibugaiov/Leetcode","owner":{"login":"andriibugaiov","id":7279883,"avatar_url":"https://avatars.githubusercontent.com/u/7279883?v=3","gravatar_id":"","url":"https://api.github.com/users/andriibugaiov","html_url":"https://github.com/andriibugaiov","followers_url":"https://api.github.com/users/andriibugaiov/followers","following_url":"https://api.github.com/users/andriibugaiov/following{/other_user}","gists_url":"https://api.github.com/users/andriibugaiov/gists{/gist_id}","starred_url":"https://api.github.com/users/andriibugaiov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andriibugaiov/subscriptions","organizations_url":"https://api.github.com/users/andriibugaiov/orgs","repos_url":"https://api.github.com/users/andriibugaiov/repos","events_url":"https://api.github.com/users/andriibugaiov/events{/privacy}","received_events_url":"https://api.github.com/users/andriibugaiov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andriibugaiov/Leetcode","description":"-","fork":false,"url":"https://api.github.com/repos/andriibugaiov/Leetcode","forks_url":"https://api.github.com/repos/andriibugaiov/Leetcode/forks","keys_url":"https://api.github.com/repos/andriibugaiov/Leetcode/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andriibugaiov/Leetcode/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andriibugaiov/Leetcode/teams","hooks_url":"https://api.github.com/repos/andriibugaiov/Leetcode/hooks","issue_events_url":"https://api.github.com/repos/andriibugaiov/Leetcode/issues/events{/number}","events_url":"https://api.github.com/repos/andriibugaiov/Leetcode/events","assignees_url":"https://api.github.com/repos/andriibugaiov/Leetcode/assignees{/user}","branches_url":"https://api.github.com/repos/andriibugaiov/Leetcode/branches{/branch}","tags_url":"https://api.github.com/repos/andriibugaiov/Leetcode/tags","blobs_url":"https://api.github.com/repos/andriibugaiov/Leetcode/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andriibugaiov/Leetcode/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andriibugaiov/Leetcode/git/refs{/sha}","trees_url":"https://api.github.com/repos/andriibugaiov/Leetcode/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andriibugaiov/Leetcode/statuses/{sha}","languages_url":"https://api.github.com/repos/andriibugaiov/Leetcode/languages","stargazers_url":"https://api.github.com/repos/andriibugaiov/Leetcode/stargazers","contributors_url":"https://api.github.com/repos/andriibugaiov/Leetcode/contributors","subscribers_url":"https://api.github.com/repos/andriibugaiov/Leetcode/subscribers","subscription_url":"https://api.github.com/repos/andriibugaiov/Leetcode/subscription","commits_url":"https://api.github.com/repos/andriibugaiov/Leetcode/commits{/sha}","git_commits_url":"https://api.github.com/repos/andriibugaiov/Leetcode/git/commits{/sha}","comments_url":"https://api.github.com/repos/andriibugaiov/Leetcode/comments{/number}","issue_comment_url":"https://api.github.com/repos/andriibugaiov/Leetcode/issues/comments{/number}","contents_url":"https://api.github.com/repos/andriibugaiov/Leetcode/contents/{+path}","compare_url":"https://api.github.com/repos/andriibugaiov/Leetcode/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andriibugaiov/Leetcode/merges","archive_url":"https://api.github.com/repos/andriibugaiov/Leetcode/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andriibugaiov/Leetcode/downloads","issues_url":"https://api.github.com/repos/andriibugaiov/Leetcode/issues{/number}","pulls_url":"https://api.github.com/repos/andriibugaiov/Leetcode/pulls{/number}","milestones_url":"https://api.github.com/repos/andriibugaiov/Leetcode/milestones{/number}","notifications_url":"https://api.github.com/repos/andriibugaiov/Leetcode/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andriibugaiov/Leetcode/labels{/name}","releases_url":"https://api.github.com/repos/andriibugaiov/Leetcode/releases{/id}","deployments_url":"https://api.github.com/repos/andriibugaiov/Leetcode/deployments","created_at":"2016-10-19T00:36:29Z","updated_at":"2016-10-19T02:33:53Z","pushed_at":"2016-10-27T02:07:13Z","git_url":"git://github.com/andriibugaiov/Leetcode.git","ssh_url":"git@github.com:andriibugaiov/Leetcode.git","clone_url":"https://github.com/andriibugaiov/Leetcode.git","svn_url":"https://github.com/andriibugaiov/Leetcode","homepage":null,"size":22,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/andriibugaiov/Leetcode/pulls/5"},"html":{"href":"https://github.com/andriibugaiov/Leetcode/pull/5"},"issue":{"href":"https://api.github.com/repos/andriibugaiov/Leetcode/issues/5"},"comments":{"href":"https://api.github.com/repos/andriibugaiov/Leetcode/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/andriibugaiov/Leetcode/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/andriibugaiov/Leetcode/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andriibugaiov/Leetcode/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/andriibugaiov/Leetcode/statuses/1afb98ee01ec3754a402e76c034344aae3578c3a"}}}}
{"actor":{"display_login":"andriibugaiov"}}