Python
I typically share detailed explanations, create videos for solving problems and upload them to YouTube. However, I\'m not feeling motivated to do so for today\'
I typically share detailed explanations, create videos for solving problems and upload them to YouTube. However, I\'m not feeling motivated to do so for today\'s problem, so I\'ll just share the Python code here.\n\nI changed the argument names in the function because I don\'t want to use word of die.\n\n# Code\n```\nclass Solution:\n    def poorPigs(self, buckets: int, a: int, b: int) -> int:\n        pigs = 0\n        while (b / a + 1) ** pigs < buckets:\n            pigs += 1\n\n        return pigs \n```\n\n---\n\n\n\u25A0 Subscribe URL\nhttp://www.youtube.com/channel/UC9RMNwYTL3SXCP6ShLWVFww?sub_confirmation=1\n\n\u25A0 Twitter\nhttps://twitter.com/CodingNinjaAZ\n\n### My previous daily coding challenge post and video.\n\npost\nhttps://leetcode.com/problems/count-vowels-permutation/solutions/4218427/video-give-me-10-minutes-how-we-think-about-a-solution-python-javascript-java-c/\n\nvideo\nhttps://youtu.be/SFm0hhVCjl8\n\n\u25A0 Timeline of the video\n`0:04` Convert rules to a diagram\n`1:14` How do you count strings with length of n?\n`3:58` Coding\n`7:39` Time Complexity and Space Complexity\n
['Python3']