{"id":511,"date":"2020-11-05T21:13:53","date_gmt":"2020-11-05T12:13:53","guid":{"rendered":"https:\/\/outdoor-development.work\/index\/?p=511"},"modified":"2020-11-05T21:30:48","modified_gmt":"2020-11-05T12:30:48","slug":"%e3%80%90go%e3%80%91%e3%80%90%e3%82%a2%e3%83%ab%e3%82%b4%e3%83%aa%e3%82%ba%e3%83%a0%e3%80%91%e3%83%90%e3%83%96%e3%83%ab%e3%82%bd%e3%83%bc%e3%83%88","status":"publish","type":"post","link":"https:\/\/outdoor-development.work\/index\/2020\/11\/05\/%e3%80%90go%e3%80%91%e3%80%90%e3%82%a2%e3%83%ab%e3%82%b4%e3%83%aa%e3%82%ba%e3%83%a0%e3%80%91%e3%83%90%e3%83%96%e3%83%ab%e3%82%bd%e3%83%bc%e3%83%88\/","title":{"rendered":"\u3010Go\u3011\u3010\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3011\u30d0\u30d6\u30eb\u30bd\u30fc\u30c8"},"content":{"rendered":"\n<p><a href=\"https:\/\/outdoor-development.work\/index\/2020\/11\/05\/%e3%80%90%e3%81%be%e3%81%a8%e3%82%81%e3%80%91%e9%80%b1%e9%96%93%e3%82%a2%e3%83%ab%e3%82%b4%e3%83%aa%e3%82%ba%e3%83%a0\/\">\u9031\u9593\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0<\/a><\/p>\n\n\n\n<h2>\u6982\u8981<\/h2>\n\n\n\n<p>\u30bd\u30fc\u30c8\u7cfb\u306e\u4e2d\u3067\u306f\u6709\u540d\u306a\u305f\u3081\u3001\u77e5\u3063\u3066\u3044\u308b\u4eba\u3082\u591a\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30ea\u30b9\u30c8\u306e\u500b\u6570\u304c<strong>n<\/strong>\u3068\u3057\u305f\u5834\u5408\u306b<strong>n(n &#8211; 1)\/2<\/strong>\u56de\u306e\u30eb\u30fc\u30d7\u304c\u884c\u308f\u308c\u308b\u305f\u3081\u30ea\u30b9\u30c8\u6570\u304c\u591a\u3051\u308c\u3070\u591a\u3044\u307b\u3069\u8ca0\u8377\u304c\u9ad8\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305f\u3060\u3057\u3001\u4ed5\u7d44\u307f\u3068\u3057\u3066\u306f\u5358\u7d14\u306a\u305f\u3081\u51e6\u7406\u306e\u8a18\u8ff0\u91cf\u3082\u5c11\u306a\u304f\u30bd\u30fc\u30c8\u3059\u308b\u30ea\u30b9\u30c8\u91cf\u304c\u6c7a\u307e\u3063\u3066\u3044\u308b\u306e\u3067\u3042\u308c\u3070\u5c0e\u5165\u3057\u3084\u3059\u3044\u30bd\u30fc\u30c8\u3068\u3082\u8a00\u3048\u307e\u3059\u3002<\/p>\n\n\n\n<h2>\u30bd\u30fc\u30c8\u624b\u9806<\/h2>\n\n\n\n<ol><li>\u5148\u982d\u306e\u8981\u7d20A\u3068\u305d\u306e\u96a3\u3042\u3046\u8981\u7d20B\u3092\u6bd4\u8f03\u3059\u308b<\/li><li>A\u304cB\u3088\u308a\u5927\u304d\u3044\u306a\u3089\u3001\u8981\u7d20A\u3068B\u306e\u4f4d\u7f6e\u3092\u4ea4\u63db\u3059\u308b\uff08\u5c0f\u3055\u3044\u306e\u3067\u3042\u308c\u3070\u305d\u306e\u307e\u307e\uff09<\/li><li>\uff12\u306e\u51e6\u7406\u3092C\u3001D\u3001E\u3068\u3044\u3063\u305f\u5f62\u3067\u30ea\u30b9\u30c8\u306e\u7d42\u7aef\u307e\u3067\u8981\u7d20\u3092\u6bd4\u8f03\u3059\u308b\uff08\u3053\u306e\u6642\u70b9\u3067\u30ea\u30b9\u30c8\u306e\u6700\u5f8c\u5c3e\u306b\u306f\u4e00\u756a\u5927\u304d\u3044\u5024\u304c\u30bb\u30c3\u30c8\u3055\u308c\u3066\u3044\u308b\uff09<\/li><li>\u30ea\u30b9\u30c8\u306e\u5148\u982d\u306b\u623b\u308a\uff12\u2192\uff13\u306e\u69d8\u306b\u51e6\u7406\u3092\u5b9f\u884c\u3059\u308b\u3002\u305f\u3060\u3057\u3001\u30ea\u30b9\u30c8\u306e\u6700\u5f8c\u5c3e\u306b\u306f\u4e00\u756a\u5927\u304d\u3044\u5024\u304c\u30bb\u30c3\u30c8\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u30ea\u30b9\u30c8\u30b5\u30a4\u30ba &#8211; 1\u307e\u3067\u884c\u3046<\/li><li>\uff14\u306e\u51e6\u7406\u3092\u30ea\u30b9\u30c8\u30b5\u30a4\u30ba\u5206\u3060\u3051\u7e70\u308a\u8fd4\u3057\u305f\u3089\u51e6\u7406\u3092\u7d42\u4e86\u3059\u308b<\/li><\/ol>\n\n\n\n<h2>\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9<\/h2>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"rust\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">package main\n\nimport (\n\t\"fmt\"\n\t\"math\/rand\"\n)\n\nfunc bubbleSort(numbers []int) []int {\n\tfor i, _ := range numbers {\n\t\tfor j, _ := range numbers[0 : len(numbers)-1-i] {\n\t\t\tif numbers[j] > numbers[j+1] {\n\t\t\t\tnumbers[j], numbers[j+1] = numbers[j+1], numbers[j]\n\t\t\t}\n\t\t}\n\t}\n\treturn numbers\n}\n\nfunc main() {\n\t\/\/ 0~999\u307e\u3067\u306e\u30e9\u30f3\u30c0\u30e0\u306a\u6570\u5024\u3092\u751f\u6210\n\tnums := rand.Perm(1000)[:10]\n\n\tfmt.Println(bubbleSort(nums))\n}\n<\/pre>\n\n\n\n<h2>\u5b9f\u884c\u7d50\u679c<\/h2>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">[35 108 130 178 355 384 689 754 828 877]<\/pre>\n\n\n\n<p>\u6570\u5024\u304c\u30bd\u30fc\u30c8\u3055\u308c\u3066\u307e\u3059\u306d\uff01<\/p>\n<div class=\"veu_socialSet veu_contentAddSection\"><script>window.twttr=(function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],t=window.twttr||{};if(d.getElementById(id))return t;js=d.createElement(s);js.id=id;js.src=\"https:\/\/platform.twitter.com\/widgets.js\";fjs.parentNode.insertBefore(js,fjs);t._e=[];t.ready=function(f){t._e.push(f);};return t;}(document,\"script\",\"twitter-wjs\"));<\/script><ul><li class=\"sb_twitter sb_icon\"><a href=\"\/\/twitter.com\/intent\/tweet?url=https%3A%2F%2Foutdoor-development.work%2Findex%2F2020%2F11%2F05%2F%25e3%2580%2590go%25e3%2580%2591%25e3%2580%2590%25e3%2582%25a2%25e3%2583%25ab%25e3%2582%25b4%25e3%2583%25aa%25e3%2582%25ba%25e3%2583%25a0%25e3%2580%2591%25e3%2583%2590%25e3%2583%2596%25e3%2583%25ab%25e3%2582%25bd%25e3%2583%25bc%25e3%2583%2588%2F&amp;text=Outdoor+Development\" target=\"_blank\" ><span class=\"vk_icon_w_r_sns_twitter icon_sns\"><\/span><span class=\"sns_txt\">twitter<\/span><\/a><\/li><\/ul><\/div><!-- [ \/.socialSet ] -->","protected":false},"excerpt":{"rendered":"<p>\u9031\u9593\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0 \u6982\u8981 \u30bd\u30fc\u30c8\u7cfb\u306e\u4e2d\u3067\u306f\u6709\u540d\u306a\u305f\u3081\u3001\u77e5\u3063\u3066\u3044\u308b\u4eba\u3082\u591a\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002 \u30ea\u30b9\u30c8\u306e\u500b\u6570\u304cn\u3068\u3057\u305f\u5834\u5408\u306bn(n &#8211; 1)\/2\u56de\u306e\u30eb\u30fc\u30d7\u304c\u884c\u308f\u308c\u308b\u305f\u3081\u30ea\u30b9\u30c8\u6570\u304c\u591a\u3051\u308c\u3070\u591a\u3044\u307b\u3069\u8ca0\u8377\u304c\u9ad8\u304f\u306a\u308a\u307e\u3059\u3002 \u305f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[7,60,6],"tags":[],"_links":{"self":[{"href":"https:\/\/outdoor-development.work\/index\/wp-json\/wp\/v2\/posts\/511"}],"collection":[{"href":"https:\/\/outdoor-development.work\/index\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/outdoor-development.work\/index\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/outdoor-development.work\/index\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/outdoor-development.work\/index\/wp-json\/wp\/v2\/comments?post=511"}],"version-history":[{"count":5,"href":"https:\/\/outdoor-development.work\/index\/wp-json\/wp\/v2\/posts\/511\/revisions"}],"predecessor-version":[{"id":518,"href":"https:\/\/outdoor-development.work\/index\/wp-json\/wp\/v2\/posts\/511\/revisions\/518"}],"wp:attachment":[{"href":"https:\/\/outdoor-development.work\/index\/wp-json\/wp\/v2\/media?parent=511"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/outdoor-development.work\/index\/wp-json\/wp\/v2\/categories?post=511"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/outdoor-development.work\/index\/wp-json\/wp\/v2\/tags?post=511"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}