{"id":28300,"date":"2024-10-27T15:33:27","date_gmt":"2024-10-27T15:33:27","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=28300"},"modified":"2024-11-26T07:04:45","modified_gmt":"2024-11-26T07:04:45","slug":"%ec%8a%a4%ec%9c%84%ed%94%84%ed%8a%b8-%ec%bd%94%eb%94%a9%ed%85%8c%ec%8a%a4%ed%8a%b8-%ea%b0%95%ec%a2%8c-%ec%b5%9c%ec%86%8c-%ea%b3%b5%ed%86%b5-%ec%a1%b0%ec%83%81-%ea%b5%ac%ed%95%98%ea%b8%b0-2","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/28300\/","title":{"rendered":"\uc2a4\uc704\ud504\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1 \uad6c\ud558\uae30 2"},"content":{"rendered":"<div class=\"post\">\n<p>\uc548\ub155\ud558\uc138\uc694! \uc624\ub298\uc740 \uc2a4\uc704\ud504\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8\ub97c \uc900\ube44\ud558\ub294 \uc5ec\ub7ec\ubd84\uc744 \uc704\ud574 \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1(LCA, Lowest Common Ancestor) \ubb38\uc81c\ub97c \ub2e4\ub904\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc774 \ubb38\uc81c\ub294 \ud2b8\ub9ac \uad6c\uc870\uc5d0\uc11c \ub450 \ub178\ub4dc\uc758 \uac00\uc7a5 \uac00\uae4c\uc6b4 \uacf5\ud1b5 \uc870\uc0c1\uc744 \ucc3e\ub294 \ubb38\uc81c\ub85c, \ub2e4\uc591\ud55c \uc751\uc6a9\uc774 \uac00\ub2a5\ud569\ub2c8\ub2e4. \uadf8\ub9ac\uace0 \ud2b9\ud788 \ucf54\ub529 \ud14c\uc2a4\ud2b8\uc5d0\uc11c\ub294 \uc790\uc8fc \ub4f1\uc7a5\ud558\ub294 \ubb38\uc81c \uc911 \ud558\ub098\uc785\ub2c8\ub2e4.<\/p>\n<h2>\ubb38\uc81c \uc124\uba85<\/h2>\n<p>\uc8fc\uc5b4\uc9c4 \uc774\uc9c4 \ud2b8\ub9ac\uc5d0\uc11c \ub450 \uac1c\uc758 \ub178\ub4dc\uac00 \uc8fc\uc5b4\uc84c\uc744 \ub54c, \uc774 \ub450 \ub178\ub4dc\uc758 \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1\uc744 \ucc3e\ub294 \ud568\uc218\ub97c \uc791\uc131\ud558\uc138\uc694. \uc774\uc9c4 \ud2b8\ub9ac\uc758 \ub178\ub4dc\ub294 \uc544\ub798\uc640 \uac19\uc774 \uc815\uc758\ub429\ub2c8\ub2e4:<\/p>\n<pre>\n    class TreeNode {\n        var value: Int\n        var left: TreeNode?\n        var right: TreeNode?\n        \n        init(value: Int) {\n            self.value = value\n            self.left = nil\n            self.right = nil\n        }\n    }\n    <\/pre>\n<p>\uc608\ub97c \ub4e4\uc5b4, \ub2e4\uc74c\uacfc \uac19\uc740 \uc774\uc9c4 \ud2b8\ub9ac\uac00 \uc788\uc744 \ub54c:<\/p>\n<pre>\n          3\n         \/ \\\n        5   1\n       \/ \\ \/ \\\n      6  2 0  8\n        \/ \\\n       7   4\n    <\/pre>\n<p>\ub178\ub4dc 5\uc640 \ub178\ub4dc 1\uc758 \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1\uc740 \ub178\ub4dc 3\uc785\ub2c8\ub2e4. \ub178\ub4dc 5\uc640 \ub178\ub4dc 4\uc758 \uacbd\uc6b0, \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1\uc740 \ub178\ub4dc 5\uc785\ub2c8\ub2e4.<\/p>\n<h2>\uc785\ub825 \ud615\uc2dd<\/h2>\n<p>\ud568\uc218\ub294 \uc544\ub798\uc640 \uac19\uc740 \ud615\uc2dd\uc73c\ub85c \uc815\uc758\ub429\ub2c8\ub2e4:<\/p>\n<pre>\n    func lowestCommonAncestor(_ root: TreeNode?, _ p: TreeNode?, _ q: TreeNode?) -&gt; TreeNode?\n    <\/pre>\n<p>\uc5ec\uae30\uc11c <code>root<\/code>\ub294 \uc774\uc9c4 \ud2b8\ub9ac\uc758 \ub8e8\ud2b8 \ub178\ub4dc, <code>p<\/code>\uc640 <code>q<\/code>\ub294 \uac01\uac01\uc758 \ub178\ub4dc\ub97c \ub098\ud0c0\ub0c5\ub2c8\ub2e4. \uc774 \ub178\ub4dc\ub4e4\uc740 \ud2b8\ub9ac\uc5d0 \uc874\uc7ac\ud569\ub2c8\ub2e4.<\/p>\n<h2>\ubb38\uc81c \ud480\uc774 \uacfc\uc815<\/h2>\n<p>\uc774 \ubb38\uc81c\ub97c \ud574\uacb0\ud558\uae30 \uc704\ud55c \ub2e4\uc591\ud55c \uc811\uadfc \ubc29\ubc95\uc774 \uc788\uc9c0\ub9cc, \uac00\uc7a5 \ud6a8\uc728\uc801\uc778 \ubc29\ubc95 \uc911 \ud558\ub098\ub294 \uc7ac\uadc0\ub97c \ud65c\uc6a9\ud558\ub294 \uac83\uc785\ub2c8\ub2e4. \uc544\ub798\uc5d0\ub294 \uc774 \ubc29\ubc95\uc744 \uc0ac\uc6a9\ud558\uc5ec \ubb38\uc81c\ub97c \ud574\uacb0\ud558\ub294 \uacfc\uc815\uc744 \ub2e8\uacc4\uc801\uc73c\ub85c \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>1\ub2e8\uacc4: \uae30\ubcf8 \uc544\uc774\ub514\uc5b4<\/h3>\n<p>\ud2b8\ub9ac \ud0d0\uc0c9\uc744 \ud1b5\ud574 \uac01 \ub178\ub4dc\uc5d0 \ub300\ud574 \ub2e4\uc74c\uacfc \uac19\uc740 \uc138 \uac00\uc9c0 \uacbd\uc6b0\ub97c \uace0\ub824\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4:<\/p>\n<ul>\n<li>\ud604\uc7ac \ub178\ub4dc\uac00 <code>p<\/code> \ub610\ub294 <code>q<\/code>\uc640 \uc77c\uce58\ud558\ub294 \uacbd\uc6b0<\/li>\n<li>\uc67c\ucabd \uc11c\ube0c\ud2b8\ub9ac\uc5d0\uc11c <code>p<\/code> \ub610\ub294 <code>q<\/code>\ub97c \ucc3e\ub294 \uacbd\uc6b0<\/li>\n<li>\uc624\ub978\ucabd \uc11c\ube0c\ud2b8\ub9ac\uc5d0\uc11c <code>p<\/code> \ub610\ub294 <code>q<\/code>\ub97c \ucc3e\ub294 \uacbd\uc6b0<\/li>\n<\/ul>\n<p>\uc774 \uacbd\uc6b0\ub97c \ud1b5\ud574 \uc6b0\ub9ac\ub294 \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1\uc744 \uc720\ub3c4\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ub450 \uc11c\ube0c\ud2b8\ub9ac\uc5d0\uc11c \uac01\uac01 \ud558\ub098\uc529 \ub178\ub4dc\ub97c \ucc3e\uc73c\uba74 \ud604\uc7ac \ub178\ub4dc\uac00 \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1\uc774 \ub429\ub2c8\ub2e4.<\/p>\n<h3>2\ub2e8\uacc4: \uc7ac\uadc0 \ud568\uc218 \uad6c\ud604<\/h3>\n<p>\uc774\uc81c \uc7ac\uadc0 \ud568\uc218\ub97c \uad6c\ud604\ud558\uc5ec \uac01 \ub178\ub4dc\uc5d0\uc11c \ub450 \ub178\ub4dc\ub97c \ucc3e\uc2b5\ub2c8\ub2e4:<\/p>\n<pre>\n    func lowestCommonAncestor(_ root: TreeNode?, _ p: TreeNode?, _ q: TreeNode?) -&gt; TreeNode? {\n        \/\/ \uac80\uc0ac\ud560 \ub178\ub4dc\uac00 nil\uc778 \uacbd\uc6b0\n        guard let current = root else { return nil }\n\n        \/\/ \ud604\uc7ac \ub178\ub4dc\uac00 p \ub610\ub294 q\uc778 \uacbd\uc6b0\n        if current === p || current === q {\n            return current\n        }\n\n        \/\/ \uc67c\ucabd\uacfc \uc624\ub978\ucabd \uc11c\ube0c\ud2b8\ub9ac\uc5d0\uc11c \uac01\uac01\uc758 \ub178\ub4dc \ud0d0\uc0c9\n        let left = lowestCommonAncestor(current.left, p, q)\n        let right = lowestCommonAncestor(current.right, p, q)\n\n        \/\/ \uc67c\ucabd\uacfc \uc624\ub978\ucabd \uc11c\ube0c\ud2b8\ub9ac\uc5d0\uc11c \uac01\uac01 \ubc1c\uacac\ud55c \uacbd\uc6b0\n        if left != nil &amp;&amp; right != nil {\n            return current\n        }\n\n        \/\/ \ud558\ub098\uc758 \uc11c\ube0c\ud2b8\ub9ac\uc5d0\uc11c\ub9cc \ubc1c\uacac\ud55c \uacbd\uc6b0\n        return left ?? right\n    }\n    <\/pre>\n<p>\uc704\uc758 \ucf54\ub4dc\uc5d0\uc11c <code>guard let<\/code> \uad6c\ubb38\uc744 \ud1b5\ud574 \ud604\uc7ac \ub178\ub4dc\uac00 nil\uc778\uc9c0 \ud655\uc778\ud558\uace0, \ud604\uc7ac \ub178\ub4dc\uac00 <code>p<\/code> \ub610\ub294 <code>q<\/code>\uc640 \uc77c\uce58\ud558\ub294\uc9c0\ub97c \uac80\uc0ac\ud569\ub2c8\ub2e4. \uc774\ud6c4 \uc67c\ucabd\uacfc \uc624\ub978\ucabd \uc11c\ube0c\ud2b8\ub9ac\uc5d0\uc11c \uc7ac\uadc0\uc801\uc73c\ub85c \ud568\uc218\ub97c \ud638\ucd9c\ud558\uc5ec \uac01\uac01\uc758 \uacb0\uacfc\ub97c <code>left<\/code>\uc640 <code>right<\/code>\uc5d0 \uc800\uc7a5\ud569\ub2c8\ub2e4. \ub450 \uc11c\ube0c\ud2b8\ub9ac\uc5d0\uc11c \ubaa8\ub450 \uacb0\uacfc\ub97c \ucc3e\uc740 \uacbd\uc6b0\uc5d0\ub294 \ud604\uc7ac \ub178\ub4dc\uac00 \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1\uc784\uc744 \ubc18\ud658\ud569\ub2c8\ub2e4.<\/p>\n<h3>3\ub2e8\uacc4: \ud14c\uc2a4\ud2b8 \ucf00\uc774\uc2a4 \uc791\uc131<\/h3>\n<p>\uc774\uc81c \uc791\uc131\ud55c \ud568\uc218\ub97c \ud14c\uc2a4\ud2b8\ud558\uae30 \uc704\ud574 \uba87 \uac00\uc9c0 \ud14c\uc2a4\ud2b8 \ucf00\uc774\uc2a4\ub97c \ucd94\uac00\ud558\uaca0\uc2b5\ub2c8\ub2e4:<\/p>\n<pre>\n    let root = TreeNode(value: 3)\n    let node5 = TreeNode(value: 5)\n    let node1 = TreeNode(value: 1)\n    let node6 = TreeNode(value: 6)\n    let node2 = TreeNode(value: 2)\n    let node0 = TreeNode(value: 0)\n    let node8 = TreeNode(value: 8)\n    let node7 = TreeNode(value: 7)\n    let node4 = TreeNode(value: 4)\n\n    \/\/ \ud2b8\ub9ac \uad6c\uc870 \uc5f0\uacb0\n    root.left = node5\n    root.right = node1\n    node5.left = node6\n    node5.right = node2\n    node1.left = node0\n    node1.right = node8\n    node2.left = node7\n    node2.right = node4\n\n    \/\/ \ud14c\uc2a4\ud2b8\n    let lca1 = lowestCommonAncestor(root, node5, node1) \/\/ \uacb0\uacfc\ub294 3\n    let lca2 = lowestCommonAncestor(root, node5, node4) \/\/ \uacb0\uacfc\ub294 5\n    <\/pre>\n<p>\ud14c\uc2a4\ud2b8 \ucf00\uc774\uc2a4\ub97c \uc2e4\ud589\ud558\uc5ec \uacb0\uacfc\ub97c \ud655\uc778\ud569\ub2c8\ub2e4. \uc774 \uacbd\uc6b0, \uc608\uc0c1 \uacb0\uacfc\uac00 \ub098\uc624\ub294\uc9c0 \ud655\uc778\ud55c \ud6c4 \uac01 \ub178\ub4dc\uc758 \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1\uc744 \uc62c\ubc14\ub974\uac8c \ucc3e\ub294\uc9c0 \uac80\uc99d\ud569\ub2c8\ub2e4.<\/p>\n<h2>\uc2dc\uac04 \ubcf5\uc7a1\ub3c4 \ubd84\uc11d<\/h2>\n<p>\uc774 \uc54c\uace0\ub9ac\uc998\uc758 \uc2dc\uac04 \ubcf5\uc7a1\ub3c4\ub294 O(N)\uc785\ub2c8\ub2e4. \uc774\ub294 \ucd5c\uc545\uc758 \uacbd\uc6b0 \ubaa8\ub4e0 \ub178\ub4dc\ub97c \ud0d0\uc0c9\ud574\uc57c \ud558\uae30 \ub54c\ubb38\uc5d0 N\uac1c\uc758 \ub178\ub4dc\ub97c \uac00\uc9c4 \ud2b8\ub9ac\uc5d0\uc11c\ub294 \ucd5c\ub300 O(N)\uc758 \uc2dc\uac04\uc774 \uc18c\uc694\ub429\ub2c8\ub2e4. \ub610\ud55c \uacf5\uac04 \ubcf5\uc7a1\ub3c4\ub294 O(H)\uc774\uba70, H\ub294 \ud2b8\ub9ac\uc758 \uae4a\uc774\ub97c \ub098\ud0c0\ub0c5\ub2c8\ub2e4. \uc774\ub294 \uc7ac\uadc0 \ud638\ucd9c \uc2a4\ud0dd\uc758 \uae4a\uc774\ub97c \uc758\ubbf8\ud569\ub2c8\ub2e4.<\/p>\n<h2>\uacb0\ub860<\/h2>\n<p>\uc624\ub298\uc740 \uc774\uc9c4 \ud2b8\ub9ac\uc5d0\uc11c \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1\uc744 \ucc3e\ub294 \ubb38\uc81c\ub97c \uc2a4\uc704\ud504\ud2b8\ub85c \ud574\uacb0\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc54c\uc544\ubcf4\uc558\uc2b5\ub2c8\ub2e4. \uc774 \ubb38\uc81c\ub294 \ucf54\ub529 \ud14c\uc2a4\ud2b8\uc5d0\uc11c \uc790\uc8fc \ub4f1\uc7a5\ud558\ubbc0\ub85c, \ubb38\uc81c\uac00 \uc8fc\uc5b4\uc84c\uc744 \ub54c \ube60\ub974\uac8c \ud574\uacb0\ud560 \uc218 \uc788\ub294 \ub2a5\ub825\uc744 \ud0a4\uc6b0\ub294 \uac83\uc774 \uc911\uc694\ud569\ub2c8\ub2e4. \uc7ac\uadc0\uc801\uc778 \uc811\uadfc \ubc29\ubc95\uc744 \ud65c\uc6a9\ud558\uc5ec \ubb38\uc81c\ub97c \ud574\uacb0\ud568\uc73c\ub85c\uc368 \ucf54\ub4dc\uc758 \ud6a8\uc728\uc131\uc744 \ub192\uc774\uace0, \uc774\ud574\ub3c4\ub97c \uac15\uc870\ud588\uc2b5\ub2c8\ub2e4. \ub2e4\uc74c\uc5d0\ub3c4 \ud765\ubbf8\ub85c\uc6b4 \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c\ub85c \ucc3e\uc544\uc624\uaca0\uc2b5\ub2c8\ub2e4!<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\uc548\ub155\ud558\uc138\uc694! \uc624\ub298\uc740 \uc2a4\uc704\ud504\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8\ub97c \uc900\ube44\ud558\ub294 \uc5ec\ub7ec\ubd84\uc744 \uc704\ud574 \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1(LCA, Lowest Common Ancestor) \ubb38\uc81c\ub97c \ub2e4\ub904\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc774 \ubb38\uc81c\ub294 \ud2b8\ub9ac \uad6c\uc870\uc5d0\uc11c \ub450 \ub178\ub4dc\uc758 \uac00\uc7a5 \uac00\uae4c\uc6b4 \uacf5\ud1b5 \uc870\uc0c1\uc744 \ucc3e\ub294 \ubb38\uc81c\ub85c, \ub2e4\uc591\ud55c \uc751\uc6a9\uc774 \uac00\ub2a5\ud569\ub2c8\ub2e4. \uadf8\ub9ac\uace0 \ud2b9\ud788 \ucf54\ub529 \ud14c\uc2a4\ud2b8\uc5d0\uc11c\ub294 \uc790\uc8fc \ub4f1\uc7a5\ud558\ub294 \ubb38\uc81c \uc911 \ud558\ub098\uc785\ub2c8\ub2e4. \ubb38\uc81c \uc124\uba85 \uc8fc\uc5b4\uc9c4 \uc774\uc9c4 \ud2b8\ub9ac\uc5d0\uc11c \ub450 \uac1c\uc758 \ub178\ub4dc\uac00 \uc8fc\uc5b4\uc84c\uc744 \ub54c, \uc774 \ub450 \ub178\ub4dc\uc758 \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1\uc744 &hellip; <a href=\"https:\/\/atmokpo.com\/w\/28300\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;\uc2a4\uc704\ud504\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1 \uad6c\ud558\uae30 2&#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":[27],"tags":[],"class_list":["post-28300","post","type-post","status-publish","format-standard","hentry","category-27"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\uc2a4\uc704\ud504\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1 \uad6c\ud558\uae30 2 - \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\/28300\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\uc2a4\uc704\ud504\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1 \uad6c\ud558\uae30 2 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"\uc548\ub155\ud558\uc138\uc694! \uc624\ub298\uc740 \uc2a4\uc704\ud504\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8\ub97c \uc900\ube44\ud558\ub294 \uc5ec\ub7ec\ubd84\uc744 \uc704\ud574 \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1(LCA, Lowest Common Ancestor) \ubb38\uc81c\ub97c \ub2e4\ub904\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc774 \ubb38\uc81c\ub294 \ud2b8\ub9ac \uad6c\uc870\uc5d0\uc11c \ub450 \ub178\ub4dc\uc758 \uac00\uc7a5 \uac00\uae4c\uc6b4 \uacf5\ud1b5 \uc870\uc0c1\uc744 \ucc3e\ub294 \ubb38\uc81c\ub85c, \ub2e4\uc591\ud55c \uc751\uc6a9\uc774 \uac00\ub2a5\ud569\ub2c8\ub2e4. \uadf8\ub9ac\uace0 \ud2b9\ud788 \ucf54\ub529 \ud14c\uc2a4\ud2b8\uc5d0\uc11c\ub294 \uc790\uc8fc \ub4f1\uc7a5\ud558\ub294 \ubb38\uc81c \uc911 \ud558\ub098\uc785\ub2c8\ub2e4. \ubb38\uc81c \uc124\uba85 \uc8fc\uc5b4\uc9c4 \uc774\uc9c4 \ud2b8\ub9ac\uc5d0\uc11c \ub450 \uac1c\uc758 \ub178\ub4dc\uac00 \uc8fc\uc5b4\uc84c\uc744 \ub54c, \uc774 \ub450 \ub178\ub4dc\uc758 \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1\uc744 &hellip; \ub354 \ubcf4\uae30 &quot;\uc2a4\uc704\ud504\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1 \uad6c\ud558\uae30 2&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/28300\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-27T15:33:27+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T07:04:45+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\/28300\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/28300\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"\uc2a4\uc704\ud504\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1 \uad6c\ud558\uae30 2\",\"datePublished\":\"2024-10-27T15:33:27+00:00\",\"dateModified\":\"2024-11-26T07:04:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/28300\/\"},\"wordCount\":13,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"\uc2a4\uc704\ud504\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/28300\/\",\"url\":\"https:\/\/atmokpo.com\/w\/28300\/\",\"name\":\"\uc2a4\uc704\ud504\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1 \uad6c\ud558\uae30 2 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-10-27T15:33:27+00:00\",\"dateModified\":\"2024-11-26T07:04:45+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/28300\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/28300\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/28300\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\uc2a4\uc704\ud504\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1 \uad6c\ud558\uae30 2\"}]},{\"@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":"\uc2a4\uc704\ud504\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1 \uad6c\ud558\uae30 2 - \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\/28300\/","og_locale":"ko_KR","og_type":"article","og_title":"\uc2a4\uc704\ud504\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1 \uad6c\ud558\uae30 2 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"\uc548\ub155\ud558\uc138\uc694! \uc624\ub298\uc740 \uc2a4\uc704\ud504\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8\ub97c \uc900\ube44\ud558\ub294 \uc5ec\ub7ec\ubd84\uc744 \uc704\ud574 \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1(LCA, Lowest Common Ancestor) \ubb38\uc81c\ub97c \ub2e4\ub904\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc774 \ubb38\uc81c\ub294 \ud2b8\ub9ac \uad6c\uc870\uc5d0\uc11c \ub450 \ub178\ub4dc\uc758 \uac00\uc7a5 \uac00\uae4c\uc6b4 \uacf5\ud1b5 \uc870\uc0c1\uc744 \ucc3e\ub294 \ubb38\uc81c\ub85c, \ub2e4\uc591\ud55c \uc751\uc6a9\uc774 \uac00\ub2a5\ud569\ub2c8\ub2e4. \uadf8\ub9ac\uace0 \ud2b9\ud788 \ucf54\ub529 \ud14c\uc2a4\ud2b8\uc5d0\uc11c\ub294 \uc790\uc8fc \ub4f1\uc7a5\ud558\ub294 \ubb38\uc81c \uc911 \ud558\ub098\uc785\ub2c8\ub2e4. \ubb38\uc81c \uc124\uba85 \uc8fc\uc5b4\uc9c4 \uc774\uc9c4 \ud2b8\ub9ac\uc5d0\uc11c \ub450 \uac1c\uc758 \ub178\ub4dc\uac00 \uc8fc\uc5b4\uc84c\uc744 \ub54c, \uc774 \ub450 \ub178\ub4dc\uc758 \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1\uc744 &hellip; \ub354 \ubcf4\uae30 \"\uc2a4\uc704\ud504\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1 \uad6c\ud558\uae30 2\"","og_url":"https:\/\/atmokpo.com\/w\/28300\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-10-27T15:33:27+00:00","article_modified_time":"2024-11-26T07:04:45+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\/28300\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/28300\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"\uc2a4\uc704\ud504\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1 \uad6c\ud558\uae30 2","datePublished":"2024-10-27T15:33:27+00:00","dateModified":"2024-11-26T07:04:45+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/28300\/"},"wordCount":13,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["\uc2a4\uc704\ud504\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/28300\/","url":"https:\/\/atmokpo.com\/w\/28300\/","name":"\uc2a4\uc704\ud504\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1 \uad6c\ud558\uae30 2 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-10-27T15:33:27+00:00","dateModified":"2024-11-26T07:04:45+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/28300\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/28300\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/28300\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"\uc2a4\uc704\ud504\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1 \uad6c\ud558\uae30 2"}]},{"@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\/28300","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=28300"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/28300\/revisions"}],"predecessor-version":[{"id":28301,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/28300\/revisions\/28301"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=28300"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=28300"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=28300"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}