{"id":27849,"date":"2024-10-27T15:19:52","date_gmt":"2024-10-27T15:19:52","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=27849"},"modified":"2024-11-26T07:14:28","modified_gmt":"2024-11-26T07:14:28","slug":"%ec%9e%90%eb%b0%94%ec%8a%a4%ed%81%ac%eb%a6%bd%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","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/27849\/","title":{"rendered":"\uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1"},"content":{"rendered":"<p>\uc548\ub155\ud558\uc138\uc694, \uc5ec\ub7ec\ubd84! \uc774\ubc88 \ud3ec\uc2a4\ud2b8\uc5d0\uc11c\ub294 \uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ucf54\ub529 \ud14c\uc2a4\ud2b8\uc5d0\uc11c \uc790\uc8fc \ucd9c\uc81c\ub418\ub294 &#8216;\ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1(Least Common Ancestor, LCA)&#8217; \ubb38\uc81c\uc5d0 \ub300\ud574 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc774 \ubb38\uc81c\ub294 \ud2b8\ub9ac \uad6c\uc870\ub97c \ub2e4\ub8f0 \ub54c \ub9e4\uc6b0 \uc911\uc694\ud55c \uac1c\ub150\uc785\ub2c8\ub2e4. \uc6b0\ub9ac\ub294 \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1\uc744 \ucc3e\ub294 \uc54c\uace0\ub9ac\uc998\uc744 \uad6c\ud604\ud558\uace0, \uadf8 \uacfc\uc815\uc744 \uc790\uc138\ud788 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\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\uc758 \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1\uc744 \ucc3e\ub294 \ubb38\uc81c\uc785\ub2c8\ub2e4. \ud2b8\ub9ac\ub294 \ub2e4\uc74c\uacfc \uac19\uc740 \uaddc\uce59\uc744 \ub530\ub985\ub2c8\ub2e4:<\/p>\n<ul>\n<li>\uac01 \ub178\ub4dc\ub294 \ucd5c\ub300 \ub450 \uac1c\uc758 \uc790\uc2dd\uc744 \uac00\uc9c8 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<li>\uc8fc\uc5b4\uc9c4 \ub450 \ub178\ub4dc\ub294 \ud56d\uc0c1 \ud2b8\ub9ac\uc5d0 \uc874\uc7ac\ud569\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h3>\uc785\ub825<\/h3>\n<ul>\n<li>\ud2b8\ub9ac\uc758 \ub8e8\ud2b8 \ub178\ub4dc\uc758 \uc8fc\uc18c (root)<\/li>\n<li>\uccab \ubc88\uc9f8 \ub178\ub4dc\uc758 \uc8fc\uc18c (node1)<\/li>\n<li>\ub450 \ubc88\uc9f8 \ub178\ub4dc\uc758 \uc8fc\uc18c (node2)<\/li>\n<\/ul>\n<h3>\ucd9c\ub825<\/h3>\n<p>\ub450 \ub178\ub4dc\uc758 \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1\uc758 \ub178\ub4dc \uac12\uc744 \ucd9c\ub825\ud569\ub2c8\ub2e4.<\/p>\n<h2>\uc608\uc81c<\/h2>\n<pre><code>\uc785\ub825:\n          3\n         \/ \\\n        5   1\n       \/ \\ \/ \\\n      6  2 0  8\n        \/ \\\n       7   4\n       \n       node1 = 5, node2 = 1\n       \n\ucd9c\ub825:\n3\n<\/code><\/pre>\n<h2>\ubb38\uc81c \ud480\uc774<\/h2>\n<p>\ubb38\uc81c\ub97c \ud574\uacb0\ud558\uae30 \uc704\ud574 \uc5ec\ub7ec \uc811\uadfc \ubc29\uc2dd\uc774 \uc788\uc744 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uadf8\ub7ec\ub098 \uac00\uc7a5 \uc77c\ubc18\uc801\uc778 \uc811\uadfc \ubc29\uc2dd\uc740 DFS(\uae4a\uc774 \uc6b0\uc120 \ud0d0\uc0c9)\ub97c \uc0ac\uc6a9\ud558\ub294 \uac83\uc785\ub2c8\ub2e4. \uc774 \ubc29\ubc95\uc740 \uac01 \ub178\ub4dc\ub97c \ubc29\ubb38\ud558\uba70 \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1\uc744 \ucc3e\uc544\ub0bc \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774 \uacfc\uc815\uc744 \ub2e8\uacc4\ubcc4\ub85c \uc790\uc138\ud788 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>1\ub2e8\uacc4: \ud2b8\ub9ac \uad6c\uc870 \uc815\uc758<\/h3>\n<p>\uc81c\uc77c \uba3c\uc800, \ud2b8\ub9ac\ub97c \uc815\uc758\ud558\ub294 \ud074\ub798\uc2a4\ub97c \ub9cc\ub4e4\uc5b4\uc57c \ud569\ub2c8\ub2e4. \uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8\uc5d0\uc11c \ud2b8\ub9ac \ub178\ub4dc\ub294 \uc77c\ubc18\uc801\uc73c\ub85c \uc544\ub798\uc640 \uac19\uc774 \uc815\uc758\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4:<\/p>\n<pre><code>class TreeNode {\n    constructor(value) {\n        this.value = value;\n        this.left = null; \/\/ \uc67c\ucabd \uc790\uc2dd\n        this.right = null; \/\/ \uc624\ub978\ucabd \uc790\uc2dd\n    }\n}\n<\/code><\/pre>\n<h3>2\ub2e8\uacc4: \ud2b8\ub9ac \uc0dd\uc131<\/h3>\n<p>\ud2b8\ub9ac\ub97c \uc0dd\uc131\ud558\uae30 \uc704\ud55c \uc608\uc2dc \ucf54\ub4dc\ub97c \uc791\uc131\ud574\ubd05\ub2c8\ub2e4. \uc704\uc758 \uc608\uc81c\uc640 \uac19\uc740 \ud2b8\ub9ac\ub97c \uc0dd\uc131\ud558\ub294 \ubc29\ubc95\uc740 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4:<\/p>\n<pre><code>const root = new TreeNode(3);\nroot.left = new TreeNode(5);\nroot.right = new TreeNode(1);\nroot.left.left = new TreeNode(6);\nroot.left.right = new TreeNode(2);\nroot.right.left = new TreeNode(0);\nroot.right.right = new TreeNode(8);\nroot.left.right.left = new TreeNode(7);\nroot.left.right.right = new TreeNode(4);\n<\/code><\/pre>\n<h3>3\ub2e8\uacc4: DFS \uc54c\uace0\ub9ac\uc998 \uad6c\ud604<\/h3>\n<p>\uc774\uc81c DFS \uc54c\uace0\ub9ac\uc998\uc744 \uad6c\ud604\ud574 \ubcfc \ucc28\ub840\uc785\ub2c8\ub2e4. \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1 \ucc3e\uae30 \uc54c\uace0\ub9ac\uc998\uc740 \ub2e4\uc74c\uacfc \uac19\uc740 \uacfc\uc815\uc744 \ub530\ub985\ub2c8\ub2e4:<\/p>\n<ol>\n<li>\ud604\uc7ac \ub178\ub4dc\uac00 null\uc774\uba74 null\uc744 \ubc18\ud658\ud569\ub2c8\ub2e4.<\/li>\n<li>\ud604\uc7ac \ub178\ub4dc\uac00 node1 \ub610\ub294 node2\uc640 \uac19\uc73c\uba74 \ud604\uc7ac \ub178\ub4dc\ub97c \ubc18\ud658\ud569\ub2c8\ub2e4.<\/li>\n<li>\uc67c\ucabd\uacfc \uc624\ub978\ucabd \uc790\uc2dd\uc744 \uc7ac\uadc0\uc801\uc73c\ub85c \ud638\ucd9c\ud558\uc5ec \uac01\uac01\uc758 \uacb0\uacfc\ub97c \uac00\uc838\uc635\ub2c8\ub2e4.<\/li>\n<li>\uc67c\ucabd \ubc0f \uc624\ub978\ucabd \uc790\uc2dd \ub178\ub4dc \uacb0\uacfc\uac00 \ubaa8\ub450 null\uc774 \uc544\ub2d0 \uacbd\uc6b0 \ud604\uc7ac \ub178\ub4dc\uac00 \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1\uc785\ub2c8\ub2e4.<\/li>\n<li>\uc67c\ucabd \ub610\ub294 \uc624\ub978\ucabd \uc790\uc2dd \uc911 \ud558\ub098\ub9cc null\uc778 \uacbd\uc6b0 null\uc774 \uc544\ub2cc \uc790\uc2dd\uc744 \ubc18\ud658\ud569\ub2c8\ub2e4.<\/li>\n<\/ol>\n<pre><code>function lowestCommonAncestor(root, node1, node2) {\n    if (root === null) return null;\n    if (root.value === node1.value || root.value === node2.value) return root;\n\n    const left = lowestCommonAncestor(root.left, node1, node2);\n    const right = lowestCommonAncestor(root.right, node1, node2);\n\n    if (left &amp;&amp; right) return root;\n    return left ? left : right;\n}\n<\/code><\/pre>\n<h3>4\ub2e8\uacc4: \uacb0\uacfc \ucd9c\ub825<\/h3>\n<p>\ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1 \uc54c\uace0\ub9ac\uc998\uc774 \uc644\uc131\ub418\uc5c8\uc73c\ubbc0\ub85c, \uc774\ub97c \ud14c\uc2a4\ud2b8\ud574\ubd05\uc2dc\ub2e4:<\/p>\n<pre><code>const lca = lowestCommonAncestor(root, root.left, root.right); \/\/ node1: 5, node2: 1\nconsole.log(lca.value); \/\/ 3\n<\/code><\/pre>\n<h2>\uc885\ud569 \ubc0f \uc815\ub9ac<\/h2>\n<p>\uc774\ubc88 \ud3ec\uc2a4\ud2b8\uc5d0\uc11c\ub294 \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1(LCA) \ubb38\uc81c\ub97c \ub2e4\ub8e8\uc5b4 \ubcf4\uc558\uc2b5\ub2c8\ub2e4. \ud2b8\ub9ac \uad6c\uc870\ub97c \uc815\uc758\ud558\uace0, DFS\ub97c \ud65c\uc6a9\ud55c \uc54c\uace0\ub9ac\uc998\uc744 \uad6c\ud604\ud55c \ud6c4, \uc608\uc81c\ub97c \ud1b5\ud574 \uacb0\uacfc\ub97c \ud655\uc778\ud558\uc600\uc2b5\ub2c8\ub2e4. \uc911\uc694\ud55c \uc810\uc740 \uc774 \uc54c\uace0\ub9ac\uc998\uc774 \uc7ac\uadc0 \ud638\ucd9c\uc744 \ud1b5\ud574 \uac01 \ub178\ub4dc\ub97c \ubc29\ubb38\ud558\uba70, \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1\uc744 \ucc3e\ub294 \uacfc\uc815\uc5d0\uc11c \uc870\uac74\uc744 \uad6c\uc870\uc801\uc73c\ub85c \uad6c\uc131\ud558\ub294 \uac83\uc785\ub2c8\ub2e4.<\/p>\n<p>\uc774\uc640 \uac19\uc740 \ubb38\uc81c\ub294 \ub2e4\uc591\ud55c \ubcc0\ud615 \uc720\ud615\uc774 \uc874\uc7ac\ud558\uae30 \ub54c\ubb38\uc5d0, \uc5ec\ub7ec \uc720\ud615\uc758 \ubb38\uc81c\ub97c \ud480\uc5b4\ubcf4\uba70 \uc5f0\uc2b5\ud558\ub294 \uac83\uc774 \uc911\uc694\ud569\ub2c8\ub2e4. \uc774\ud6c4\uc5d0\ub3c4 \uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ucf54\ub529 \ud14c\uc2a4\ud2b8\uc5d0 \ub3c4\uc6c0\uc774 \ub418\ub294 \ub2e4\uc591\ud55c \uc54c\uace0\ub9ac\uc998\uc744 \uc18c\uac1c\ud560 \uc608\uc815\uc774\ub2c8 \ub9ce\uc740 \uad00\uc2ec \ubd80\ud0c1\ub4dc\ub9bd\ub2c8\ub2e4!<\/p>\n<h2>\ucc38\uace0 \uc790\ub8cc<\/h2>\n<ul>\n<li><a href=\"https:\/\/www.geeksforgeeks.org\/lowest-common-ancestor-in-a-binary-tree\/\">GeeksforGeeks &#8211; Lowest Common Ancestor in a Binary Tree<\/a><\/li>\n<li><a href=\"https:\/\/www.programcreek.com\/2012\/12\/leetcode-lowest-common-ancestor-of-a-binary-tree\/ \">ProgramCreek &#8211; LeetCode: Lowest Common Ancestor of a Binary Tree<\/a><\/li>\n<\/ul>\n<p>\uc5ec\ub7ec\ubd84\uc758 \ucf54\ub529 \ud14c\uc2a4\ud2b8 \uc900\ube44\uc5d0 \ub3c4\uc6c0\uc774 \ub418\uae38 \ubc14\ub78d\ub2c8\ub2e4. \uac10\uc0ac\ud569\ub2c8\ub2e4!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uc548\ub155\ud558\uc138\uc694, \uc5ec\ub7ec\ubd84! \uc774\ubc88 \ud3ec\uc2a4\ud2b8\uc5d0\uc11c\ub294 \uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ucf54\ub529 \ud14c\uc2a4\ud2b8\uc5d0\uc11c \uc790\uc8fc \ucd9c\uc81c\ub418\ub294 &#8216;\ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1(Least Common Ancestor, LCA)&#8217; \ubb38\uc81c\uc5d0 \ub300\ud574 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc774 \ubb38\uc81c\ub294 \ud2b8\ub9ac \uad6c\uc870\ub97c \ub2e4\ub8f0 \ub54c \ub9e4\uc6b0 \uc911\uc694\ud55c \uac1c\ub150\uc785\ub2c8\ub2e4. \uc6b0\ub9ac\ub294 \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1\uc744 \ucc3e\ub294 \uc54c\uace0\ub9ac\uc998\uc744 \uad6c\ud604\ud558\uace0, \uadf8 \uacfc\uc815\uc744 \uc790\uc138\ud788 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \ubb38\uc81c \uc124\uba85 \uc8fc\uc5b4\uc9c4 \uc774\uc9c4 \ud2b8\ub9ac\uc5d0\uc11c \ub450 \uac1c\uc758 \ub178\ub4dc\uc758 \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1\uc744 \ucc3e\ub294 \ubb38\uc81c\uc785\ub2c8\ub2e4. \ud2b8\ub9ac\ub294 \ub2e4\uc74c\uacfc \uac19\uc740 \uaddc\uce59\uc744 &hellip; <a href=\"https:\/\/atmokpo.com\/w\/27849\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;\uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1&#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":[26],"tags":[],"class_list":["post-27849","post","type-post","status-publish","format-standard","hentry","category-26"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1 - \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\/27849\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"\uc548\ub155\ud558\uc138\uc694, \uc5ec\ub7ec\ubd84! \uc774\ubc88 \ud3ec\uc2a4\ud2b8\uc5d0\uc11c\ub294 \uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ucf54\ub529 \ud14c\uc2a4\ud2b8\uc5d0\uc11c \uc790\uc8fc \ucd9c\uc81c\ub418\ub294 &#8216;\ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1(Least Common Ancestor, LCA)&#8217; \ubb38\uc81c\uc5d0 \ub300\ud574 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc774 \ubb38\uc81c\ub294 \ud2b8\ub9ac \uad6c\uc870\ub97c \ub2e4\ub8f0 \ub54c \ub9e4\uc6b0 \uc911\uc694\ud55c \uac1c\ub150\uc785\ub2c8\ub2e4. \uc6b0\ub9ac\ub294 \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1\uc744 \ucc3e\ub294 \uc54c\uace0\ub9ac\uc998\uc744 \uad6c\ud604\ud558\uace0, \uadf8 \uacfc\uc815\uc744 \uc790\uc138\ud788 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \ubb38\uc81c \uc124\uba85 \uc8fc\uc5b4\uc9c4 \uc774\uc9c4 \ud2b8\ub9ac\uc5d0\uc11c \ub450 \uac1c\uc758 \ub178\ub4dc\uc758 \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1\uc744 \ucc3e\ub294 \ubb38\uc81c\uc785\ub2c8\ub2e4. \ud2b8\ub9ac\ub294 \ub2e4\uc74c\uacfc \uac19\uc740 \uaddc\uce59\uc744 &hellip; \ub354 \ubcf4\uae30 &quot;\uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/27849\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-27T15:19:52+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T07:14:28+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\/27849\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27849\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"\uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1\",\"datePublished\":\"2024-10-27T15:19:52+00:00\",\"dateModified\":\"2024-11-26T07:14:28+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27849\/\"},\"wordCount\":38,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"\uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/27849\/\",\"url\":\"https:\/\/atmokpo.com\/w\/27849\/\",\"name\":\"\uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-10-27T15:19:52+00:00\",\"dateModified\":\"2024-11-26T07:14:28+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27849\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/27849\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/27849\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1\"}]},{\"@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":"\uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1 - \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\/27849\/","og_locale":"ko_KR","og_type":"article","og_title":"\uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"\uc548\ub155\ud558\uc138\uc694, \uc5ec\ub7ec\ubd84! \uc774\ubc88 \ud3ec\uc2a4\ud2b8\uc5d0\uc11c\ub294 \uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ucf54\ub529 \ud14c\uc2a4\ud2b8\uc5d0\uc11c \uc790\uc8fc \ucd9c\uc81c\ub418\ub294 &#8216;\ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1(Least Common Ancestor, LCA)&#8217; \ubb38\uc81c\uc5d0 \ub300\ud574 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc774 \ubb38\uc81c\ub294 \ud2b8\ub9ac \uad6c\uc870\ub97c \ub2e4\ub8f0 \ub54c \ub9e4\uc6b0 \uc911\uc694\ud55c \uac1c\ub150\uc785\ub2c8\ub2e4. \uc6b0\ub9ac\ub294 \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1\uc744 \ucc3e\ub294 \uc54c\uace0\ub9ac\uc998\uc744 \uad6c\ud604\ud558\uace0, \uadf8 \uacfc\uc815\uc744 \uc790\uc138\ud788 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \ubb38\uc81c \uc124\uba85 \uc8fc\uc5b4\uc9c4 \uc774\uc9c4 \ud2b8\ub9ac\uc5d0\uc11c \ub450 \uac1c\uc758 \ub178\ub4dc\uc758 \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1\uc744 \ucc3e\ub294 \ubb38\uc81c\uc785\ub2c8\ub2e4. \ud2b8\ub9ac\ub294 \ub2e4\uc74c\uacfc \uac19\uc740 \uaddc\uce59\uc744 &hellip; \ub354 \ubcf4\uae30 \"\uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1\"","og_url":"https:\/\/atmokpo.com\/w\/27849\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-10-27T15:19:52+00:00","article_modified_time":"2024-11-26T07:14:28+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\/27849\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/27849\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"\uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1","datePublished":"2024-10-27T15:19:52+00:00","dateModified":"2024-11-26T07:14:28+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/27849\/"},"wordCount":38,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["\uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/27849\/","url":"https:\/\/atmokpo.com\/w\/27849\/","name":"\uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-10-27T15:19:52+00:00","dateModified":"2024-11-26T07:14:28+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/27849\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/27849\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/27849\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"\uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1"}]},{"@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\/27849","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=27849"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/27849\/revisions"}],"predecessor-version":[{"id":27850,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/27849\/revisions\/27850"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=27849"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=27849"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=27849"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}