{"categories":["\u30d3\u30b8\u30e5\u30a2\u30eb\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","Blockly"],"author_name":"computeralgebra","url":"https://computeralgebra.hatenablog.com/entry/2023/06/24/021255","blog_title":"\u975e\u5c02\u9580\u7684\u30b7\u30f3\u30ae\u30e5\u30e9\u30ea\u30c6\u30a3\u30fc\u7814\u7a76\u6240","author_url":"https://blog.hatena.ne.jp/computeralgebra/","width":"100%","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcomputeralgebra.hatenablog.com%2Fentry%2F2023%2F06%2F24%2F021255\" title=\"\u30d3\u30b8\u30e5\u30a2\u30eb\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0(27) - \u975e\u5c02\u9580\u7684\u30b7\u30f3\u30ae\u30e5\u30e9\u30ea\u30c6\u30a3\u30fc\u7814\u7a76\u6240\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"\u5076\u7f6e\u63db\u30fb\u5947\u7f6e\u63db(4) \u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9(TypeScript)\u306f\u7f6e\u63db\u306e\u8ee2\u5012\u6570\u3092\u6c42\u3081\u307e\u3059\u3002\u3053\u308c\u306f\u6709\u9650\u56de\u306e\u7e70\u308a\u8fd4\u3057\u306a\u306e\u3067\u7d42\u4e86\u3057\u307e\u3059\u3002 function inversion_count(list: number[]): number { var count = 0; for (var i = 0; i < list.length - 1; i++) { for (var j = i + 1; j < list.length; j++) { if (list[i] > list[j]) { count++; } } } return count; } \u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9(TypeScript)\u306f\u30d0\u30d6\u30eb\u30bd\u30fc\u30c8\u3067\u8ee2\u2026","blog_url":"https://computeralgebra.hatenablog.com/","version":"1.0","provider_name":"Hatena Blog","published":"2023-06-24 02:12:55","title":"\u30d3\u30b8\u30e5\u30a2\u30eb\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0(27)","image_url":"https://m.media-amazon.com/images/I/51pe5R4EXxL._SL500_.jpg","provider_url":"https://hatena.blog","type":"rich"}