{"width":"100%","description":"\u7d2f\u4e57\u306e\u8a08\u7b97\u3092\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u304f\u3068\u3044\u3046\u8ab2\u984c\u3002\u7c21\u5358\u7c21\u5358\u3002 ;;; Exercise 1.2 (defun power (n p) (if (= p 0) 1 (* n (power n (- p 1))))) \u6f14\u7fd2\u554f\u984c\u306e\u89e3\u7b54\u3092\u898b\u305f\u3089\u3001p\u304c\u5076\u6570\u306e\u6642\u306b\u306f(expr (power n (/ p 2)) 2)\u3068\u3059\u308b\u3053\u3068\u3067O(N)\u2192O(log(N))\u3078\u306e\u9ad8\u901f\u5316\u3092\u56f3\u3063\u305f\u3082\u306e\u304c\u8f09\u3063\u3066\u3044\u307e\u3057\u305f\u3002\u306a\u308b\u307b\u3069\u3001\u3069\u3053\u304b\u3067\u898b\u305f\u3053\u3068\u306e\u3042\u308b\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3002","url":"https://marui.hatenablog.com/entry/20120626/1340662515","published":"2012-06-26 07:15:15","image_url":null,"height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmarui.hatenablog.com%2Fentry%2F20120626%2F1340662515\" title=\" \u6f14\u7fd21.2 - \u4e38\u4e95\u7d9c\u7814\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","blog_url":"https://marui.hatenablog.com/","version":"1.0","blog_title":"\u4e38\u4e95\u7d9c\u7814","categories":["PAIP"],"author_name":"amarui","title":" \u6f14\u7fd21.2","type":"rich","author_url":"https://blog.hatena.ne.jp/amarui/"}