{"action":"created","issue":{"url":"https://api.github.com/repos/CyC2018/Interview-Notebook/issues/291","repository_url":"https://api.github.com/repos/CyC2018/Interview-Notebook","labels_url":"https://api.github.com/repos/CyC2018/Interview-Notebook/issues/291/labels{/name}","comments_url":"https://api.github.com/repos/CyC2018/Interview-Notebook/issues/291/comments","events_url":"https://api.github.com/repos/CyC2018/Interview-Notebook/issues/291/events","html_url":"https://github.com/CyC2018/Interview-Notebook/issues/291","id":335123395,"node_id":"MDU6SXNzdWUzMzUxMjMzOTU=","number":291,"title":"notes/剑指 offer 题解.md#3-数组中重复的数字","user":{"login":"wrfly","id":7827389,"node_id":"MDQ6VXNlcjc4MjczODk=","avatar_url":"https://avatars2.githubusercontent.com/u/7827389?v=4","gravatar_id":"","url":"https://api.github.com/users/wrfly","html_url":"https://github.com/wrfly","followers_url":"https://api.github.com/users/wrfly/followers","following_url":"https://api.github.com/users/wrfly/following{/other_user}","gists_url":"https://api.github.com/users/wrfly/gists{/gist_id}","starred_url":"https://api.github.com/users/wrfly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wrfly/subscriptions","organizations_url":"https://api.github.com/users/wrfly/orgs","repos_url":"https://api.github.com/users/wrfly/repos","events_url":"https://api.github.com/users/wrfly/events{/privacy}","received_events_url":"https://api.github.com/users/wrfly/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-23T19:02:15Z","updated_at":"2018-06-24T04:35:13Z","closed_at":null,"author_association":"NONE","body":"这个代码有问题吧\r\n\r\n```java\r\n    for (int i = 0; i < length; i++) {\r\n        while (nums[i] != i) {\r\n            if (nums[i] == nums[nums[i]]) {\r\n                duplication[0] = nums[i];\r\n                return true;\r\n            }\r\n            swap(nums, i, nums[i]);\r\n        }\r\n    }\r\n```\r\n\r\n> 例如，如果输入长度为 7 的数组 {2, 3, 1, 0, 2, 5}，那么对应的输出是第一个重复的数字 2。\r\n\r\n那如果是 ` {2, 3, 1, 1, 2, 5}`, 没有0的话, 就死循环了啊...\r\n"},"comment":{"url":"https://api.github.com/repos/CyC2018/Interview-Notebook/issues/comments/399728354","html_url":"https://github.com/CyC2018/Interview-Notebook/issues/291#issuecomment-399728354","issue_url":"https://api.github.com/repos/CyC2018/Interview-Notebook/issues/291","id":399728354,"node_id":"MDEyOklzc3VlQ29tbWVudDM5OTcyODM1NA==","user":{"login":"CyC2018","id":36260787,"node_id":"MDQ6VXNlcjM2MjYwNzg3","avatar_url":"https://avatars3.githubusercontent.com/u/36260787?v=4","gravatar_id":"","url":"https://api.github.com/users/CyC2018","html_url":"https://github.com/CyC2018","followers_url":"https://api.github.com/users/CyC2018/followers","following_url":"https://api.github.com/users/CyC2018/following{/other_user}","gists_url":"https://api.github.com/users/CyC2018/gists{/gist_id}","starred_url":"https://api.github.com/users/CyC2018/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CyC2018/subscriptions","organizations_url":"https://api.github.com/users/CyC2018/orgs","repos_url":"https://api.github.com/users/CyC2018/repos","events_url":"https://api.github.com/users/CyC2018/events{/privacy}","received_events_url":"https://api.github.com/users/CyC2018/received_events","type":"User","site_admin":false},"created_at":"2018-06-24T04:35:13Z","updated_at":"2018-06-24T04:35:13Z","author_association":"OWNER","body":"@wrfly 不会死循环"}}
{"actor":{"display_login":"CyC2018"}}