{"action":"created","issue":{"url":"https://api.github.com/repos/the-vampiire/hacktoberithms/issues/15","repository_url":"https://api.github.com/repos/the-vampiire/hacktoberithms","labels_url":"https://api.github.com/repos/the-vampiire/hacktoberithms/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/the-vampiire/hacktoberithms/issues/15/comments","events_url":"https://api.github.com/repos/the-vampiire/hacktoberithms/issues/15/events","html_url":"https://github.com/the-vampiire/hacktoberithms/issues/15","id":367018543,"node_id":"MDU6SXNzdWUzNjcwMTg1NDM=","number":15,"title":"Lovely Lucky Lambs","user":{"login":"the-vampiire","id":25523682,"node_id":"MDQ6VXNlcjI1NTIzNjgy","avatar_url":"https://avatars3.githubusercontent.com/u/25523682?v=4","gravatar_id":"","url":"https://api.github.com/users/the-vampiire","html_url":"https://github.com/the-vampiire","followers_url":"https://api.github.com/users/the-vampiire/followers","following_url":"https://api.github.com/users/the-vampiire/following{/other_user}","gists_url":"https://api.github.com/users/the-vampiire/gists{/gist_id}","starred_url":"https://api.github.com/users/the-vampiire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/the-vampiire/subscriptions","organizations_url":"https://api.github.com/users/the-vampiire/orgs","repos_url":"https://api.github.com/users/the-vampiire/repos","events_url":"https://api.github.com/users/the-vampiire/events{/privacy}","received_events_url":"https://api.github.com/users/the-vampiire/received_events","type":"User","site_admin":false},"labels":[{"id":1078802971,"node_id":"MDU6TGFiZWwxMDc4ODAyOTcx","url":"https://api.github.com/repos/the-vampiire/hacktoberithms/labels/Hacktoberfest","name":"Hacktoberfest","color":"000000","default":false},{"id":1078679849,"node_id":"MDU6TGFiZWwxMDc4Njc5ODQ5","url":"https://api.github.com/repos/the-vampiire/hacktoberithms/labels/wizard%20apprentice","name":"wizard apprentice","color":"f7e667","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-05T00:35:19Z","updated_at":"2018-10-05T07:18:27Z","closed_at":null,"author_association":"OWNER","body":"from Google Foobar\r\n\r\n# Challenge\r\n\r\n- Write a function called answer(total_lambs), where total_lambs is the integer number of LAMBs in the handout you are trying to divide. \r\n- It should return an integer which represents the difference between the minimum and maximum number of henchmen who can share the LAMBs (that is, being as generous as possible to those you pay and as stingy as possible, respectively) while still obeying all of the above rules to avoid a revolt.\r\n\r\nProblem Statement:\r\nLovely Lucky LAMBs\r\n==================\r\nBeing a henchman isn't all drudgery. Occasionally, when Commander Lambda is feeling generous, she'll hand out Lucky LAMBs (Lambda's All-purpose Money Bucks). Henchmen can use Lucky LAMBs to buy things like a second pair of socks, a pillow for their bunks, or even a third daily meal!\r\nHowever, actually passing out LAMBs isn't easy. Each henchman squad has a strict seniority ranking which must be respected - or else the henchmen will revolt and you'll all get demoted back to minions again! \r\nThere are 4 key rules which you must follow in order to avoid a revolt:\r\n    1. The most junior henchman (with the least seniority) gets exactly 1 LAMB.  (There will always be at least 1 henchman on a team.)\r\n    2. A henchman will revolt if the person who ranks immediately above them gets more than double the number of LAMBs they do.\r\n    3. A henchman will revolt if the amount of LAMBs given to their next two subordinates combined is more than the number of LAMBs they get.  (Note that the two most junior henchmen won't have two subordinates, so this rule doesn't apply to them.  The 2nd most junior henchman would require at least as many LAMBs as the most junior henchman.)\r\n    4. You can always find more henchmen to pay - the Commander has plenty of employees.  If there are enough LAMBs left over such that another henchman could be added as the most senior while obeying the other rules, you must always add and pay that henchman.\r\n\r\n## notes\r\nNote that you may not be able to hand out all the LAMBs. A single LAMB cannot be subdivided. That is, all henchmen must get a positive integer number of LAMBs.\r\n  For instance, if you had 10 LAMBs and were as generous as possible, you could only pay 3 henchmen (1, 2, and 4 LAMBs, in order of ascending seniority), whereas if you were as stingy as possible, you could pay 4 henchmen (1, 1, 2, and 3 LAMBs). Therefore, answer(10) should return 4-3 = 1.\r\n\r\n## sample inputs / outputs\r\nInputs:\r\n    (int) total_lambs = 10\r\nOutput:\r\n    (int) 1\r\nInputs:\r\n    (int) total_lambs = 143\r\nOutput:\r\n    (int) 3"},"comment":{"url":"https://api.github.com/repos/the-vampiire/hacktoberithms/issues/comments/427269605","html_url":"https://github.com/the-vampiire/hacktoberithms/issues/15#issuecomment-427269605","issue_url":"https://api.github.com/repos/the-vampiire/hacktoberithms/issues/15","id":427269605,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzI2OTYwNQ==","user":{"login":"the-vampiire","id":25523682,"node_id":"MDQ6VXNlcjI1NTIzNjgy","avatar_url":"https://avatars3.githubusercontent.com/u/25523682?v=4","gravatar_id":"","url":"https://api.github.com/users/the-vampiire","html_url":"https://github.com/the-vampiire","followers_url":"https://api.github.com/users/the-vampiire/followers","following_url":"https://api.github.com/users/the-vampiire/following{/other_user}","gists_url":"https://api.github.com/users/the-vampiire/gists{/gist_id}","starred_url":"https://api.github.com/users/the-vampiire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/the-vampiire/subscriptions","organizations_url":"https://api.github.com/users/the-vampiire/orgs","repos_url":"https://api.github.com/users/the-vampiire/repos","events_url":"https://api.github.com/users/the-vampiire/events{/privacy}","received_events_url":"https://api.github.com/users/the-vampiire/received_events","type":"User","site_admin":false},"created_at":"2018-10-05T07:18:27Z","updated_at":"2018-10-05T07:18:27Z","author_association":"OWNER","body":"no limit is set by the problem. no there can be multiple henchman at any seniority level, see the notes section for examples"}}
{"actor":{"display_login":"the-vampiire"}}