{"id":29939,"date":"2015-05-11T01:22:26","date_gmt":"2015-05-10T16:22:26","guid":{"rendered":"http:\/\/www.softantenna.com\/wp\/?p=29939"},"modified":"2015-05-11T01:22:27","modified_gmt":"2015-05-10T16:22:27","slug":"5-programming-problems","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/5-programming-problems\/","title":{"rendered":"1\u6642\u9593\u4ee5\u5185\u306b\u89e3\u3051\u306a\u3051\u308c\u3070\u30d7\u30ed\u30b0\u30e9\u30de\u5931\u683c\u3068\u306a\u3063\u3066\u3057\u307e\u30465\u3064\u306e\u554f\u984c\u304c\u8a71\u984c\u306b"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2015\/05\/I992762_16536982.jpg\" alt=\"992762 16536982\" title=\"992762_16536982.jpg\" border=\"0\" width=\"545\" height=\"409\" \/><\/p>\n<p>\u30d7\u30ed\u30b0\u30e9\u30de\u306e\u7d20\u990a\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306e\u7c21\u5358\u306a\u554f\u984c\u3068\u3057\u3066\u6709\u540d\u306a\u300cFizzBuz\u300d\u554f\u984c\u3002\u305f\u3060\u3057\u3053\u308c\u3060\u3051\u6709\u540d\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u3068\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u80fd\u529b\u3092\u8a66\u9a13\u3059\u308b\u305f\u3081\u306e\u65b0\u305f\u306a\u554f\u984c\u304c\u5fc5\u8981\u3068\u3055\u308c\u3066\u3044\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u7d4c\u9a13\u8c4a\u5bcc\u306a\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u958b\u767a\u8005\u3001<a href=\"https:\/\/blog.svpino.com\/about\">Santiago L. Valdarrama<\/a>\u6c0f\u304c\u3001\u300c<a href=\"https:\/\/blog.svpino.com\/2015\/05\/07\/five-programming-problems-every-software-engineer-should-be-able-to-solve-in-less-than-1-hour\">\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u30a8\u30f3\u30b8\u30cb\u30a2\u306a\u3089\u30701\u6642\u9593\u4ee5\u5185\u306b\u89e3\u3051\u306a\u3051\u308c\u3070\u3044\u3051\u306a\u30445\u3064\u306e\u554f\u984c<\/a>\u300d\u3092\u51fa\u984c\u3057\u3001<a href=\"http:\/\/www.reddit.com\/r\/programming\/comments\/358tnp\/five_programming_problems_every_software_engineer\/\">Reddit<\/a>\u306a\u3069\u3067\u8a71\u984c\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e5\u3064\u306e\u554f\u984c\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<p><!--more--><\/p>\n<h2>\u554f\u984c1<\/h2>\n<p>for\u30eb\u30fc\u30d7\u3001while\u30eb\u30fc\u30d7\u3001\u304a\u3088\u3073\u518d\u5e30\u3092\u4f7f\u7528\u3057\u3066\u3001\u30ea\u30b9\u30c8\u5185\u306e\u6570\u5b57\u306e\u5408\u8a08\u3092\u8a08\u7b97\u3059\u308b3\u3064\u306e\u95a2\u6570\u3092\u8a18\u8ff0\u305b\u3088\u3002<\/p>\n<h2>\u554f\u984c2<\/h2>\n<p>\u4ea4\u4e92\u306b\u8981\u7d20\u3092\u53d6\u308b\u3053\u3068\u3067\u30012\u3064\u306e\u30ea\u30b9\u30c8\u3092\u7d50\u5408\u3059\u308b\u95a2\u6570\u3092\u8a18\u8ff0\u305b\u3088\u3002\u4f8b\u3048\u3070 [a, b, c]\u3068[1, 2, 3]\u3068\u3044\u30462\u3064\u306e\u30ea\u30b9\u30c8\u3092\u4e0e\u3048\u308b\u3068\u3001\u95a2\u6570\u306f [a, 1, b, 2, c, 3]\u3092\u8fd4\u3059\u3002<\/p>\n<h2>\u554f\u984c3<\/h2>\n<p>\u6700\u521d\u306e100\u500b\u306e\u30d5\u30a3\u30dc\u30ca\u30c3\u30c1\u6570\u306e\u30ea\u30b9\u30c8\u3092\u8a08\u7b97\u3059\u308b\u95a2\u6570\u3092\u8a18\u8ff0\u305b\u3088\u3002\u5b9a\u7fa9\u3067\u306f\u3001\u30d5\u30a3\u30dc\u30ca\u30c3\u30c1\u6570\u5217\u306e\u6700\u521d\u306e2\u3064\u306e\u6570\u5b57\u306f0\u30681\u3067\u3001\u6b21\u306e\u6570\u306f\u524d\u306e2\u3064\u306e\u5408\u8a08\u3068\u306a\u308b\u3002\u4f8b\u3048\u3070\u6700\u521d\u306e10\u500b\u306e\u30d5\u30a3\u30dc\u30ca\u30c3\u30c1\u6570\u5217\u306f\u30010, 1, 1, 2, 3, 5, 8, 13, 21, 34\u3068\u306a\u308b\u3002<\/p>\n<h2>\u554f\u984c4<\/h2>\n<p>\u6b63\u306e\u6574\u6570\u306e\u30ea\u30b9\u30c8\u3092\u4e0e\u3048\u3089\u308c\u305f\u3068\u304d\u3001\u6570\u3092\u4e26\u3073\u66ff\u3048\u3066\u53ef\u80fd\u306a\u6700\u5927\u6570\u3092\u8fd4\u3059\u95a2\u6570\u3092\u8a18\u8ff0\u305b\u3088\u3002\u4f8b\u3048\u3070\u3001[50, 2, 1, 9]\u304c\u4e0e\u3048\u3089\u308c\u305f\u6642\u300195021\u304c\u7b54\u3048\u3068\u306a\u308b(<a href=\"https:\/\/blog.svpino.com\/2015\/05\/08\/solution-to-problem-4\">\u89e3\u7b54\u4f8b<\/a>)\u3002<\/p>\n<h2>\u554f\u984c5<\/h2>\n<p>1,2,\u2026,9\u306e\u6570\u3092\u3053\u306e\u9806\u5e8f\u3067\u3001\"+\"\u3001\"-\"\u3001\u307e\u305f\u306f\u306a\u306a\u306b\u3082\u305b\u305a\u7d50\u679c\u304c100\u3068\u306a\u308b\u3042\u3089\u3086\u308b\u7d44\u5408\u305b\u3092\u51fa\u529b\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u8a18\u8ff0\u305b\u3088\u3002\u4f8b\u3048\u3070\u30011 + 2 + 34 \u2013 5 + 67 \u2013 8 + 9 = 100\u3068\u306a\u308b(<a href=\"https:\/\/blog.svpino.com\/2015\/05\/08\/solution-to-problem-5-and-some-other-thoughts-about-this-type-of-questions\">\u89e3\u7b54\u4f8b<\/a>)<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p><a href=\"http:\/\/www.reddit.com\/r\/programming\/comments\/358tnp\/five_programming_problems_every_software_engineer\/\">Reddit<\/a>\u3067\u3082\u8a71\u984c\u3068\u306a\u3063\u3066\u3044\u308b\u3088\u3046\u306b\u3001\u554f\u984c1\u301c\u554f\u984c3\u306f\u304b\u306a\u308a\u7c21\u5358\u306a\u306e\u306b\u5bfe\u3057\u3001\u554f\u984c4\u3068\u554f\u984c5\u304c\u6025\u306b\u96e3\u3057\u304f\u306a\u3063\u3066\u3044\u308b\u5370\u8c61\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u3088\u3046\u306a\u3001\u982d\u306e\u4f53\u64cd\u7684\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u6280\u8853\u304c\u3001\u3042\u3089\u3086\u308b\u30d7\u30ed\u30b0\u30e9\u30de\u306b\u5fc5\u9808\u304b\u3069\u3046\u304b\u8b70\u8ad6\u306e\u4f59\u5730\u304c\u3042\u308b\u3068\u3053\u308d\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u89e3\u3051\u306a\u3044\u3088\u308a\u306f\u89e3\u3051\u305f\u307b\u3046\u304c\u304b\u3063\u3053\u826f\u3044\u3068\u306f\u78ba\u5b9f\u306b\u3044\u3048\u305d\u3046\u3067\u3059\u3002\u8155\u306b\u899a\u3048\u306e\u3042\u308b\u30d7\u30ed\u30b0\u30e9\u30de\u306e\u65b9\u306f\u30c1\u30e3\u30ec\u30f3\u30b8\u3057\u3066\u307f\u3066\u306f\u3044\u304b\u304c\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30d7\u30ed\u30b0\u30e9\u30de\u306e\u7d20\u990a\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306e\u7c21\u5358\u306a\u554f\u984c\u3068\u3057\u3066\u6709\u540d\u306a\u300cFizzBuz\u300d\u554f\u984c\u3002\u305f\u3060\u3057\u3053\u308c\u3060\u3051\u6709\u540d\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u3068\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u80fd\u529b\u3092\u8a66\u9a13\u3059\u308b\u305f\u3081\u306e\u65b0\u305f\u306a\u554f\u984c\u304c\u5fc5\u8981\u3068\u3055\u308c\u3066\u3044\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002 \u7d4c\u9a13\u8c4a\u5bcc\u306a\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u958b\u767a\u8005 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":29938,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[75],"tags":[3174,1414],"class_list":["post-29939","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software","tag-problems","tag-programming"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/29939","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=29939"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/29939\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/29938"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=29939"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=29939"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=29939"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}