{"action":"created","issue":{"url":"https://api.github.com/repos/Advanced-Frontend/Daily-Interview-Question/issues/245","repository_url":"https://api.github.com/repos/Advanced-Frontend/Daily-Interview-Question","labels_url":"https://api.github.com/repos/Advanced-Frontend/Daily-Interview-Question/issues/245/labels{/name}","comments_url":"https://api.github.com/repos/Advanced-Frontend/Daily-Interview-Question/issues/245/comments","events_url":"https://api.github.com/repos/Advanced-Frontend/Daily-Interview-Question/issues/245/events","html_url":"https://github.com/Advanced-Frontend/Daily-Interview-Question/issues/245","id":480946431,"node_id":"MDU6SXNzdWU0ODA5NDY0MzE=","number":245,"title":"第 126 题：扑克牌问题","user":{"login":"yygmind","id":18049290,"node_id":"MDQ6VXNlcjE4MDQ5Mjkw","avatar_url":"https://avatars0.githubusercontent.com/u/18049290?v=4","gravatar_id":"","url":"https://api.github.com/users/yygmind","html_url":"https://github.com/yygmind","followers_url":"https://api.github.com/users/yygmind/followers","following_url":"https://api.github.com/users/yygmind/following{/other_user}","gists_url":"https://api.github.com/users/yygmind/gists{/gist_id}","starred_url":"https://api.github.com/users/yygmind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yygmind/subscriptions","organizations_url":"https://api.github.com/users/yygmind/orgs","repos_url":"https://api.github.com/users/yygmind/repos","events_url":"https://api.github.com/users/yygmind/events{/privacy}","received_events_url":"https://api.github.com/users/yygmind/received_events","type":"User","site_admin":false},"labels":[{"id":1441515372,"node_id":"MDU6TGFiZWwxNDQxNTE1Mzcy","url":"https://api.github.com/repos/Advanced-Frontend/Daily-Interview-Question/labels/%E5%A4%B4%E6%9D%A1","name":"头条","color":"dd6656","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":52,"created_at":"2019-08-15T00:38:49Z","updated_at":"2019-11-07T14:21:19Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"有一堆扑克牌，将牌堆第一张放到桌子上，再将接下来的牌堆的第一张放到牌底，如此往复；\r\n\r\n最后桌子上的牌顺序为： (牌底) 1,2,3,4,5,6,7,8,9,10,11,12,13 (牌顶)；\r\n\r\n问：原来那堆牌的顺序，用函数实现。"},"comment":{"url":"https://api.github.com/repos/Advanced-Frontend/Daily-Interview-Question/issues/comments/551099397","html_url":"https://github.com/Advanced-Frontend/Daily-Interview-Question/issues/245#issuecomment-551099397","issue_url":"https://api.github.com/repos/Advanced-Frontend/Daily-Interview-Question/issues/245","id":551099397,"node_id":"MDEyOklzc3VlQ29tbWVudDU1MTA5OTM5Nw==","user":{"login":"Hunterang","id":42212645,"node_id":"MDQ6VXNlcjQyMjEyNjQ1","avatar_url":"https://avatars1.githubusercontent.com/u/42212645?v=4","gravatar_id":"","url":"https://api.github.com/users/Hunterang","html_url":"https://github.com/Hunterang","followers_url":"https://api.github.com/users/Hunterang/followers","following_url":"https://api.github.com/users/Hunterang/following{/other_user}","gists_url":"https://api.github.com/users/Hunterang/gists{/gist_id}","starred_url":"https://api.github.com/users/Hunterang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hunterang/subscriptions","organizations_url":"https://api.github.com/users/Hunterang/orgs","repos_url":"https://api.github.com/users/Hunterang/repos","events_url":"https://api.github.com/users/Hunterang/events{/privacy}","received_events_url":"https://api.github.com/users/Hunterang/received_events","type":"User","site_admin":false},"created_at":"2019-11-07T14:21:19Z","updated_at":"2019-11-07T14:21:19Z","author_association":"NONE","body":"```\r\n       function poker(arr) {\r\n         let collect = []\r\n         while (arr.length) {\r\n           collect.push(arr.pop())\r\n\r\n           if(collect.length>1 && arr.length) {\r\n\r\n             collect = [...collect.slice(1), collect[0] ]\r\n\r\n           }\r\n         }\r\n         return collect\r\n       }\r\n```"}}
{"actor":{"display_login":"Hunterang"}}