{"title":"LeetCode Permutation in String \u3092\u89e3\u3044\u305f","type":"rich","height":"190","description":"\u4e45\u3057\u3076\u308a\u306bleetcode\u3092\u4f7f\u3063\u3066\u307f\u305f\u3002UI\u304c\u5909\u308f\u3063\u3066\u305f\u308a\u9593\u9055\u3048\u305f\u30c6\u30b9\u30c8\u30b1\u30fc\u30b9\u3092\u63d0\u51fa\u3057\u306a\u3044run\u306e\u30c6\u30b9\u30c8\u30b1\u30fc\u30b9\u306b\u8ffd\u52a0\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u305f\u308a\u3057\u3066\u4f7f\u3044\u3084\u3059\u304f\u306a\u3063\u3066\u3044\u305f\u3002 \u554f\u984c leetcode.com \u89e3\u3044\u305f # @param {String} s1 # @param {String} s2 # @return {Bolean} def check_inclusion(s1, s2) chars = s1.chars.group_by(&:itself).transform_values { |num| num.count } targets = s2.chars start = false de\u2026","author_name":"s-takaya1027","width":"100%","version":"1.0","blog_url":"https://takayasugiyama.com/","url":"https://takayasugiyama.com/entry/2023/02/05/035423","published":"2023-02-05 03:54:23","categories":[],"provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakayasugiyama.com%2Fentry%2F2023%2F02%2F05%2F035423\" title=\"LeetCode Permutation in String \u3092\u89e3\u3044\u305f - \u4f55\u304b\u3084\u3063\u3066\u307f\u308b\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/s-takaya1027/","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/s/s-takaya1027/20220520/20220520052830.png","blog_title":"\u4f55\u304b\u3084\u3063\u3066\u307f\u308b\u30d6\u30ed\u30b0","provider_name":"Hatena Blog"}