{"action":"created","issue":{"url":"https://api.github.com/repos/daftcode/daftacademy-python4beginners-autumn2018/issues/2","repository_url":"https://api.github.com/repos/daftcode/daftacademy-python4beginners-autumn2018","labels_url":"https://api.github.com/repos/daftcode/daftacademy-python4beginners-autumn2018/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/daftcode/daftacademy-python4beginners-autumn2018/issues/2/comments","events_url":"https://api.github.com/repos/daftcode/daftacademy-python4beginners-autumn2018/issues/2/events","html_url":"https://github.com/daftcode/daftacademy-python4beginners-autumn2018/issues/2","id":376451344,"node_id":"MDU6SXNzdWUzNzY0NTEzNDQ=","number":2,"title":"Wykład 1 - Zadanie 4","user":{"login":"Piotr296","id":42346616,"node_id":"MDQ6VXNlcjQyMzQ2NjE2","avatar_url":"https://avatars1.githubusercontent.com/u/42346616?v=4","gravatar_id":"","url":"https://api.github.com/users/Piotr296","html_url":"https://github.com/Piotr296","followers_url":"https://api.github.com/users/Piotr296/followers","following_url":"https://api.github.com/users/Piotr296/following{/other_user}","gists_url":"https://api.github.com/users/Piotr296/gists{/gist_id}","starred_url":"https://api.github.com/users/Piotr296/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Piotr296/subscriptions","organizations_url":"https://api.github.com/users/Piotr296/orgs","repos_url":"https://api.github.com/users/Piotr296/repos","events_url":"https://api.github.com/users/Piotr296/events{/privacy}","received_events_url":"https://api.github.com/users/Piotr296/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2018-11-01T15:48:45Z","updated_at":"2018-11-04T17:20:06Z","closed_at":null,"author_association":"NONE","body":"Czy to zadanie powinno zostać rozwiązane z pomocą powerseta?\r\n\r\ndef pset(myset):\r\n  if not myset: \r\n    return [set()]\r\n\r\n  r = [ ]\r\n  for y in myset:\r\n    sy = set((y,))\r\n    for x in pset(myset - sy):\r\n      if x not in r:\r\n        r.extend([x, x|sy])\r\n  return r\r\n\r\nresult = pset(set(U))\r\nprint(result)\r\n"},"comment":{"url":"https://api.github.com/repos/daftcode/daftacademy-python4beginners-autumn2018/issues/comments/435688179","html_url":"https://github.com/daftcode/daftacademy-python4beginners-autumn2018/issues/2#issuecomment-435688179","issue_url":"https://api.github.com/repos/daftcode/daftacademy-python4beginners-autumn2018/issues/2","id":435688179,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTY4ODE3OQ==","user":{"login":"BielinskiLukasz","id":35973985,"node_id":"MDQ6VXNlcjM1OTczOTg1","avatar_url":"https://avatars0.githubusercontent.com/u/35973985?v=4","gravatar_id":"","url":"https://api.github.com/users/BielinskiLukasz","html_url":"https://github.com/BielinskiLukasz","followers_url":"https://api.github.com/users/BielinskiLukasz/followers","following_url":"https://api.github.com/users/BielinskiLukasz/following{/other_user}","gists_url":"https://api.github.com/users/BielinskiLukasz/gists{/gist_id}","starred_url":"https://api.github.com/users/BielinskiLukasz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BielinskiLukasz/subscriptions","organizations_url":"https://api.github.com/users/BielinskiLukasz/orgs","repos_url":"https://api.github.com/users/BielinskiLukasz/repos","events_url":"https://api.github.com/users/BielinskiLukasz/events{/privacy}","received_events_url":"https://api.github.com/users/BielinskiLukasz/received_events","type":"User","site_admin":false},"created_at":"2018-11-04T17:20:06Z","updated_at":"2018-11-04T17:20:06Z","author_association":"NONE","body":"Widać mamy podobny algorytm, bo mam nawet w takiej samej kolejności :) Niestety wydaje się ok w takim razie, przynajmniej jeżeli chodzi o działanie. Może testy sprawdzają też wydajność?\r\n\r\nSprawdź może jeszcze przypadek pustego seta (czy zwróci set zawierające pusty frozenset), jeden ze skrajnych przypadków :) Może błędnie przypuszczam, że dla \"jakiegoś\" przypadku, który zapewne jest w testach, Twój algorytm wpada w nieskończoną rekurencję, ale warto sprawdzić jeszcze ten przypadek."}}
{"actor":{"display_login":"BielinskiLukasz"}}