{"id":27545,"date":"2024-10-27T14:41:46","date_gmt":"2024-10-27T14:41:46","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=27545"},"modified":"2024-11-26T07:17:26","modified_gmt":"2024-11-26T07:17:26","slug":"c-%ec%bd%94%eb%94%a9%ed%85%8c%ec%8a%a4%ed%8a%b8-%ea%b0%95%ec%a2%8c-%ea%b0%80%ec%9e%a5-%ea%b8%b8%ea%b2%8c-%ec%a6%9d%ea%b0%80%ed%95%98%eb%8a%94-%eb%b6%80%eb%b6%84-%ec%88%98%ec%97%b4-%ec%b0%be","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/27545\/","title":{"rendered":"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uac00\uc7a5 \uae38\uac8c \uc99d\uac00\ud558\ub294 \ubd80\ubd84 \uc218\uc5f4 \ucc3e\uae30"},"content":{"rendered":"<p><body><\/p>\n<h2>\ubb38\uc81c \uc124\uba85<\/h2>\n<p>\n        \uc8fc\uc5b4\uc9c4 \uc815\uc218 \ubc30\uc5f4\uc5d0\uc11c \uac00\uc7a5 \uae38\uac8c \uc99d\uac00\ud558\ub294 \ubd80\ubd84 \uc218\uc5f4(Longest Increasing Subsequence, LIS)\uc744 \ucc3e\uc544\uc57c \ud569\ub2c8\ub2e4.<br \/>\n        \ubd80\ubd84 \uc218\uc5f4\uc740 \uc6d0\ubcf8 \ubc30\uc5f4\uc5d0\uc11c \uc694\uc18c\uc758 \uc21c\uc11c\ub97c \uc720\uc9c0\ud558\uba70 \uc120\ud0dd\ub41c \uc694\uc18c\ub4e4\ub85c \uad6c\uc131\ub429\ub2c8\ub2e4.<br \/>\n        \uc774 \ubb38\uc81c\ub294 \ub3d9\uc801 \ud504\ub85c\uadf8\ub798\ubc0d(Dynamic Programming) \ub610\ub294 \uc774\ubd84 \ud0d0\uc0c9(Binary Search)\uc744 \ud1b5\ud574 \ud574\uacb0\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n    <\/p>\n<h2>\uc608\uc2dc<\/h2>\n<p>\n<strong>\uc785\ub825:<\/strong> <code>[10, 9, 2, 5, 3, 7, 101, 18]<\/code><br \/>\n<strong>\ucd9c\ub825:<\/strong> <code>4<\/code> (\uac00\uc7a5 \uae34 \uc99d\uac00\ud558\ub294 \ubd80\ubd84 \uc218\uc5f4: [2, 3, 7, 101])\n    <\/p>\n<h2>\ubb38\uc81c \uc811\uadfc \ubc29\ubc95<\/h2>\n<p>\n        \uc774 \ubb38\uc81c\ub97c \ud574\uacb0\ud558\uae30 \uc704\ud55c \ubc29\ubc95\uc740 \uc5ec\ub7ec \uac00\uc9c0\uac00 \uc788\uc2b5\ub2c8\ub2e4. \uac00\uc7a5 \ub300\ud45c\uc801\uc778 \ubc29\ubc95\uc740 \ub3d9\uc801 \ud504\ub85c\uadf8\ub798\ubc0d\uc744 \uc0ac\uc6a9\ud558\ub294 \uac83\uc774\uba70,<br \/>\n        \uc774 \ubc29\ubc95\uc740 O(N^2)\uc758 \uc2dc\uac04 \ubcf5\uc7a1\ub3c4\ub97c \uac00\uc9d1\ub2c8\ub2e4. \uadf8\ub7ec\ub098 \uc774 \ubb38\uc81c\ub294 \uc774\ubd84 \ud0d0\uc0c9\uc744 \uc774\uc6a9\ud558\uc5ec O(N log N)\uc758 \uc2dc\uac04 \ubcf5\uc7a1\ub3c4\ub85c\ub3c4 \ud574\uacb0\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n    <\/p>\n<h3>1. \ub3d9\uc801 \ud504\ub85c\uadf8\ub798\ubc0d(Dynamic Programming) \uc811\uadfc\ubc95<\/h3>\n<p>\n        \ub3d9\uc801 \ud504\ub85c\uadf8\ub798\ubc0d \uc811\uadfc\ubc95\uc758 \ud575\uc2ec\uc740 &#8216;\uc911\uac04 \uacb0\uacfc&#8217;\ub97c \uc800\uc7a5\ud558\uc5ec, \ub3d9\uc77c\ud55c \uacc4\uc0b0\uc744 \ubc18\ubcf5\ud558\uc9c0 \uc54a\ub3c4\ub85d \ud558\ub294 \uac83\uc785\ub2c8\ub2e4.<br \/>\n        \ub2e4\uc74c\uacfc \uac19\uc740 \ub2e8\uacc4\ub85c \uc9c4\ud589\ud569\ub2c8\ub2e4.\n    <\/p>\n<ol>\n<li>\uae38\uc774\ub97c \uc800\uc7a5\ud558\uae30 \uc704\ud55c dp \ubc30\uc5f4\uc744 \ucd08\uae30\ud654\ud569\ub2c8\ub2e4. dp[i]\ub294 i\ubc88\uc9f8 \uc778\ub371\uc2a4\uc758 \uc6d0\uc18c\ub97c \ub05d\uc73c\ub85c \ud558\ub294<br \/>\n        \uc99d\uac00\ud558\ub294 \ubd80\ubd84 \uc218\uc5f4\uc758 \ucd5c\ub300 \uae38\uc774\ub97c \uc800\uc7a5\ud569\ub2c8\ub2e4.<\/li>\n<li>\uc774\uc911 \ubc18\ubcf5\ubb38\uc744 \ud1b5\ud574 \uac01 \uc6d0\uc18c\ub97c \ube44\uad50\ud558\uace0, dp \ubc30\uc5f4\uc744 \uc5c5\ub370\uc774\ud2b8\ud569\ub2c8\ub2e4.<br \/>\n        i\ubc88\uc9f8 \uc6d0\uc18c\uac00 j\ubc88\uc9f8 \uc6d0\uc18c\ubcf4\ub2e4 \ud074 \uacbd\uc6b0, dp[i]\ub97c max(dp[i], dp[j] + 1)\ub85c \uc124\uc815\ud569\ub2c8\ub2e4.<\/li>\n<li>\ucd5c\uc885\uc801\uc73c\ub85c dp \ubc30\uc5f4\uc758 \ucd5c\ub300 \uac12\uc744 \ucc3e\uc544 \ucd9c\ub825\ud569\ub2c8\ub2e4.<\/li>\n<\/ol>\n<h3>\ucf54\ub4dc (\ub3d9\uc801 \ud504\ub85c\uadf8\ub798\ubc0d)<\/h3>\n<pre><code>\n#include &lt;iostream&gt;\n#include &lt;vector&gt;\n#include &lt;algorithm&gt;\nusing namespace std;\n\nint lengthOfLIS(vector<int>&amp; nums) {\n    if (nums.empty()) return 0;\n    vector<int> dp(nums.size(), 1);\n    \n    for (int i = 1; i &lt; nums.size(); i++) {\n        for (int j = 0; j &lt; i; j++) {\n            if (nums[i] &gt; nums[j]) {\n                dp[i] = max(dp[i], dp[j] + 1);\n            }\n        }\n    }\n    return *max_element(dp.begin(), dp.end());\n}\n\nint main() {\n    vector<int> nums = {10, 9, 2, 5, 3, 7, 101, 18};\n    cout &lt;&lt; \"\uac00\uc7a5 \uae38\uac8c \uc99d\uac00\ud558\ub294 \ubd80\ubd84 \uc218\uc5f4\uc758 \uae38\uc774: \" &lt;&lt; lengthOfLIS(nums) &lt;&lt; endl;\n    return 0;\n}\n    <\/int><\/int><\/int><\/code><\/pre>\n<h3>2. \uc774\ubd84 \ud0d0\uc0c9(Binary Search) \uc811\uadfc\ubc95<\/h3>\n<p>\n        \uc774 \ubc29\ubc95\uc740 \ub354 \ud6a8\uc728\uc801\uc774\uba70, O(N log N)\uc758 \uc2dc\uac04 \ubcf5\uc7a1\ub3c4\ub97c \uac00\uc9d1\ub2c8\ub2e4. \uc774 \ubc29\ubc95\uc758 \uae30\ubcf8 \uc544\uc774\ub514\uc5b4\ub294<br \/>\n        &#8216;\ubd80\ubd84 \uc218\uc5f4\uc758 \ub05d \uc694\uc18c\ub4e4\uc744 \uc800\uc7a5\ud558\ub294 \ubc30\uc5f4&#8217;\uc744 \uc720\uc9c0\ud558\ub294 \uac83\uc785\ub2c8\ub2e4.\n    <\/p>\n<ol>\n<li>\uacb0\uacfc\ub97c \uc800\uc7a5\ud560 \ubc30\uc5f4\uc744 \ucd08\uae30\ud654\ud569\ub2c8\ub2e4.<\/li>\n<li>\uac01 \uc6d0\uc18c\uc5d0 \ub300\ud574 \ub2e4\uc74c\uc744 \uc218\ud589\ud569\ub2c8\ub2e4:\n<ul>\n<li>\ud604\uc7ac \uc22b\uc790\uac00 result \ubc30\uc5f4\uc758 \ub9c8\uc9c0\ub9c9 \uc6d0\uc18c\ubcf4\ub2e4 \ud06c\uba74 \ubc30\uc5f4\uc5d0 \ucd94\uac00\ud569\ub2c8\ub2e4.<\/li>\n<li>\uadf8\ub807\uc9c0 \uc54a\uc73c\uba74 \uc774\ubd84 \ud0d0\uc0c9\uc744 \ud1b5\ud574 \ud604\uc7ac \uc22b\uc790\uac00 \ub4e4\uc5b4\uac08 \uc704\uce58\ub97c \ucc3e\uc740 \ud6c4 \ub300\uccb4\ud569\ub2c8\ub2e4.<\/li>\n<\/ul>\n<\/li>\n<li>\uacb0\uacfc \ubc30\uc5f4\uc758 \ud06c\uae30\uac00 \uac00\uc7a5 \uae38\uac8c \uc99d\uac00\ud558\ub294 \ubd80\ubd84 \uc218\uc5f4\uc758 \uae38\uc774\uac00 \ub429\ub2c8\ub2e4.<\/li>\n<\/ol>\n<h3>\ucf54\ub4dc (\uc774\ubd84 \ud0d0\uc0c9)<\/h3>\n<pre><code>\n#include &lt;iostream&gt;\n#include &lt;vector&gt;\n#include &lt;algorithm&gt;\nusing namespace std;\n\nint lengthOfLIS(vector<int>&amp; nums) {\n    vector<int> tails;\n    \n    for (int num : nums) {\n        auto it = lower_bound(tails.begin(), tails.end(), num);\n        if (it == tails.end()) {\n            tails.push_back(num);\n        } else {\n            *it = num;\n        }\n    }\n    return tails.size();\n}\n\nint main() {\n    vector<int> nums = {10, 9, 2, 5, 3, 7, 101, 18};\n    cout &lt;&lt; \"\uac00\uc7a5 \uae38\uac8c \uc99d\uac00\ud558\ub294 \ubd80\ubd84 \uc218\uc5f4\uc758 \uae38\uc774: \" &lt;&lt; lengthOfLIS(nums) &lt;&lt; endl;\n    return 0;\n}\n    <\/int><\/int><\/int><\/code><\/pre>\n<h2>\uacb0\ub860<\/h2>\n<p>\n        &#8220;\uac00\uc7a5 \uae38\uac8c \uc99d\uac00\ud558\ub294 \ubd80\ubd84 \uc218\uc5f4 \ucc3e\uae30&#8221; \ubb38\uc81c\ub294 \ub2e4\uc591\ud55c \ubc29\ubc95\uc73c\ub85c \ud574\uacb0\ud560 \uc218 \uc788\ub294 \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c\uc785\ub2c8\ub2e4.<br \/>\n        \ubb38\uc81c \ud574\uacb0\uc744 \uc704\ud55c \uc811\uadfc \ubc29\ubc95\uc744 \uc774\ud574\ud558\uace0 \uad6c\ud604\ud558\ub294 \uac83\uc740 \ucf54\ub529 \ud14c\uc2a4\ud2b8\uc5d0\uc11c \ud070 \ub3c4\uc6c0\uc774 \ub429\ub2c8\ub2e4.<br \/>\n        \uc774 \ubb38\uc81c\ub97c \ud1b5\ud574 \ub3d9\uc801 \ud504\ub85c\uadf8\ub798\ubc0d \ubc0f \uc774\ubd84 \ud0d0\uc0c9\uc758 \uae30\ucd08\ub97c \uc775\ud788\uace0, \ub2e4\uc591\ud55c \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c\uc5d0 \uc801\uc6a9\ud558\ub294 \ub2a5\ub825\uc744 \ud0a4\uc6cc\ubcf4\uc138\uc694.\n    <\/p>\n<h2>\ucd94\uac00 \ud559\uc2b5 \uc790\ub8cc<\/h2>\n<ul>\n<li><a href=\"https:\/\/www.geeksforgeeks.org\/longest-increasing-subsequence-dp-3\/\">GeeksforGeeks &#8211; Longest Increasing Subsequence<\/a><\/li>\n<li><a href=\"https:\/\/leetcode.com\/problems\/longest-increasing-subsequence\/\">LeetCode &#8211; Longest Increasing Subsequence<\/a><\/li>\n<\/ul>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ubb38\uc81c \uc124\uba85 \uc8fc\uc5b4\uc9c4 \uc815\uc218 \ubc30\uc5f4\uc5d0\uc11c \uac00\uc7a5 \uae38\uac8c \uc99d\uac00\ud558\ub294 \ubd80\ubd84 \uc218\uc5f4(Longest Increasing Subsequence, LIS)\uc744 \ucc3e\uc544\uc57c \ud569\ub2c8\ub2e4. \ubd80\ubd84 \uc218\uc5f4\uc740 \uc6d0\ubcf8 \ubc30\uc5f4\uc5d0\uc11c \uc694\uc18c\uc758 \uc21c\uc11c\ub97c \uc720\uc9c0\ud558\uba70 \uc120\ud0dd\ub41c \uc694\uc18c\ub4e4\ub85c \uad6c\uc131\ub429\ub2c8\ub2e4. \uc774 \ubb38\uc81c\ub294 \ub3d9\uc801 \ud504\ub85c\uadf8\ub798\ubc0d(Dynamic Programming) \ub610\ub294 \uc774\ubd84 \ud0d0\uc0c9(Binary Search)\uc744 \ud1b5\ud574 \ud574\uacb0\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc608\uc2dc \uc785\ub825: [10, 9, 2, 5, 3, 7, 101, 18] \ucd9c\ub825: 4 (\uac00\uc7a5 \uae34 \uc99d\uac00\ud558\ub294 \ubd80\ubd84 \uc218\uc5f4: &hellip; <a href=\"https:\/\/atmokpo.com\/w\/27545\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uac00\uc7a5 \uae38\uac8c \uc99d\uac00\ud558\ub294 \ubd80\ubd84 \uc218\uc5f4 \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":[25],"tags":[],"class_list":["post-27545","post","type-post","status-publish","format-standard","hentry","category-c---2"],"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, \uac00\uc7a5 \uae38\uac8c \uc99d\uac00\ud558\ub294 \ubd80\ubd84 \uc218\uc5f4 \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\/27545\/\" \/>\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, \uac00\uc7a5 \uae38\uac8c \uc99d\uac00\ud558\ub294 \ubd80\ubd84 \uc218\uc5f4 \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\uc5d0\uc11c \uac00\uc7a5 \uae38\uac8c \uc99d\uac00\ud558\ub294 \ubd80\ubd84 \uc218\uc5f4(Longest Increasing Subsequence, LIS)\uc744 \ucc3e\uc544\uc57c \ud569\ub2c8\ub2e4. \ubd80\ubd84 \uc218\uc5f4\uc740 \uc6d0\ubcf8 \ubc30\uc5f4\uc5d0\uc11c \uc694\uc18c\uc758 \uc21c\uc11c\ub97c \uc720\uc9c0\ud558\uba70 \uc120\ud0dd\ub41c \uc694\uc18c\ub4e4\ub85c \uad6c\uc131\ub429\ub2c8\ub2e4. \uc774 \ubb38\uc81c\ub294 \ub3d9\uc801 \ud504\ub85c\uadf8\ub798\ubc0d(Dynamic Programming) \ub610\ub294 \uc774\ubd84 \ud0d0\uc0c9(Binary Search)\uc744 \ud1b5\ud574 \ud574\uacb0\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc608\uc2dc \uc785\ub825: [10, 9, 2, 5, 3, 7, 101, 18] \ucd9c\ub825: 4 (\uac00\uc7a5 \uae34 \uc99d\uac00\ud558\ub294 \ubd80\ubd84 \uc218\uc5f4: &hellip; \ub354 \ubcf4\uae30 &quot;C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uac00\uc7a5 \uae38\uac8c \uc99d\uac00\ud558\ub294 \ubd80\ubd84 \uc218\uc5f4 \ucc3e\uae30&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/27545\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-27T14:41:46+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T07:17:26+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\/27545\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27545\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uac00\uc7a5 \uae38\uac8c \uc99d\uac00\ud558\ub294 \ubd80\ubd84 \uc218\uc5f4 \ucc3e\uae30\",\"datePublished\":\"2024-10-27T14:41:46+00:00\",\"dateModified\":\"2024-11-26T07:17:26+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27545\/\"},\"wordCount\":49,\"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\/27545\/\",\"url\":\"https:\/\/atmokpo.com\/w\/27545\/\",\"name\":\"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uac00\uc7a5 \uae38\uac8c \uc99d\uac00\ud558\ub294 \ubd80\ubd84 \uc218\uc5f4 \ucc3e\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-10-27T14:41:46+00:00\",\"dateModified\":\"2024-11-26T07:17:26+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27545\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/27545\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/27545\/#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, \uac00\uc7a5 \uae38\uac8c \uc99d\uac00\ud558\ub294 \ubd80\ubd84 \uc218\uc5f4 \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, \uac00\uc7a5 \uae38\uac8c \uc99d\uac00\ud558\ub294 \ubd80\ubd84 \uc218\uc5f4 \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\/27545\/","og_locale":"ko_KR","og_type":"article","og_title":"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uac00\uc7a5 \uae38\uac8c \uc99d\uac00\ud558\ub294 \ubd80\ubd84 \uc218\uc5f4 \ucc3e\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"\ubb38\uc81c \uc124\uba85 \uc8fc\uc5b4\uc9c4 \uc815\uc218 \ubc30\uc5f4\uc5d0\uc11c \uac00\uc7a5 \uae38\uac8c \uc99d\uac00\ud558\ub294 \ubd80\ubd84 \uc218\uc5f4(Longest Increasing Subsequence, LIS)\uc744 \ucc3e\uc544\uc57c \ud569\ub2c8\ub2e4. \ubd80\ubd84 \uc218\uc5f4\uc740 \uc6d0\ubcf8 \ubc30\uc5f4\uc5d0\uc11c \uc694\uc18c\uc758 \uc21c\uc11c\ub97c \uc720\uc9c0\ud558\uba70 \uc120\ud0dd\ub41c \uc694\uc18c\ub4e4\ub85c \uad6c\uc131\ub429\ub2c8\ub2e4. \uc774 \ubb38\uc81c\ub294 \ub3d9\uc801 \ud504\ub85c\uadf8\ub798\ubc0d(Dynamic Programming) \ub610\ub294 \uc774\ubd84 \ud0d0\uc0c9(Binary Search)\uc744 \ud1b5\ud574 \ud574\uacb0\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc608\uc2dc \uc785\ub825: [10, 9, 2, 5, 3, 7, 101, 18] \ucd9c\ub825: 4 (\uac00\uc7a5 \uae34 \uc99d\uac00\ud558\ub294 \ubd80\ubd84 \uc218\uc5f4: &hellip; \ub354 \ubcf4\uae30 \"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uac00\uc7a5 \uae38\uac8c \uc99d\uac00\ud558\ub294 \ubd80\ubd84 \uc218\uc5f4 \ucc3e\uae30\"","og_url":"https:\/\/atmokpo.com\/w\/27545\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-10-27T14:41:46+00:00","article_modified_time":"2024-11-26T07:17:26+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\/27545\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/27545\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uac00\uc7a5 \uae38\uac8c \uc99d\uac00\ud558\ub294 \ubd80\ubd84 \uc218\uc5f4 \ucc3e\uae30","datePublished":"2024-10-27T14:41:46+00:00","dateModified":"2024-11-26T07:17:26+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/27545\/"},"wordCount":49,"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\/27545\/","url":"https:\/\/atmokpo.com\/w\/27545\/","name":"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uac00\uc7a5 \uae38\uac8c \uc99d\uac00\ud558\ub294 \ubd80\ubd84 \uc218\uc5f4 \ucc3e\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-10-27T14:41:46+00:00","dateModified":"2024-11-26T07:17:26+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/27545\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/27545\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/27545\/#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, \uac00\uc7a5 \uae38\uac8c \uc99d\uac00\ud558\ub294 \ubd80\ubd84 \uc218\uc5f4 \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\/27545","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=27545"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/27545\/revisions"}],"predecessor-version":[{"id":27546,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/27545\/revisions\/27546"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=27545"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=27545"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=27545"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}