{"published":"2022-10-07 15:19:11","blog_url":"https://cindychen0204.hatenablog.com/","height":"190","blog_title":"Cindy's Blog","type":"rich","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcindychen0204.hatenablog.com%2Fentry%2F2022%2F10%2F07%2FLeetCode_78_Subsets\" title=\"LeetCode 78 Subsets - Cindy&#39;s Blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"cindychen0204","image_url":null,"provider_name":"Hatena Blog","description":"Select and not game //select or not game! //if nums.length = n //then you have 2n options //[1,2,3] => 23 = 8 sets class Solution { public List<List<Integer>> subsets(int[] nums) { //select or not select game! //if nums.length = n //then you have 2^n options //[1,2,3] => 2^3 = 8 sets int size = nums\u2026","provider_url":"https://hatena.blog","categories":[],"url":"https://cindychen0204.hatenablog.com/entry/2022/10/07/LeetCode_78_Subsets","author_url":"https://blog.hatena.ne.jp/cindychen0204/","title":"LeetCode 78 Subsets","width":"100%"}