{"action":"created","comment":{"url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/pulls/comments/114461262","pull_request_review_id":35928469,"id":114461262,"diff_hunk":"@@ -8,5 +10,26 @@\n  * but \"(]\" and \"([)]\" are not.\n  */\n public class Q20_ValidParentheses {\n+    public boolean validParentheses(String str) {\n+        if (str == null) {\n+            return false;\n+        }\n+        Stack<Character> stack = new Stack<Character>();\n+        for (char c : str.toCharArray()) {\n+            if (c == '(') {\n+                stack.push(')');\n+                continue;","path":"src/com/vivian/java/leetcode/Q20_ValidParentheses.java","position":20,"original_position":20,"commit_id":"7d5e0277bdf3ba6ace5bdc4a3f783ab83211e6af","original_commit_id":"7d5e0277bdf3ba6ace5bdc4a3f783ab83211e6af","user":{"login":"GeorgeZhiXu","id":14634435,"avatar_url":"https://avatars3.githubusercontent.com/u/14634435?v=3","gravatar_id":"","url":"https://api.github.com/users/GeorgeZhiXu","html_url":"https://github.com/GeorgeZhiXu","followers_url":"https://api.github.com/users/GeorgeZhiXu/followers","following_url":"https://api.github.com/users/GeorgeZhiXu/following{/other_user}","gists_url":"https://api.github.com/users/GeorgeZhiXu/gists{/gist_id}","starred_url":"https://api.github.com/users/GeorgeZhiXu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GeorgeZhiXu/subscriptions","organizations_url":"https://api.github.com/users/GeorgeZhiXu/orgs","repos_url":"https://api.github.com/users/GeorgeZhiXu/repos","events_url":"https://api.github.com/users/GeorgeZhiXu/events{/privacy}","received_events_url":"https://api.github.com/users/GeorgeZhiXu/received_events","type":"User","site_admin":false},"body":"The \"continue\" here is redundant","created_at":"2017-05-03T01:40:23Z","updated_at":"2017-05-03T01:40:36Z","html_url":"https://github.com/VivianWenhuiLiang/LeetCode/pull/13#discussion_r114461262","pull_request_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/pulls/comments/114461262"},"html":{"href":"https://github.com/VivianWenhuiLiang/LeetCode/pull/13#discussion_r114461262"},"pull_request":{"href":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/pulls/13","id":118672987,"html_url":"https://github.com/VivianWenhuiLiang/LeetCode/pull/13","diff_url":"https://github.com/VivianWenhuiLiang/LeetCode/pull/13.diff","patch_url":"https://github.com/VivianWenhuiLiang/LeetCode/pull/13.patch","issue_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/issues/13","number":13,"state":"open","locked":false,"title":"Q14,Q20 done","user":{"login":"VivianWenhuiLiang","id":22624739,"avatar_url":"https://avatars3.githubusercontent.com/u/22624739?v=3","gravatar_id":"","url":"https://api.github.com/users/VivianWenhuiLiang","html_url":"https://github.com/VivianWenhuiLiang","followers_url":"https://api.github.com/users/VivianWenhuiLiang/followers","following_url":"https://api.github.com/users/VivianWenhuiLiang/following{/other_user}","gists_url":"https://api.github.com/users/VivianWenhuiLiang/gists{/gist_id}","starred_url":"https://api.github.com/users/VivianWenhuiLiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VivianWenhuiLiang/subscriptions","organizations_url":"https://api.github.com/users/VivianWenhuiLiang/orgs","repos_url":"https://api.github.com/users/VivianWenhuiLiang/repos","events_url":"https://api.github.com/users/VivianWenhuiLiang/events{/privacy}","received_events_url":"https://api.github.com/users/VivianWenhuiLiang/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-05-03T00:22:01Z","updated_at":"2017-05-03T01:40:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"896ad0fcf2b2dddd2efe819b2f144767496a2e92","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/pulls/13/commits","review_comments_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/pulls/13/comments","review_comment_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/pulls/comments{/number}","comments_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/issues/13/comments","statuses_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/statuses/7d5e0277bdf3ba6ace5bdc4a3f783ab83211e6af","head":{"label":"VivianWenhuiLiang:def","ref":"def","sha":"7d5e0277bdf3ba6ace5bdc4a3f783ab83211e6af","user":{"login":"VivianWenhuiLiang","id":22624739,"avatar_url":"https://avatars3.githubusercontent.com/u/22624739?v=3","gravatar_id":"","url":"https://api.github.com/users/VivianWenhuiLiang","html_url":"https://github.com/VivianWenhuiLiang","followers_url":"https://api.github.com/users/VivianWenhuiLiang/followers","following_url":"https://api.github.com/users/VivianWenhuiLiang/following{/other_user}","gists_url":"https://api.github.com/users/VivianWenhuiLiang/gists{/gist_id}","starred_url":"https://api.github.com/users/VivianWenhuiLiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VivianWenhuiLiang/subscriptions","organizations_url":"https://api.github.com/users/VivianWenhuiLiang/orgs","repos_url":"https://api.github.com/users/VivianWenhuiLiang/repos","events_url":"https://api.github.com/users/VivianWenhuiLiang/events{/privacy}","received_events_url":"https://api.github.com/users/VivianWenhuiLiang/received_events","type":"User","site_admin":false},"repo":{"id":88817730,"name":"LeetCode","full_name":"VivianWenhuiLiang/LeetCode","owner":{"login":"VivianWenhuiLiang","id":22624739,"avatar_url":"https://avatars3.githubusercontent.com/u/22624739?v=3","gravatar_id":"","url":"https://api.github.com/users/VivianWenhuiLiang","html_url":"https://github.com/VivianWenhuiLiang","followers_url":"https://api.github.com/users/VivianWenhuiLiang/followers","following_url":"https://api.github.com/users/VivianWenhuiLiang/following{/other_user}","gists_url":"https://api.github.com/users/VivianWenhuiLiang/gists{/gist_id}","starred_url":"https://api.github.com/users/VivianWenhuiLiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VivianWenhuiLiang/subscriptions","organizations_url":"https://api.github.com/users/VivianWenhuiLiang/orgs","repos_url":"https://api.github.com/users/VivianWenhuiLiang/repos","events_url":"https://api.github.com/users/VivianWenhuiLiang/events{/privacy}","received_events_url":"https://api.github.com/users/VivianWenhuiLiang/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/VivianWenhuiLiang/LeetCode","description":null,"fork":false,"url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode","forks_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/forks","keys_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/keys{/key_id}","collaborators_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/teams","hooks_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/hooks","issue_events_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/issues/events{/number}","events_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/events","assignees_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/assignees{/user}","branches_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/branches{/branch}","tags_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/tags","blobs_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/git/refs{/sha}","trees_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/git/trees{/sha}","statuses_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/statuses/{sha}","languages_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/languages","stargazers_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/stargazers","contributors_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/contributors","subscribers_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/subscribers","subscription_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/subscription","commits_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/commits{/sha}","git_commits_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/git/commits{/sha}","comments_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/comments{/number}","issue_comment_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/issues/comments{/number}","contents_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/contents/{+path}","compare_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/compare/{base}...{head}","merges_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/merges","archive_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/downloads","issues_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/issues{/number}","pulls_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/pulls{/number}","milestones_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/milestones{/number}","notifications_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/labels{/name}","releases_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/releases{/id}","deployments_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/deployments","created_at":"2017-04-20T03:40:56Z","updated_at":"2017-04-21T07:48:44Z","pushed_at":"2017-05-03T00:22:02Z","git_url":"git://github.com/VivianWenhuiLiang/LeetCode.git","ssh_url":"git@github.com:VivianWenhuiLiang/LeetCode.git","clone_url":"https://github.com/VivianWenhuiLiang/LeetCode.git","svn_url":"https://github.com/VivianWenhuiLiang/LeetCode","homepage":null,"size":39,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"base":{"label":"VivianWenhuiLiang:master","ref":"master","sha":"cc662cc892876a9f060dd82bdd84c0ac8f4cc471","user":{"login":"VivianWenhuiLiang","id":22624739,"avatar_url":"https://avatars3.githubusercontent.com/u/22624739?v=3","gravatar_id":"","url":"https://api.github.com/users/VivianWenhuiLiang","html_url":"https://github.com/VivianWenhuiLiang","followers_url":"https://api.github.com/users/VivianWenhuiLiang/followers","following_url":"https://api.github.com/users/VivianWenhuiLiang/following{/other_user}","gists_url":"https://api.github.com/users/VivianWenhuiLiang/gists{/gist_id}","starred_url":"https://api.github.com/users/VivianWenhuiLiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VivianWenhuiLiang/subscriptions","organizations_url":"https://api.github.com/users/VivianWenhuiLiang/orgs","repos_url":"https://api.github.com/users/VivianWenhuiLiang/repos","events_url":"https://api.github.com/users/VivianWenhuiLiang/events{/privacy}","received_events_url":"https://api.github.com/users/VivianWenhuiLiang/received_events","type":"User","site_admin":false},"repo":{"id":88817730,"name":"LeetCode","full_name":"VivianWenhuiLiang/LeetCode","owner":{"login":"VivianWenhuiLiang","id":22624739,"avatar_url":"https://avatars3.githubusercontent.com/u/22624739?v=3","gravatar_id":"","url":"https://api.github.com/users/VivianWenhuiLiang","html_url":"https://github.com/VivianWenhuiLiang","followers_url":"https://api.github.com/users/VivianWenhuiLiang/followers","following_url":"https://api.github.com/users/VivianWenhuiLiang/following{/other_user}","gists_url":"https://api.github.com/users/VivianWenhuiLiang/gists{/gist_id}","starred_url":"https://api.github.com/users/VivianWenhuiLiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VivianWenhuiLiang/subscriptions","organizations_url":"https://api.github.com/users/VivianWenhuiLiang/orgs","repos_url":"https://api.github.com/users/VivianWenhuiLiang/repos","events_url":"https://api.github.com/users/VivianWenhuiLiang/events{/privacy}","received_events_url":"https://api.github.com/users/VivianWenhuiLiang/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/VivianWenhuiLiang/LeetCode","description":null,"fork":false,"url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode","forks_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/forks","keys_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/keys{/key_id}","collaborators_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/teams","hooks_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/hooks","issue_events_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/issues/events{/number}","events_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/events","assignees_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/assignees{/user}","branches_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/branches{/branch}","tags_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/tags","blobs_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/git/refs{/sha}","trees_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/git/trees{/sha}","statuses_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/statuses/{sha}","languages_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/languages","stargazers_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/stargazers","contributors_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/contributors","subscribers_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/subscribers","subscription_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/subscription","commits_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/commits{/sha}","git_commits_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/git/commits{/sha}","comments_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/comments{/number}","issue_comment_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/issues/comments{/number}","contents_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/contents/{+path}","compare_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/compare/{base}...{head}","merges_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/merges","archive_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/downloads","issues_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/issues{/number}","pulls_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/pulls{/number}","milestones_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/milestones{/number}","notifications_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/labels{/name}","releases_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/releases{/id}","deployments_url":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/deployments","created_at":"2017-04-20T03:40:56Z","updated_at":"2017-04-21T07:48:44Z","pushed_at":"2017-05-03T00:22:02Z","git_url":"git://github.com/VivianWenhuiLiang/LeetCode.git","ssh_url":"git@github.com:VivianWenhuiLiang/LeetCode.git","clone_url":"https://github.com/VivianWenhuiLiang/LeetCode.git","svn_url":"https://github.com/VivianWenhuiLiang/LeetCode","homepage":null,"size":39,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/pulls/13"},"html":{"href":"https://github.com/VivianWenhuiLiang/LeetCode/pull/13"},"issue":{"href":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/issues/13"},"comments":{"href":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/VivianWenhuiLiang/LeetCode/statuses/7d5e0277bdf3ba6ace5bdc4a3f783ab83211e6af"}}}}
{"actor":{"display_login":"GeorgeZhiXu"}}