{"id":27496,"date":"2024-10-27T14:12:08","date_gmt":"2024-10-27T14:12:08","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=27496"},"modified":"2024-11-26T07:17:47","modified_gmt":"2024-11-26T07:17:47","slug":"c-%ec%bd%94%eb%94%a9%ed%85%8c%ec%8a%a4%ed%8a%b8-%ea%b0%95%ec%a2%8c-%ec%9b%90%ed%95%98%eb%8a%94-%ec%a0%95%ec%88%98-%ec%b0%be%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/27496\/","title":{"rendered":"C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc6d0\ud558\ub294 \uc815\uc218 \ucc3e\uae30"},"content":{"rendered":"<p><body><\/p>\n<section>\n<h2>\ubb38\uc81c \uc124\uba85<\/h2>\n<p>\uc8fc\uc5b4\uc9c4 \uc815\uc218 \ubc30\uc5f4 <code>arr<\/code>\uc5d0\uc11c \ud2b9\uc815\ud55c \uc815\uc218 <code>x<\/code>\uc758 \uc874\uc7ac \uc5ec\ubd80\ub97c \ud655\uc778\ud558\ub294 \ubb38\uc81c\uc785\ub2c8\ub2e4. \uc815\uc218 <code>x<\/code>\uac00 \ubc30\uc5f4\uc5d0 \uc874\uc7ac\ud558\uba74 <code>true<\/code>\ub97c \ubc18\ud658\ud558\uace0, \uc874\uc7ac\ud558\uc9c0 \uc54a\uc73c\uba74 <code>false<\/code>\ub97c \ubc18\ud658\ud574\uc57c \ud569\ub2c8\ub2e4.<\/p>\n<h3>\uc785\ub825 \ud615\uc2dd<\/h3>\n<ul>\n<li>\uc815\uc218 \ubc30\uc5f4 <code>arr<\/code> (1 \u2264 <code>arr.Length<\/code> \u2264 100,000)<\/li>\n<li>\uac80\uc0c9\ud560 \uc815\uc218 <code>x<\/code> (-1,000,000 \u2264 <code>x<\/code> \u2264 1,000,000)<\/li>\n<\/ul>\n<h3>\ucd9c\ub825 \ud615\uc2dd<\/h3>\n<ul>\n<li>\uc815\uc218 <code>x<\/code>\uac00 \ubc30\uc5f4\uc5d0 \uc874\uc7ac\ud558\uba74 <code>true<\/code>, \uc544\ub2c8\uba74 <code>false<\/code>\ub97c \ubc18\ud658\ud574\uc57c \ud569\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h3>\uc608\uc2dc \uc785\ub825\uacfc \ucd9c\ub825<\/h3>\n<pre><code>\uc785\ub825: arr = [1, 2, 3, 4, 5], x = 3\n\ucd9c\ub825: true\n\n\uc785\ub825: arr = [1, 2, 3, 4, 5], x = 6\n\ucd9c\ub825: false<\/code><\/pre>\n<\/section>\n<section>\n<h2>\ubb38\uc81c \uc811\uadfc \ubc29\ubc95<\/h2>\n<p>\uc774 \ubb38\uc81c\ub97c \ud574\uacb0\ud558\ub294 \ub370\uc5d0\ub294 \uc5ec\ub7ec \uac00\uc9c0 \ubc29\ubc95\uc774 \uc788\uc2b5\ub2c8\ub2e4. \uac00\uc7a5 \uac04\ub2e8\ud55c \ubc29\ubc95\uc740 \ubc30\uc5f4\uc744 \uc21c\ucc28\uc801\uc73c\ub85c \ud0d0\uc0c9\ud558\uc5ec \uc8fc\uc5b4\uc9c4 \uc815\uc218\uac00 \uc874\uc7ac\ud558\ub294\uc9c0 \ud655\uc778\ud558\ub294 \uac83\uc785\ub2c8\ub2e4. \ud558\uc9c0\ub9cc \ubc30\uc5f4\uc758 \ud06c\uae30\uac00 \ucee4\uc9c8\uc218\ub85d \uc131\ub2a5\uc774 \ub5a8\uc5b4\uc9c8 \uc218 \uc788\uc73c\ubbc0\ub85c, \ub354 \ud6a8\uc728\uc801\uc778 \uc54c\uace0\ub9ac\uc998\uc744 \uc0ac\uc6a9\ud560 \ud544\uc694\uac00 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>\ud6a8\uc728\uc801\uc778 \uc811\uadfc\ubc95<\/h3>\n<p>\uc815\uc218 \ubc30\uc5f4\uc774 \uc815\ub82c\ub418\uc5b4 \uc788\ub2e4\uba74 \uc774\uc9c4 \ud0d0\uc0c9(Binary Search) \uc54c\uace0\ub9ac\uc998\uc744 \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774\uc9c4 \ud0d0\uc0c9\uc740 \ubc30\uc5f4\uc744 \ubc18\uc73c\ub85c \ub098\ub204\uc5b4\uac00\uba70 \uac80\uc0c9\uc744 \uc218\ud589\ud558\uae30 \ub54c\ubb38\uc5d0 \ud3c9\uade0\uc801\uc73c\ub85c O(log n) \uc2dc\uac04 \ubcf5\uc7a1\ub3c4\ub85c \uc2e4\ud589\ub429\ub2c8\ub2e4.<\/p>\n<h3>\uc120\ud0dd \uac00\ub2a5\ud55c \ubc29\ubc95<\/h3>\n<ol>\n<li>\uc21c\ucc28 \ud0d0\uc0c9(Linear Search): O(n) &#8211; \ubc30\uc5f4\uc758 \uac01 \uc694\uc18c\ub97c \ud558\ub098\uc529 \ube44\uad50.<\/li>\n<li>\uc774\uc9c4 \ud0d0\uc0c9(Binary Search): O(log n) &#8211; \ubc30\uc5f4\uc774 \uc815\ub82c\ub418\uc5b4 \uc788\uc744 \uacbd\uc6b0.<\/li>\n<li>\ud574\uc2dc\uc14b(HashSet) \uc0ac\uc6a9: O(1) &#8211; \ud574\uc2dc\uc14b\uc744 \uc774\uc6a9\ud574 \ube60\ub978 \uac80\uc0c9 \uc2dc\uac04 \ud655\ubcf4.<\/li>\n<\/ol>\n<\/section>\n<section>\n<h2>\ucf54\ub4dc \uad6c\ud604<\/h2>\n<p>\uc704\uc5d0\uc11c \uc124\uba85\ud55c \ubc29\ubc95 \uc911 \uc774\uc9c4 \ud0d0\uc0c9\uc744 \uc0ac\uc6a9\ud558\uc5ec \ucf54\ub4dc\ub97c \uad6c\ud604\ud574\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc544\ub798\ub294 C# \uc5b8\uc5b4\ub85c \uc791\uc131\ub41c \ucf54\ub4dc\uc785\ub2c8\ub2e4.<\/p>\n<pre><code>using System;\n\nclass Program\n{\n    static void Main()\n    {\n        int[] arr = { 1, 2, 3, 4, 5 };\n        int x = 3;\n        bool result = Contains(arr, x);\n        Console.WriteLine(result);  \/\/ true\n        \n        x = 6;\n        result = Contains(arr, x);\n        Console.WriteLine(result);  \/\/ false\n    }\n\n    static bool Contains(int[] arr, int x)\n    {\n        int left = 0;\n        int right = arr.Length - 1;\n\n        while (left &lt;= right)\n        {\n            int mid = left + (right - left) \/ 2;\n\n            \/\/ x\uac00 \uc911\uac04\uac12\uacfc \uac19\uc73c\uba74 true \ubc18\ud658\n            if (arr[mid] == x)\n                return true;\n            \/\/ x\uac00 \uc911\uac04\uac12\ubcf4\ub2e4 \uc791\uc73c\uba74 \uc67c\ucabd \ubd80\ubd84 \ud0d0\uc0c9\n            else if (arr[mid] &gt; x)\n                right = mid - 1;\n            \/\/ x\uac00 \uc911\uac04\uac12\ubcf4\ub2e4 \ud06c\uba74 \uc624\ub978\ucabd \ubd80\ubd84 \ud0d0\uc0c9\n            else\n                left = mid + 1;\n        }\n\n        return false; \/\/ x\uac00 \ubc30\uc5f4\uc5d0 \uc874\uc7ac\ud558\uc9c0 \uc54a\uc74c\n    }\n}<\/code><\/pre>\n<\/section>\n<section>\n<h2>\ubcf5\uc7a1\ub3c4 \ubd84\uc11d<\/h2>\n<h3>\uc2dc\uac04 \ubcf5\uc7a1\ub3c4<\/h3>\n<p>\uc774\uc9c4 \ud0d0\uc0c9\uc758 \uacbd\uc6b0, \ucd5c\uc545\uc758 \uacbd\uc6b0\uc5d0\ub3c4 O(log n)\uc758 \ud6a8\uc728\uc131\uc744 \ubcf4\uc785\ub2c8\ub2e4. \uc774\ub294 \ud0d0\uc0c9\ud560 \uc218 \uc788\ub294 \ubc94\uc704\uac00 \uc808\ubc18\uc529 \uc904\uc5b4\ub4e4\uae30 \ub54c\ubb38\uc785\ub2c8\ub2e4.<\/p>\n<h3>\uacf5\uac04 \ubcf5\uc7a1\ub3c4<\/h3>\n<p>\uc774 \uc54c\uace0\ub9ac\uc998\uc740 O(1)\uc758 \uacf5\uac04 \ubcf5\uc7a1\ub3c4\ub97c \uac00\uc9d1\ub2c8\ub2e4. \ucd94\uac00\uc801\uc778 \ub370\uc774\ud130 \uad6c\uc870\ub97c \uc0ac\uc6a9\ud558\uc9c0 \uc54a\uae30 \ub54c\ubb38\uc5d0 \ub9e4\uc6b0 \uba54\ubaa8\ub9ac \ud6a8\uc728\uc801\uc785\ub2c8\ub2e4.<\/p>\n<\/section>\n<section>\n<h2>\ub9c8\ubb34\ub9ac<\/h2>\n<p>\uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 \uc6d0\ud558\ub294 \uc815\uc218\ub97c \ucc3e\ub294 \ubb38\uc81c\ub97c \ub2e4\ub904\ubcf4\uc558\uc2b5\ub2c8\ub2e4. \ubc30\uc5f4\uc758 \ud06c\uae30\ub098 \ud2b9\uc131\uc5d0 \ub530\ub77c \ub2e4\uc591\ud55c \uc54c\uace0\ub9ac\uc998\uc744 \uc0ac\uc6a9\ud560 \uc218 \uc788\uc73c\uba70, \uac01 \uc54c\uace0\ub9ac\uc998\uc758 \uc7a5\ub2e8\uc810\uc744 \uc774\ud574\ud558\ub294 \uac83\uc774 \uc911\uc694\ud569\ub2c8\ub2e4. \uc774\uc9c4 \ud0d0\uc0c9 \uc678\uc5d0\ub3c4 \ud574\uc2dc\uc14b\uacfc \uac19\uc740 \uc790\ub8cc\uad6c\uc870\ub97c \ud65c\uc6a9\ud558\uba74 \uc6d0\uc18c\uc758 \uc874\uc7ac \uc5ec\ubd80\ub97c \ub354\uc6b1 \ube60\ub974\uac8c \ud655\uc778\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc55e\uc73c\ub85c\ub3c4 \ub2e4\uc591\ud55c \ubb38\uc81c\ub97c \ud480\uc5b4\ubcf4\uba70 \ub354 \ub9ce\uc740 \uacbd\ud5d8\uc744 \uc313\uae30\ub97c \ubc14\ub78d\ub2c8\ub2e4.<\/p>\n<\/section>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ubb38\uc81c \uc124\uba85 \uc8fc\uc5b4\uc9c4 \uc815\uc218 \ubc30\uc5f4 arr\uc5d0\uc11c \ud2b9\uc815\ud55c \uc815\uc218 x\uc758 \uc874\uc7ac \uc5ec\ubd80\ub97c \ud655\uc778\ud558\ub294 \ubb38\uc81c\uc785\ub2c8\ub2e4. \uc815\uc218 x\uac00 \ubc30\uc5f4\uc5d0 \uc874\uc7ac\ud558\uba74 true\ub97c \ubc18\ud658\ud558\uace0, \uc874\uc7ac\ud558\uc9c0 \uc54a\uc73c\uba74 false\ub97c \ubc18\ud658\ud574\uc57c \ud569\ub2c8\ub2e4. \uc785\ub825 \ud615\uc2dd \uc815\uc218 \ubc30\uc5f4 arr (1 \u2264 arr.Length \u2264 100,000) \uac80\uc0c9\ud560 \uc815\uc218 x (-1,000,000 \u2264 x \u2264 1,000,000) \ucd9c\ub825 \ud615\uc2dd \uc815\uc218 x\uac00 \ubc30\uc5f4\uc5d0 \uc874\uc7ac\ud558\uba74 true, \uc544\ub2c8\uba74 false\ub97c \ubc18\ud658\ud574\uc57c \ud569\ub2c8\ub2e4. \uc608\uc2dc \uc785\ub825\uacfc &hellip; <a href=\"https:\/\/atmokpo.com\/w\/27496\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc6d0\ud558\ub294 \uc815\uc218 \ucc3e\uae30&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[24],"tags":[],"class_list":["post-27496","post","type-post","status-publish","format-standard","hentry","category-c--"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc6d0\ud558\ub294 \uc815\uc218 \ucc3e\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/atmokpo.com\/w\/27496\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc6d0\ud558\ub294 \uc815\uc218 \ucc3e\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"\ubb38\uc81c \uc124\uba85 \uc8fc\uc5b4\uc9c4 \uc815\uc218 \ubc30\uc5f4 arr\uc5d0\uc11c \ud2b9\uc815\ud55c \uc815\uc218 x\uc758 \uc874\uc7ac \uc5ec\ubd80\ub97c \ud655\uc778\ud558\ub294 \ubb38\uc81c\uc785\ub2c8\ub2e4. \uc815\uc218 x\uac00 \ubc30\uc5f4\uc5d0 \uc874\uc7ac\ud558\uba74 true\ub97c \ubc18\ud658\ud558\uace0, \uc874\uc7ac\ud558\uc9c0 \uc54a\uc73c\uba74 false\ub97c \ubc18\ud658\ud574\uc57c \ud569\ub2c8\ub2e4. \uc785\ub825 \ud615\uc2dd \uc815\uc218 \ubc30\uc5f4 arr (1 \u2264 arr.Length \u2264 100,000) \uac80\uc0c9\ud560 \uc815\uc218 x (-1,000,000 \u2264 x \u2264 1,000,000) \ucd9c\ub825 \ud615\uc2dd \uc815\uc218 x\uac00 \ubc30\uc5f4\uc5d0 \uc874\uc7ac\ud558\uba74 true, \uc544\ub2c8\uba74 false\ub97c \ubc18\ud658\ud574\uc57c \ud569\ub2c8\ub2e4. \uc608\uc2dc \uc785\ub825\uacfc &hellip; \ub354 \ubcf4\uae30 &quot;C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc6d0\ud558\ub294 \uc815\uc218 \ucc3e\uae30&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/27496\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-27T14:12:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T07:17:47+00:00\" \/>\n<meta name=\"author\" content=\"root\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:site\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"root\" \/>\n\t<meta name=\"twitter:label2\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/atmokpo.com\/w\/27496\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27496\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc6d0\ud558\ub294 \uc815\uc218 \ucc3e\uae30\",\"datePublished\":\"2024-10-27T14:12:08+00:00\",\"dateModified\":\"2024-11-26T07:17:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27496\/\"},\"wordCount\":26,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/27496\/\",\"url\":\"https:\/\/atmokpo.com\/w\/27496\/\",\"name\":\"C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc6d0\ud558\ub294 \uc815\uc218 \ucc3e\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-10-27T14:12:08+00:00\",\"dateModified\":\"2024-11-26T07:17:47+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27496\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/27496\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/27496\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc6d0\ud558\ub294 \uc815\uc218 \ucc3e\uae30\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/atmokpo.com\/w\/#website\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/atmokpo.com\/w\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"contentUrl\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"width\":400,\"height\":400,\"caption\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\"},\"image\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/bebubo4\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\",\"name\":\"root\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"caption\":\"root\"},\"sameAs\":[\"http:\/\/atmokpo.com\/w\"],\"url\":\"https:\/\/atmokpo.com\/w\/author\/root\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc6d0\ud558\ub294 \uc815\uc218 \ucc3e\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/atmokpo.com\/w\/27496\/","og_locale":"ko_KR","og_type":"article","og_title":"C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc6d0\ud558\ub294 \uc815\uc218 \ucc3e\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"\ubb38\uc81c \uc124\uba85 \uc8fc\uc5b4\uc9c4 \uc815\uc218 \ubc30\uc5f4 arr\uc5d0\uc11c \ud2b9\uc815\ud55c \uc815\uc218 x\uc758 \uc874\uc7ac \uc5ec\ubd80\ub97c \ud655\uc778\ud558\ub294 \ubb38\uc81c\uc785\ub2c8\ub2e4. \uc815\uc218 x\uac00 \ubc30\uc5f4\uc5d0 \uc874\uc7ac\ud558\uba74 true\ub97c \ubc18\ud658\ud558\uace0, \uc874\uc7ac\ud558\uc9c0 \uc54a\uc73c\uba74 false\ub97c \ubc18\ud658\ud574\uc57c \ud569\ub2c8\ub2e4. \uc785\ub825 \ud615\uc2dd \uc815\uc218 \ubc30\uc5f4 arr (1 \u2264 arr.Length \u2264 100,000) \uac80\uc0c9\ud560 \uc815\uc218 x (-1,000,000 \u2264 x \u2264 1,000,000) \ucd9c\ub825 \ud615\uc2dd \uc815\uc218 x\uac00 \ubc30\uc5f4\uc5d0 \uc874\uc7ac\ud558\uba74 true, \uc544\ub2c8\uba74 false\ub97c \ubc18\ud658\ud574\uc57c \ud569\ub2c8\ub2e4. \uc608\uc2dc \uc785\ub825\uacfc &hellip; \ub354 \ubcf4\uae30 \"C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc6d0\ud558\ub294 \uc815\uc218 \ucc3e\uae30\"","og_url":"https:\/\/atmokpo.com\/w\/27496\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-10-27T14:12:08+00:00","article_modified_time":"2024-11-26T07:17:47+00:00","author":"root","twitter_card":"summary_large_image","twitter_creator":"@bebubo4","twitter_site":"@bebubo4","twitter_misc":{"\uae00\uc4f4\uc774":"root","\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"1\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/atmokpo.com\/w\/27496\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/27496\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc6d0\ud558\ub294 \uc815\uc218 \ucc3e\uae30","datePublished":"2024-10-27T14:12:08+00:00","dateModified":"2024-11-26T07:17:47+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/27496\/"},"wordCount":26,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/27496\/","url":"https:\/\/atmokpo.com\/w\/27496\/","name":"C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc6d0\ud558\ub294 \uc815\uc218 \ucc3e\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-10-27T14:12:08+00:00","dateModified":"2024-11-26T07:17:47+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/27496\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/27496\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/27496\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"C# \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc6d0\ud558\ub294 \uc815\uc218 \ucc3e\uae30"}]},{"@type":"WebSite","@id":"https:\/\/atmokpo.com\/w\/#website","url":"https:\/\/atmokpo.com\/w\/","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","description":"","publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/atmokpo.com\/w\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/atmokpo.com\/w\/#organization","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","url":"https:\/\/atmokpo.com\/w\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/","url":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","contentUrl":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","width":400,"height":400,"caption":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8"},"image":{"@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/bebubo4"]},{"@type":"Person","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7","name":"root","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","caption":"root"},"sameAs":["http:\/\/atmokpo.com\/w"],"url":"https:\/\/atmokpo.com\/w\/author\/root\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/27496","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/comments?post=27496"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/27496\/revisions"}],"predecessor-version":[{"id":27498,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/27496\/revisions\/27498"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=27496"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=27496"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=27496"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}