{"action":"created","comment":{"url":"https://api.github.com/repos/peinanteng/leetcode/pulls/comments/174677148","pull_request_review_id":104075625,"id":174677148,"diff_hunk":"@@ -0,0 +1,18 @@\n+class Solution(object):\n+    def isOneEditDistance(self, s, t):\n+        \"\"\"\n+        :type s: str\n+        :type t: str\n+        :rtype: bool\n+        \"\"\"\n+        m, n = len(s), len(t)\n+        if abs(m - n) > 1:\n+            return False\n+        if m > n:\n+            return self.isOneEditDistance(t, s)\n+        for i in range(m):\n+            if s[i] != t[i]:\n+                if m == n:\n+                    return s[i + 1:] == t[i + 1:]\n+                return s[i : ] == t[i + 1:]","path":"oneEditDistance.py","position":17,"original_position":17,"commit_id":"d2a98dc5ac18d921c6a96cbf8d11e8ab147fe4aa","original_commit_id":"d2a98dc5ac18d921c6a96cbf8d11e8ab147fe4aa","user":{"login":"nkukarl","id":8240960,"avatar_url":"https://avatars1.githubusercontent.com/u/8240960?v=4","gravatar_id":"","url":"https://api.github.com/users/nkukarl","html_url":"https://github.com/nkukarl","followers_url":"https://api.github.com/users/nkukarl/followers","following_url":"https://api.github.com/users/nkukarl/following{/other_user}","gists_url":"https://api.github.com/users/nkukarl/gists{/gist_id}","starred_url":"https://api.github.com/users/nkukarl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkukarl/subscriptions","organizations_url":"https://api.github.com/users/nkukarl/orgs","repos_url":"https://api.github.com/users/nkukarl/repos","events_url":"https://api.github.com/users/nkukarl/events{/privacy}","received_events_url":"https://api.github.com/users/nkukarl/received_events","type":"User","site_admin":false},"body":"`s[i:]`, not `s[i : ]`","created_at":"2018-03-15T04:58:21Z","updated_at":"2018-03-15T04:58:27Z","html_url":"https://github.com/peinanteng/leetcode/pull/72#discussion_r174677148","pull_request_url":"https://api.github.com/repos/peinanteng/leetcode/pulls/72","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/peinanteng/leetcode/pulls/comments/174677148"},"html":{"href":"https://github.com/peinanteng/leetcode/pull/72#discussion_r174677148"},"pull_request":{"href":"https://api.github.com/repos/peinanteng/leetcode/pulls/72"}}},"pull_request":{"url":"https://api.github.com/repos/peinanteng/leetcode/pulls/72","id":175088673,"html_url":"https://github.com/peinanteng/leetcode/pull/72","diff_url":"https://github.com/peinanteng/leetcode/pull/72.diff","patch_url":"https://github.com/peinanteng/leetcode/pull/72.patch","issue_url":"https://api.github.com/repos/peinanteng/leetcode/issues/72","number":72,"state":"open","locked":false,"title":"Q161 Add oneEditDistance.py","user":{"login":"peinanteng","id":33048304,"avatar_url":"https://avatars1.githubusercontent.com/u/33048304?v=4","gravatar_id":"","url":"https://api.github.com/users/peinanteng","html_url":"https://github.com/peinanteng","followers_url":"https://api.github.com/users/peinanteng/followers","following_url":"https://api.github.com/users/peinanteng/following{/other_user}","gists_url":"https://api.github.com/users/peinanteng/gists{/gist_id}","starred_url":"https://api.github.com/users/peinanteng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peinanteng/subscriptions","organizations_url":"https://api.github.com/users/peinanteng/orgs","repos_url":"https://api.github.com/users/peinanteng/repos","events_url":"https://api.github.com/users/peinanteng/events{/privacy}","received_events_url":"https://api.github.com/users/peinanteng/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-14T21:21:26Z","updated_at":"2018-03-15T04:58:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a221bcef36f74f848758528b43493aa90471fdda","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/peinanteng/leetcode/pulls/72/commits","review_comments_url":"https://api.github.com/repos/peinanteng/leetcode/pulls/72/comments","review_comment_url":"https://api.github.com/repos/peinanteng/leetcode/pulls/comments{/number}","comments_url":"https://api.github.com/repos/peinanteng/leetcode/issues/72/comments","statuses_url":"https://api.github.com/repos/peinanteng/leetcode/statuses/d2a98dc5ac18d921c6a96cbf8d11e8ab147fe4aa","head":{"label":"peinanteng:q161","ref":"q161","sha":"d2a98dc5ac18d921c6a96cbf8d11e8ab147fe4aa","user":{"login":"peinanteng","id":33048304,"avatar_url":"https://avatars1.githubusercontent.com/u/33048304?v=4","gravatar_id":"","url":"https://api.github.com/users/peinanteng","html_url":"https://github.com/peinanteng","followers_url":"https://api.github.com/users/peinanteng/followers","following_url":"https://api.github.com/users/peinanteng/following{/other_user}","gists_url":"https://api.github.com/users/peinanteng/gists{/gist_id}","starred_url":"https://api.github.com/users/peinanteng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peinanteng/subscriptions","organizations_url":"https://api.github.com/users/peinanteng/orgs","repos_url":"https://api.github.com/users/peinanteng/repos","events_url":"https://api.github.com/users/peinanteng/events{/privacy}","received_events_url":"https://api.github.com/users/peinanteng/received_events","type":"User","site_admin":false},"repo":{"id":108075018,"name":"leetcode","full_name":"peinanteng/leetcode","owner":{"login":"peinanteng","id":33048304,"avatar_url":"https://avatars1.githubusercontent.com/u/33048304?v=4","gravatar_id":"","url":"https://api.github.com/users/peinanteng","html_url":"https://github.com/peinanteng","followers_url":"https://api.github.com/users/peinanteng/followers","following_url":"https://api.github.com/users/peinanteng/following{/other_user}","gists_url":"https://api.github.com/users/peinanteng/gists{/gist_id}","starred_url":"https://api.github.com/users/peinanteng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peinanteng/subscriptions","organizations_url":"https://api.github.com/users/peinanteng/orgs","repos_url":"https://api.github.com/users/peinanteng/repos","events_url":"https://api.github.com/users/peinanteng/events{/privacy}","received_events_url":"https://api.github.com/users/peinanteng/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/peinanteng/leetcode","description":"This is my leetcode script","fork":false,"url":"https://api.github.com/repos/peinanteng/leetcode","forks_url":"https://api.github.com/repos/peinanteng/leetcode/forks","keys_url":"https://api.github.com/repos/peinanteng/leetcode/keys{/key_id}","collaborators_url":"https://api.github.com/repos/peinanteng/leetcode/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/peinanteng/leetcode/teams","hooks_url":"https://api.github.com/repos/peinanteng/leetcode/hooks","issue_events_url":"https://api.github.com/repos/peinanteng/leetcode/issues/events{/number}","events_url":"https://api.github.com/repos/peinanteng/leetcode/events","assignees_url":"https://api.github.com/repos/peinanteng/leetcode/assignees{/user}","branches_url":"https://api.github.com/repos/peinanteng/leetcode/branches{/branch}","tags_url":"https://api.github.com/repos/peinanteng/leetcode/tags","blobs_url":"https://api.github.com/repos/peinanteng/leetcode/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/peinanteng/leetcode/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/peinanteng/leetcode/git/refs{/sha}","trees_url":"https://api.github.com/repos/peinanteng/leetcode/git/trees{/sha}","statuses_url":"https://api.github.com/repos/peinanteng/leetcode/statuses/{sha}","languages_url":"https://api.github.com/repos/peinanteng/leetcode/languages","stargazers_url":"https://api.github.com/repos/peinanteng/leetcode/stargazers","contributors_url":"https://api.github.com/repos/peinanteng/leetcode/contributors","subscribers_url":"https://api.github.com/repos/peinanteng/leetcode/subscribers","subscription_url":"https://api.github.com/repos/peinanteng/leetcode/subscription","commits_url":"https://api.github.com/repos/peinanteng/leetcode/commits{/sha}","git_commits_url":"https://api.github.com/repos/peinanteng/leetcode/git/commits{/sha}","comments_url":"https://api.github.com/repos/peinanteng/leetcode/comments{/number}","issue_comment_url":"https://api.github.com/repos/peinanteng/leetcode/issues/comments{/number}","contents_url":"https://api.github.com/repos/peinanteng/leetcode/contents/{+path}","compare_url":"https://api.github.com/repos/peinanteng/leetcode/compare/{base}...{head}","merges_url":"https://api.github.com/repos/peinanteng/leetcode/merges","archive_url":"https://api.github.com/repos/peinanteng/leetcode/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/peinanteng/leetcode/downloads","issues_url":"https://api.github.com/repos/peinanteng/leetcode/issues{/number}","pulls_url":"https://api.github.com/repos/peinanteng/leetcode/pulls{/number}","milestones_url":"https://api.github.com/repos/peinanteng/leetcode/milestones{/number}","notifications_url":"https://api.github.com/repos/peinanteng/leetcode/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/peinanteng/leetcode/labels{/name}","releases_url":"https://api.github.com/repos/peinanteng/leetcode/releases{/id}","deployments_url":"https://api.github.com/repos/peinanteng/leetcode/deployments","created_at":"2017-10-24T04:03:42Z","updated_at":"2018-03-14T18:46:25Z","pushed_at":"2018-03-15T02:08:16Z","git_url":"git://github.com/peinanteng/leetcode.git","ssh_url":"git@github.com:peinanteng/leetcode.git","clone_url":"https://github.com/peinanteng/leetcode.git","svn_url":"https://github.com/peinanteng/leetcode","homepage":null,"size":177,"stargazers_count":0,"watchers_count":0,"language":"Python","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":21,"license":null,"forks":0,"open_issues":21,"watchers":0,"default_branch":"master"}},"base":{"label":"peinanteng:master","ref":"master","sha":"b2adc2ac20ed9621a8a5ef1561db1489c63f05f5","user":{"login":"peinanteng","id":33048304,"avatar_url":"https://avatars1.githubusercontent.com/u/33048304?v=4","gravatar_id":"","url":"https://api.github.com/users/peinanteng","html_url":"https://github.com/peinanteng","followers_url":"https://api.github.com/users/peinanteng/followers","following_url":"https://api.github.com/users/peinanteng/following{/other_user}","gists_url":"https://api.github.com/users/peinanteng/gists{/gist_id}","starred_url":"https://api.github.com/users/peinanteng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peinanteng/subscriptions","organizations_url":"https://api.github.com/users/peinanteng/orgs","repos_url":"https://api.github.com/users/peinanteng/repos","events_url":"https://api.github.com/users/peinanteng/events{/privacy}","received_events_url":"https://api.github.com/users/peinanteng/received_events","type":"User","site_admin":false},"repo":{"id":108075018,"name":"leetcode","full_name":"peinanteng/leetcode","owner":{"login":"peinanteng","id":33048304,"avatar_url":"https://avatars1.githubusercontent.com/u/33048304?v=4","gravatar_id":"","url":"https://api.github.com/users/peinanteng","html_url":"https://github.com/peinanteng","followers_url":"https://api.github.com/users/peinanteng/followers","following_url":"https://api.github.com/users/peinanteng/following{/other_user}","gists_url":"https://api.github.com/users/peinanteng/gists{/gist_id}","starred_url":"https://api.github.com/users/peinanteng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peinanteng/subscriptions","organizations_url":"https://api.github.com/users/peinanteng/orgs","repos_url":"https://api.github.com/users/peinanteng/repos","events_url":"https://api.github.com/users/peinanteng/events{/privacy}","received_events_url":"https://api.github.com/users/peinanteng/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/peinanteng/leetcode","description":"This is my leetcode script","fork":false,"url":"https://api.github.com/repos/peinanteng/leetcode","forks_url":"https://api.github.com/repos/peinanteng/leetcode/forks","keys_url":"https://api.github.com/repos/peinanteng/leetcode/keys{/key_id}","collaborators_url":"https://api.github.com/repos/peinanteng/leetcode/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/peinanteng/leetcode/teams","hooks_url":"https://api.github.com/repos/peinanteng/leetcode/hooks","issue_events_url":"https://api.github.com/repos/peinanteng/leetcode/issues/events{/number}","events_url":"https://api.github.com/repos/peinanteng/leetcode/events","assignees_url":"https://api.github.com/repos/peinanteng/leetcode/assignees{/user}","branches_url":"https://api.github.com/repos/peinanteng/leetcode/branches{/branch}","tags_url":"https://api.github.com/repos/peinanteng/leetcode/tags","blobs_url":"https://api.github.com/repos/peinanteng/leetcode/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/peinanteng/leetcode/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/peinanteng/leetcode/git/refs{/sha}","trees_url":"https://api.github.com/repos/peinanteng/leetcode/git/trees{/sha}","statuses_url":"https://api.github.com/repos/peinanteng/leetcode/statuses/{sha}","languages_url":"https://api.github.com/repos/peinanteng/leetcode/languages","stargazers_url":"https://api.github.com/repos/peinanteng/leetcode/stargazers","contributors_url":"https://api.github.com/repos/peinanteng/leetcode/contributors","subscribers_url":"https://api.github.com/repos/peinanteng/leetcode/subscribers","subscription_url":"https://api.github.com/repos/peinanteng/leetcode/subscription","commits_url":"https://api.github.com/repos/peinanteng/leetcode/commits{/sha}","git_commits_url":"https://api.github.com/repos/peinanteng/leetcode/git/commits{/sha}","comments_url":"https://api.github.com/repos/peinanteng/leetcode/comments{/number}","issue_comment_url":"https://api.github.com/repos/peinanteng/leetcode/issues/comments{/number}","contents_url":"https://api.github.com/repos/peinanteng/leetcode/contents/{+path}","compare_url":"https://api.github.com/repos/peinanteng/leetcode/compare/{base}...{head}","merges_url":"https://api.github.com/repos/peinanteng/leetcode/merges","archive_url":"https://api.github.com/repos/peinanteng/leetcode/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/peinanteng/leetcode/downloads","issues_url":"https://api.github.com/repos/peinanteng/leetcode/issues{/number}","pulls_url":"https://api.github.com/repos/peinanteng/leetcode/pulls{/number}","milestones_url":"https://api.github.com/repos/peinanteng/leetcode/milestones{/number}","notifications_url":"https://api.github.com/repos/peinanteng/leetcode/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/peinanteng/leetcode/labels{/name}","releases_url":"https://api.github.com/repos/peinanteng/leetcode/releases{/id}","deployments_url":"https://api.github.com/repos/peinanteng/leetcode/deployments","created_at":"2017-10-24T04:03:42Z","updated_at":"2018-03-14T18:46:25Z","pushed_at":"2018-03-15T02:08:16Z","git_url":"git://github.com/peinanteng/leetcode.git","ssh_url":"git@github.com:peinanteng/leetcode.git","clone_url":"https://github.com/peinanteng/leetcode.git","svn_url":"https://github.com/peinanteng/leetcode","homepage":null,"size":177,"stargazers_count":0,"watchers_count":0,"language":"Python","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":21,"license":null,"forks":0,"open_issues":21,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/peinanteng/leetcode/pulls/72"},"html":{"href":"https://github.com/peinanteng/leetcode/pull/72"},"issue":{"href":"https://api.github.com/repos/peinanteng/leetcode/issues/72"},"comments":{"href":"https://api.github.com/repos/peinanteng/leetcode/issues/72/comments"},"review_comments":{"href":"https://api.github.com/repos/peinanteng/leetcode/pulls/72/comments"},"review_comment":{"href":"https://api.github.com/repos/peinanteng/leetcode/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/peinanteng/leetcode/pulls/72/commits"},"statuses":{"href":"https://api.github.com/repos/peinanteng/leetcode/statuses/d2a98dc5ac18d921c6a96cbf8d11e8ab147fe4aa"}},"author_association":"OWNER"}}
{"actor":{"display_login":"nkukarl"}}