{"id":28552,"date":"2024-10-27T16:12:05","date_gmt":"2024-10-27T16:12:05","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=28552"},"modified":"2024-11-26T07:01:06","modified_gmt":"2024-11-26T07:01:06","slug":"%ec%bd%94%ed%8b%80%eb%a6%b0-%ec%bd%94%eb%94%a9%ed%85%8c%ec%8a%a4%ed%8a%b8-%ea%b0%95%ec%a2%8c-%ec%a0%88%eb%8c%93%ea%b0%92-%ed%9e%99-%ea%b5%ac%ed%98%84%ed%95%98%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/28552\/","title":{"rendered":"\ucf54\ud2c0\ub9b0 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc808\ub313\uac12 \ud799 \uad6c\ud604\ud558\uae30"},"content":{"rendered":"<article>\n<p>\n        \ucf54\ud2c0\ub9b0(Kotlin)\uc740 \ud604\ub300\uc801\uc774\uace0 \uac04\uacb0\ud55c \ubb38\ubc95\uacfc \uac15\ub825\ud55c \uae30\ub2a5 \ub355\ubd84\uc5d0 \ucd5c\uadfc \ub9ce\uc740 \uac1c\ubc1c\uc790\ub4e4 \uc0ac\uc774\uc5d0\uc11c \uc0ac\ub791\ubc1b\uace0 \uc788\ub294 \ud504\ub85c\uadf8\ub798\ubc0d \uc5b8\uc5b4\uc785\ub2c8\ub2e4. \ucf54\ub529 \ud14c\uc2a4\ud2b8, \uc989 \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c \ud480\uc774\uc5d0\uc11c\ub3c4 \ucf54\ud2c0\ub9b0\uc740 \uadf8 \uc720\uc6a9\ud568\uc744 \ubc1c\ud718\ud569\ub2c8\ub2e4. \uc774\ubc88 \ud3ec\uc2a4\ud2b8\uc5d0\uc11c\ub294 \ucf54\ud2c0\ub9b0\uc744 \uc0ac\uc6a9\ud558\uc5ec \uc808\ub313\uac12 \ud799(Absolute Value Heap)\uc744 \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc0c1\uc138\ud788 \uc124\uba85\ud558\uace0\uc790 \ud569\ub2c8\ub2e4.\n    <\/p>\n<h2>\ubb38\uc81c \uc124\uba85<\/h2>\n<p>\n        \uc808\ub313\uac12 \ud799\uc758 \uc815\uc758\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4:\n    <\/p>\n<blockquote><p>\n        \uc808\ub313\uac12 \ud799\uc740 \ud56d\uc0c1 \uc808\ub313\uac12\uc774 \uac00\uc7a5 \uc791\uc740 \uac12\uc744 \uc0c1\ub2e8\uc5d0 \ub450\ub294 \uc6b0\uc120\uc21c\uc704 \ud050(Priority Queue)\uc785\ub2c8\ub2e4.<br \/>\n        \ub9cc\uc57d \uc808\ub313\uac12\uc774 \uac19\uc740 \uac12\uc774 \uc5ec\ub7ec \uac1c \uc874\uc7ac\ud558\ub294 \uacbd\uc6b0, \uadf8 \uac12 \uc911 \uc2e4\uc81c \uac12\uc774 \ub354 \uc791\uc740 \uac83\uc744 \uc6b0\uc120\uc2dc\ud569\ub2c8\ub2e4.\n    <\/p><\/blockquote>\n<p>\n        \ud799\uc758 \uc5f0\uc0b0\uc740 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4:<\/p>\n<ul>\n<li><strong>INSERT X<\/strong>: \uc815\uc218 X (\uc6b0\uc120\uc21c\uc704 \ud050\uc5d0 \ucd94\uac00)<\/li>\n<li><strong>EXTRACT<\/strong>: \uc808\ub313\uac12\uc774 \uac00\uc7a5 \uc791\uc740 \uc815\uc218 \uc0ad\uc81c \ud6c4 \ucd9c\ub825<\/li>\n<\/ul>\n<h2>\uc785\ub825 \ud615\uc2dd<\/h2>\n<p>\n        \ud504\ub85c\uadf8\ub7a8\uc758 \uc785\ub825\uc740 \uc5ec\ub7ec \uc904\ub85c \uc8fc\uc5b4\uc9c0\uba70, \uac01 \uc904\uc5d0 \ub300\ud55c \uba85\ub839\uc774 \ud3ec\ud568\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4.<br \/>\n        \uac01 \uc904\uc740 &#8216;INSERT X&#8217; \ub610\ub294 &#8216;EXTRACT&#8217; \ud615\ud0dc\ub85c \uc8fc\uc5b4\uc9d1\ub2c8\ub2e4.\n    <\/p>\n<h2>\ucd9c\ub825 \ud615\uc2dd<\/h2>\n<p>\n        &#8216;EXTRACT&#8217; \uba85\ub839\uc774 \ud638\ucd9c\ub420 \ub54c\ub9c8\ub2e4 \ucd9c\ub825\ub41c \uac12\uc774 \ud55c \uc904\uc5d0 \ucd9c\ub825\ub429\ub2c8\ub2e4.\n    <\/p>\n<h2>\uc608\uc81c<\/h2>\n<pre><code>\n    INPUT:\n    INSERT -5\n    INSERT 3\n    INSERT -1\n    EXTRACT\n    EXTRACT\n    INSERT -2\n    EXTRACT\n    EXTRACT\n    EXTRACT\n    <\/code><\/pre>\n<p>\n        OUTPUT:<br \/>\n        -1<br \/>\n        -2<br \/>\n        3\n    <\/p>\n<h2>\ubb38\uc81c \ubd84\uc11d<\/h2>\n<p>\n        \uc8fc\uc5b4\uc9c4 \ubb38\uc81c\ub97c \ud574\uacb0\ud558\uae30 \uc704\ud574 \uc6b0\ub9ac\ub294 \ub2e4\uc74c\uc744 \uace0\ub824\ud574\uc57c \ud569\ub2c8\ub2e4:<\/p>\n<ul>\n<li>\uc6b0\uc120\uc21c\uc704 \ud050(Priority Queue)\ub97c \uc5b4\ub5bb\uac8c \uad6c\uc131\ud560 \uac83\uc778\uac00?<\/li>\n<li>Java\uc758 \ud799 \uad6c\uc870\ub97c \ud65c\uc6a9\ud560\uae4c? \uc544\ub2c8\uba74 \ucf54\ud2c0\ub9b0\uc758 \uceec\ub809\uc158\uc744 \ud65c\uc6a9\ud560\uae4c?<\/li>\n<li>\uc808\ub313\uac12\uc5d0 \ub530\ub77c \uc815\ub82c\ud558\ub294 \ubc29\ubc95\uc740 \ubb34\uc5c7\uc778\uac00?<\/li>\n<\/ul>\n<p>\n        \uc808\ub313\uac12 \ud799\uc744 \ub9cc\ub4e4\uae30 \uc704\ud574\uc11c\ub294 \ucd5c\uc18c \ud799(min-heap) \uad6c\uc870\ub97c \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<br \/>\n        \uc790\ubc14\uc5d0\uc11c\ub294 <code>PriorityQueue<\/code>\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc774\ub97c \uc27d\uac8c \uad6c\ud604\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<br \/>\n        \ucf54\ud2c0\ub9b0\uc5d0\uc11c\ub3c4 \uc774\ub97c \ud65c\uc6a9\ud560 \uc218 \uc788\uc73c\uba70, \uae30\ubcf8\uc801\uc778 \ud799 \uad6c\uc870\ub97c \ud1b5\ud574 \uc6b0\ub9ac\uac00 \uc6d0\ud558\ub294 \uae30\ub2a5\uc744 \uad6c\ud604\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n    <\/p>\n<h2>\uad6c\ud604 \uacfc\uc815<\/h2>\n<h3>1. \ub370\uc774\ud130 \uad6c\uc870 \uc815\uc758<\/h3>\n<p>\n        \uc808\ub313\uac12 \ud799\uc5d0\uc11c \uac00\uc7a5 \ud575\uc2ec\uc801\uc778 \ubd80\ubd84\uc740 \ub370\uc774\ud130\ub97c \uc800\uc7a5\ud558\ub294 \ubc29\ubc95\uc785\ub2c8\ub2e4.<br \/>\n        \uc6b0\ub9ac\ub294 \uc808\ub313\uac12\uc744 \uae30\uc900\uc73c\ub85c \uc815\ub82c\ud574\uc57c \ud558\ubbc0\ub85c, <code>PriorityQueue<\/code>\ub97c \ud65c\uc6a9\ud558\uc5ec \uc694\uc18c\ub97c \ucd94\uac00\ud558\uace0 \uc81c\uac70\ud569\ub2c8\ub2e4.<br \/>\n        \uc694\uc18c\ub97c \ucd94\uac00\ud560 \ub54c\ub294 \uc808\ub313\uac12\uacfc \uc6d0\ub798 \uac12\uc744 \ud568\uaed8 \uc124\uc815\ud574\uc8fc\ub294 \uac83\uc774 \uc88b\uc2b5\ub2c8\ub2e4.\n    <\/p>\n<h3>2. Comparator \uc815\uc758<\/h3>\n<p>\n<code>PriorityQueue<\/code>\uc5d0\uc11c \uc6b0\uc120\uc21c\uc704\ub97c \uc815\uc758\ud558\uae30 \uc704\ud574 \ucee4\uc2a4\ud140 \uc815\ub82c \uaddc\uce59(Comparator)\uc744 \uc815\uc758\ud569\ub2c8\ub2e4.<br \/>\n        \uc5ec\uae30\uc11c\ub294 \uc808\ub313\uac12\uc774 \uc791\uc740 \uac12\uc774 \uba3c\uc800 \uc640\uc57c \ud558\uba70, \uc808\ub313\uac12\uc774 \uac19\uc744 \uacbd\uc6b0 \uc2e4\uc81c \uac12\uc774 \ub354 \uc791\uc740 \uac12\uc744 \uc6b0\uc120\uc2dc\ud574\uc57c \ud569\ub2c8\ub2e4.\n    <\/p>\n<pre><code>\n    val comparator = Comparator<pair<int, int=\"\">&gt; { a, b -&gt;\n        if (Math.abs(a.first) == Math.abs(b.first)) {\n            a.first.compareTo(b.first)\n        } else {\n            Math.abs(a.first).compareTo(Math.abs(b.first))\n        }\n    }\n    <\/pair<int,><\/code><\/pre>\n<h3>3. \uba85\ub839 \ucc98\ub9ac<\/h3>\n<p>\n        \uc785\ub825\ub41c \uba85\ub839\uc744 \ucc98\ub9ac\ud558\uae30 \uc704\ud574 \ub8e8\ud504\ub97c \uc2e4\ud589\ud569\ub2c8\ub2e4.<br \/>\n        \uba85\ub839\uc774 <code>INSERT X<\/code>\uc77c \uacbd\uc6b0 \ud799\uc5d0 \uac12\uc744 \ucd94\uac00\ud558\uace0, <code>EXTRACT<\/code> \uba85\ub839\uc77c \uacbd\uc6b0 \ud799\uc5d0\uc11c \uac12\uc744 \uc81c\uac70\ud558\uace0 \ucd9c\ub825\ud569\ub2c8\ub2e4.\n    <\/p>\n<pre><code>\n    val priorityQueue = PriorityQueue<pair<int, int=\"\">&gt;(comparator)\n\n    val reader = BufferedReader(InputStreamReader(System.`in`))\n    val n = reader.readLine().toInt()\n    \n    repeat(n) {\n        val command = reader.readLine().split(\" \")\n        when (command[0]) {\n            \"INSERT\" -&gt; {\n                val value = command[1].toInt()\n                priorityQueue.add(Pair(value, value))\n            }\n            \"EXTRACT\" -&gt; {\n                if (priorityQueue.isNotEmpty()) {\n                    println(priorityQueue.poll().first)\n                } else {\n                    println(0)\n                }\n            }\n        }\n    }\n    <\/pair<int,><\/code><\/pre>\n<h2>\uc804\uccb4 \ucf54\ub4dc<\/h2>\n<pre><code>\n    import java.io.BufferedReader\n    import java.io.InputStreamReader\n    import java.util.PriorityQueue\n\n    fun main() {\n        val comparator = Comparator<pair<int, int=\"\">&gt; { a, b -&gt;\n            if (Math.abs(a.first) == Math.abs(b.first)) {\n                a.first.compareTo(b.first)\n            } else {\n                Math.abs(a.first).compareTo(Math.abs(b.first))\n            }\n        }\n\n        val priorityQueue = PriorityQueue<pair<int, int=\"\">&gt;(comparator)\n\n        val reader = BufferedReader(InputStreamReader(System.`in`))\n        val n = reader.readLine().toInt()\n\n        repeat(n) {\n            val command = reader.readLine().split(\" \")\n            when (command[0]) {\n                \"INSERT\" -&gt; {\n                    val value = command[1].toInt()\n                    priorityQueue.add(Pair(value, value))\n                }\n                \"EXTRACT\" -&gt; {\n                    if (priorityQueue.isNotEmpty()) {\n                        println(priorityQueue.poll().first)\n                    } else {\n                        println(0)\n                    }\n                }\n            }\n        }\n    }\n    <\/pair<int,><\/pair<int,><\/code><\/pre>\n<h2>\uacb0\ub860<\/h2>\n<p>\n        \uc808\ub313\uac12 \ud799\uc744 \uad6c\ud604\ud558\ub294 \uac83\uc740 \ub3d9\uc801 \ub370\uc774\ud130 \uad6c\uc870\uc758 \uc911\uc694\ud55c \ubd80\ubd84\uc73c\ub85c, \ub2e4\uc591\ud55c \ubb38\uc81c \ud574\uacb0\uc5d0 \ub3c4\uc6c0\uc744 \uc904 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<br \/>\n        \uc774\ubc88 \uac15\uc88c\ub97c \ud1b5\ud574 \ucf54\ud2c0\ub9b0\uc5d0\uc11c \uac04\ub2e8\ud558\uace0 \ud6a8\uacfc\uc801\uc73c\ub85c \ud799\uc744 \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc744 \ubc30\uc6e0\uc2b5\ub2c8\ub2e4.<br \/>\n        \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c\ub97c \ud480 \ub54c, \ubb38\uc81c\uc758 \ubcf8\uc9c8\uc744 \uc774\ud574\ud558\uace0 \ud6a8\uc728\uc801\uc778 \ub370\uc774\ud130 \uad6c\uc870\ub97c \uc120\ud0dd\ud558\ub294 \uac83\uc774 \uc5bc\ub9c8\ub098 \uc911\uc694\ud55c\uc9c0\ub97c \ub290\ub084 \uc218 \uc788\uc5c8\uae30\ub97c \ubc14\ub78d\ub2c8\ub2e4.<br \/>\n        \uc55e\uc73c\ub85c\ub3c4 \ub2e4\uc591\ud55c \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c\ub97c \ud568\uaed8 \ud480\uc5b4\ubcf4\uba70 \uc2e4\ub825\uc744 \ud5a5\uc0c1\uc2dc\ucf1c \ub098\uac00\uae38 \uae30\ub300\ud569\ub2c8\ub2e4!\n    <\/p>\n<\/article>\n","protected":false},"excerpt":{"rendered":"<p>\ucf54\ud2c0\ub9b0(Kotlin)\uc740 \ud604\ub300\uc801\uc774\uace0 \uac04\uacb0\ud55c \ubb38\ubc95\uacfc \uac15\ub825\ud55c \uae30\ub2a5 \ub355\ubd84\uc5d0 \ucd5c\uadfc \ub9ce\uc740 \uac1c\ubc1c\uc790\ub4e4 \uc0ac\uc774\uc5d0\uc11c \uc0ac\ub791\ubc1b\uace0 \uc788\ub294 \ud504\ub85c\uadf8\ub798\ubc0d \uc5b8\uc5b4\uc785\ub2c8\ub2e4. \ucf54\ub529 \ud14c\uc2a4\ud2b8, \uc989 \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c \ud480\uc774\uc5d0\uc11c\ub3c4 \ucf54\ud2c0\ub9b0\uc740 \uadf8 \uc720\uc6a9\ud568\uc744 \ubc1c\ud718\ud569\ub2c8\ub2e4. \uc774\ubc88 \ud3ec\uc2a4\ud2b8\uc5d0\uc11c\ub294 \ucf54\ud2c0\ub9b0\uc744 \uc0ac\uc6a9\ud558\uc5ec \uc808\ub313\uac12 \ud799(Absolute Value Heap)\uc744 \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc0c1\uc138\ud788 \uc124\uba85\ud558\uace0\uc790 \ud569\ub2c8\ub2e4. \ubb38\uc81c \uc124\uba85 \uc808\ub313\uac12 \ud799\uc758 \uc815\uc758\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4: \uc808\ub313\uac12 \ud799\uc740 \ud56d\uc0c1 \uc808\ub313\uac12\uc774 \uac00\uc7a5 \uc791\uc740 \uac12\uc744 \uc0c1\ub2e8\uc5d0 \ub450\ub294 &hellip; <a href=\"https:\/\/atmokpo.com\/w\/28552\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;\ucf54\ud2c0\ub9b0 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc808\ub313\uac12 \ud799 \uad6c\ud604\ud558\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":[28],"tags":[],"class_list":["post-28552","post","type-post","status-publish","format-standard","hentry","category-28"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\ucf54\ud2c0\ub9b0 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc808\ub313\uac12 \ud799 \uad6c\ud604\ud558\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\/28552\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\ucf54\ud2c0\ub9b0 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc808\ub313\uac12 \ud799 \uad6c\ud604\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"\ucf54\ud2c0\ub9b0(Kotlin)\uc740 \ud604\ub300\uc801\uc774\uace0 \uac04\uacb0\ud55c \ubb38\ubc95\uacfc \uac15\ub825\ud55c \uae30\ub2a5 \ub355\ubd84\uc5d0 \ucd5c\uadfc \ub9ce\uc740 \uac1c\ubc1c\uc790\ub4e4 \uc0ac\uc774\uc5d0\uc11c \uc0ac\ub791\ubc1b\uace0 \uc788\ub294 \ud504\ub85c\uadf8\ub798\ubc0d \uc5b8\uc5b4\uc785\ub2c8\ub2e4. \ucf54\ub529 \ud14c\uc2a4\ud2b8, \uc989 \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c \ud480\uc774\uc5d0\uc11c\ub3c4 \ucf54\ud2c0\ub9b0\uc740 \uadf8 \uc720\uc6a9\ud568\uc744 \ubc1c\ud718\ud569\ub2c8\ub2e4. \uc774\ubc88 \ud3ec\uc2a4\ud2b8\uc5d0\uc11c\ub294 \ucf54\ud2c0\ub9b0\uc744 \uc0ac\uc6a9\ud558\uc5ec \uc808\ub313\uac12 \ud799(Absolute Value Heap)\uc744 \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc0c1\uc138\ud788 \uc124\uba85\ud558\uace0\uc790 \ud569\ub2c8\ub2e4. \ubb38\uc81c \uc124\uba85 \uc808\ub313\uac12 \ud799\uc758 \uc815\uc758\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4: \uc808\ub313\uac12 \ud799\uc740 \ud56d\uc0c1 \uc808\ub313\uac12\uc774 \uac00\uc7a5 \uc791\uc740 \uac12\uc744 \uc0c1\ub2e8\uc5d0 \ub450\ub294 &hellip; \ub354 \ubcf4\uae30 &quot;\ucf54\ud2c0\ub9b0 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc808\ub313\uac12 \ud799 \uad6c\ud604\ud558\uae30&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/28552\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-27T16:12:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T07:01:06+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<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/atmokpo.com\/w\/28552\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/28552\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"\ucf54\ud2c0\ub9b0 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc808\ub313\uac12 \ud799 \uad6c\ud604\ud558\uae30\",\"datePublished\":\"2024-10-27T16:12:05+00:00\",\"dateModified\":\"2024-11-26T07:01:06+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/28552\/\"},\"wordCount\":23,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"\ucf54\ud2c0\ub9b0 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/28552\/\",\"url\":\"https:\/\/atmokpo.com\/w\/28552\/\",\"name\":\"\ucf54\ud2c0\ub9b0 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc808\ub313\uac12 \ud799 \uad6c\ud604\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-10-27T16:12:05+00:00\",\"dateModified\":\"2024-11-26T07:01:06+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/28552\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/28552\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/28552\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\ucf54\ud2c0\ub9b0 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc808\ub313\uac12 \ud799 \uad6c\ud604\ud558\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":"\ucf54\ud2c0\ub9b0 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc808\ub313\uac12 \ud799 \uad6c\ud604\ud558\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\/28552\/","og_locale":"ko_KR","og_type":"article","og_title":"\ucf54\ud2c0\ub9b0 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc808\ub313\uac12 \ud799 \uad6c\ud604\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"\ucf54\ud2c0\ub9b0(Kotlin)\uc740 \ud604\ub300\uc801\uc774\uace0 \uac04\uacb0\ud55c \ubb38\ubc95\uacfc \uac15\ub825\ud55c \uae30\ub2a5 \ub355\ubd84\uc5d0 \ucd5c\uadfc \ub9ce\uc740 \uac1c\ubc1c\uc790\ub4e4 \uc0ac\uc774\uc5d0\uc11c \uc0ac\ub791\ubc1b\uace0 \uc788\ub294 \ud504\ub85c\uadf8\ub798\ubc0d \uc5b8\uc5b4\uc785\ub2c8\ub2e4. \ucf54\ub529 \ud14c\uc2a4\ud2b8, \uc989 \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c \ud480\uc774\uc5d0\uc11c\ub3c4 \ucf54\ud2c0\ub9b0\uc740 \uadf8 \uc720\uc6a9\ud568\uc744 \ubc1c\ud718\ud569\ub2c8\ub2e4. \uc774\ubc88 \ud3ec\uc2a4\ud2b8\uc5d0\uc11c\ub294 \ucf54\ud2c0\ub9b0\uc744 \uc0ac\uc6a9\ud558\uc5ec \uc808\ub313\uac12 \ud799(Absolute Value Heap)\uc744 \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc0c1\uc138\ud788 \uc124\uba85\ud558\uace0\uc790 \ud569\ub2c8\ub2e4. \ubb38\uc81c \uc124\uba85 \uc808\ub313\uac12 \ud799\uc758 \uc815\uc758\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4: \uc808\ub313\uac12 \ud799\uc740 \ud56d\uc0c1 \uc808\ub313\uac12\uc774 \uac00\uc7a5 \uc791\uc740 \uac12\uc744 \uc0c1\ub2e8\uc5d0 \ub450\ub294 &hellip; \ub354 \ubcf4\uae30 \"\ucf54\ud2c0\ub9b0 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc808\ub313\uac12 \ud799 \uad6c\ud604\ud558\uae30\"","og_url":"https:\/\/atmokpo.com\/w\/28552\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-10-27T16:12:05+00:00","article_modified_time":"2024-11-26T07:01:06+00:00","author":"root","twitter_card":"summary_large_image","twitter_creator":"@bebubo4","twitter_site":"@bebubo4","twitter_misc":{"\uae00\uc4f4\uc774":"root"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/atmokpo.com\/w\/28552\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/28552\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"\ucf54\ud2c0\ub9b0 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc808\ub313\uac12 \ud799 \uad6c\ud604\ud558\uae30","datePublished":"2024-10-27T16:12:05+00:00","dateModified":"2024-11-26T07:01:06+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/28552\/"},"wordCount":23,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["\ucf54\ud2c0\ub9b0 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/28552\/","url":"https:\/\/atmokpo.com\/w\/28552\/","name":"\ucf54\ud2c0\ub9b0 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc808\ub313\uac12 \ud799 \uad6c\ud604\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-10-27T16:12:05+00:00","dateModified":"2024-11-26T07:01:06+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/28552\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/28552\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/28552\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"\ucf54\ud2c0\ub9b0 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc808\ub313\uac12 \ud799 \uad6c\ud604\ud558\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\/28552","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=28552"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/28552\/revisions"}],"predecessor-version":[{"id":28553,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/28552\/revisions\/28553"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=28552"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=28552"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=28552"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}