{"id":28053,"date":"2024-10-27T15:21:12","date_gmt":"2024-10-27T15:21:12","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=28053"},"modified":"2024-11-26T07:10:44","modified_gmt":"2024-11-26T07:10:44","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-%eb%a6%ac%ed%94%84-%eb%85%b8%eb%93%9c%ec%9d%98-%ea%b0%9c%ec%88%98-%ea%b5%ac","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/28053\/","title":{"rendered":"\uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ub9ac\ud504 \ub178\ub4dc\uc758 \uac1c\uc218 \uad6c\ud558\uae30"},"content":{"rendered":"<article>\n<section>\n<h2>1. \ubb38\uc81c \uc815\uc758<\/h2>\n<p>\n            \uc774 \ubb38\uc81c\ub294 \uc774\uc9c4 \ud2b8\ub9ac(binary tree)\uc5d0\uc11c \ub9ac\ud504 \ub178\ub4dc\uc758 \uac1c\uc218\ub97c \uad6c\ud558\ub294 \uac83\uc785\ub2c8\ub2e4. \ub9ac\ud504 \ub178\ub4dc\ub294 \uc790\uc2dd \ub178\ub4dc\uac00 \uc5c6\ub294 \ub178\ub4dc\ub97c \uc758\ubbf8\ud569\ub2c8\ub2e4. \uc790\uc2dd \ub178\ub4dc\uac00 \uc5c6\ub294 \ub178\ub4dc\uc758 \uac1c\uc218\ub97c \uc138\ub294 \uac83\uc740 \ud2b8\ub9ac\uc758 \uad6c\uc870\ub97c \uc774\ud574\ud558\uace0 \ud0d0\uc0c9 \uc54c\uace0\ub9ac\uc998\uc744 \ud65c\uc6a9\ud558\ub294 \uc88b\uc740 \uc5f0\uc2b5\uc785\ub2c8\ub2e4. \uc774 \ubb38\uc81c\ub97c \ud574\uacb0\ud558\uae30 \uc704\ud574 \uc7ac\uadc0(Recursive) \ub610\ub294 \ube44\uc7ac\uadc0(Iterative) \ubc29\uc2dd\uc73c\ub85c \uc811\uadfc\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n        <\/p>\n<\/section>\n<section>\n<h2>2. \ubb38\uc81c \uc608\uc2dc<\/h2>\n<p>\n            \ub2e4\uc74c\uacfc \uac19\uc740 \uc774\uc9c4 \ud2b8\ub9ac\uac00 \uc8fc\uc5b4\uc84c\ub2e4\uace0 \uac00\uc815\ud574\ubcf4\uaca0\uc2b5\ub2c8\ub2e4:\n        <\/p>\n<pre>\n             1\n            \/ \\\n           2   3\n          \/ \\\n         4   5\n        <\/pre>\n<p>\n            \uc704 \ud2b8\ub9ac\uc758 \ub9ac\ud504 \ub178\ub4dc\ub294 4\uc640 5, 3 \ucd1d 3\uac1c\uc785\ub2c8\ub2e4. \uc774\uc640 \uac19\uc740 \ud2b8\ub9ac\ub97c \uc785\ub825\uc73c\ub85c \ubc1b\uc544 \ub9ac\ud504 \ub178\ub4dc\uc758 \uac1c\uc218\ub97c \ubc18\ud658\ud574\uc57c \ud569\ub2c8\ub2e4.\n        <\/p>\n<\/section>\n<section>\n<h2>3. \uc54c\uace0\ub9ac\uc998 \uc811\uadfc \ubc29\uc2dd<\/h2>\n<p>\n            \ub9ac\ud504 \ub178\ub4dc\uc758 \uac1c\uc218\ub97c \uad6c\ud558\ub294 \ubc29\ubc95\uc740 \uc5ec\ub7ec \uac00\uc9c0\uac00 \uc788\uc2b5\ub2c8\ub2e4. \uc6b0\ub9ac\uac00 \uc0ac\uc6a9\ud560 \uac00\uc7a5 \uc77c\ubc18\uc801\uc778 \ubc29\ubc95\uc740 \uc7ac\uadc0\ub97c \uc774\uc6a9\ud55c DFS(Depth-First Search)\uc785\ub2c8\ub2e4. \uc774 \ubc29\ubc95\uc740 \ud2b8\ub9ac\ub97c \uae4a\uc774 \uc6b0\uc120\uc73c\ub85c \ud0d0\uc0c9\ud558\uba74\uc11c \ub9ac\ud504 \ub178\ub4dc\ub97c \ucc3e\uace0, \uc774\ub97c \uce74\uc6b4\ud2b8\ud558\ub294 \ubc29\uc2dd\uc785\ub2c8\ub2e4.\n        <\/p>\n<\/section>\n<section>\n<h2>4. \uc54c\uace0\ub9ac\uc998 \uc124\uba85<\/h2>\n<p>\n            \ub2e4\uc74c\uc740 \ub9ac\ud504 \ub178\ub4dc\uc758 \uac1c\uc218 \uad6c\ud558\ub294 \uc54c\uace0\ub9ac\uc998\uc758 \uae30\ubcf8 \uad6c\uc0c1\uc785\ub2c8\ub2e4:\n        <\/p>\n<ol>\n<li>\uc785\ub825\uc73c\ub85c \uc8fc\uc5b4\uc9c4 \ub178\ub4dc\uac00 null\uc778\uc9c0 \ud655\uc778\ud55c\ub2e4. null\uc774\ub77c\uba74, 0\uc744 \ubc18\ud658\ud55c\ub2e4.<\/li>\n<li>\ub178\ub4dc\uac00 \ub9ac\ud504 \ub178\ub4dc\ub77c\uba74(\uc989, \uc67c\ucabd\uacfc \uc624\ub978\ucabd \uc790\uc2dd\uc774 \ubaa8\ub450 null\uc774\ub77c\uba74) 1\uc744 \ubc18\ud658\ud55c\ub2e4.<\/li>\n<li>\uc67c\ucabd \uc11c\ube0c\ud2b8\ub9ac\uc640 \uc624\ub978\ucabd \uc11c\ube0c\ud2b8\ub9ac\ub97c \uc7ac\uadc0\uc801\uc73c\ub85c \ud638\ucd9c\ud558\uc5ec \uac01\uac01\uc758 \ub9ac\ud504 \ub178\ub4dc \uac1c\uc218\ub97c \uad6c\ud55c\ub2e4.<\/li>\n<li>\uc67c\ucabd\uacfc \uc624\ub978\ucabd \ub9ac\ud504 \ub178\ub4dc\uc758 \uac1c\uc218\ub97c \ud569\uc0b0\ud558\uc5ec \ubc18\ud658\ud55c\ub2e4.<\/li>\n<\/ol>\n<\/section>\n<section>\n<h2>5. \uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \uad6c\ud604<\/h2>\n<p>\n            \ub2e4\uc74c\uc740 \uc704\uc758 \uc54c\uace0\ub9ac\uc998\uc744 \uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8\ub97c \uc0ac\uc6a9\ud574 \uad6c\ud604\ud55c \ucf54\ub4dc\uc785\ub2c8\ub2e4:\n        <\/p>\n<pre>\n            <code>\n                class TreeNode {\n                    constructor(value) {\n                        this.value = value;\n                        this.left = null;\n                        this.right = null;\n                    }\n                }\n\n                function countLeafNodes(node) {\n                    \/\/ \ubca0\uc774\uc2a4 \ucf00\uc774\uc2a4: null \ub178\ub4dc\n                    if (node === null) {\n                        return 0;\n                    }\n                    \/\/ \ub9ac\ud504 \ub178\ub4dc \uc870\uac74\n                    if (node.left === null &amp;&amp; node.right === null) {\n                        return 1;\n                    }\n                    \/\/ \uc7ac\uadc0 \ud638\ucd9c\ub85c \ub9ac\ud504 \ub178\ub4dc \uac1c\uc218 \uc138\uae30\n                    return countLeafNodes(node.left) + countLeafNodes(node.right);\n                }\n\n                \/\/ \uc608\uc2dc \ud2b8\ub9ac \uad6c\uc131\n                const root = new TreeNode(1);\n                root.left = new TreeNode(2);\n                root.right = new TreeNode(3);\n                root.left.left = new TreeNode(4);\n                root.left.right = new TreeNode(5);\n\n                console.log(countLeafNodes(root)); \/\/ Expected output: 3\n            <\/code>\n        <\/pre>\n<\/section>\n<section>\n<h2>6. \uc54c\uace0\ub9ac\uc998 \ubd84\uc11d<\/h2>\n<p>\n            \uc774 \uc54c\uace0\ub9ac\uc998\uc758 \uc2dc\uac04 \ubcf5\uc7a1\ub3c4\ub294 O(n)\uc785\ub2c8\ub2e4. \ud2b8\ub9ac\uc758 \ubaa8\ub4e0 \ub178\ub4dc\ub97c \ud55c \ubc88\uc529 \ubc29\ubb38\ud574\uc57c \ud558\uae30 \ub54c\ubb38\uc785\ub2c8\ub2e4. \uc5ec\uae30\uc11c n\uc740 \ub178\ub4dc\uc758 \uc218\ub97c \uc758\ubbf8\ud569\ub2c8\ub2e4. \uacf5\uac04 \ubcf5\uc7a1\ub3c4\ub294 \ucd5c\uc545\uc758 \uacbd\uc6b0 O(h)\ub85c, h\ub294 \ud2b8\ub9ac\uc758 \ub192\uc774\ub97c \uc758\ubbf8\ud569\ub2c8\ub2e4. \uc774\ub294 \uc7ac\uadc0 \ud638\ucd9c \uc2a4\ud0dd\uc758 \uae4a\uc774\uc5d0 \ub530\ub978 \uac83\uc785\ub2c8\ub2e4.\n        <\/p>\n<p>\n            \ub9cc\uc57d \ud2b8\ub9ac\uac00 \ube44\uc5b4\uc788\uac70\ub098 \ubaa8\ub4e0 \ub178\ub4dc\uac00 \ud55c \ucabd\uc73c\ub85c \uce58\uc6b0\uccd0 \uc788\ub2e4\uba74, \uc2a4\ud0dd \uae4a\uc774\uac00 \uc99d\uac00\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ud2b8\ub9ac\uac00 \uade0\ud615\uc7a1\ud600 \uc788\ub2e4\uba74, \ub192\uc774\ub294 log(n)\uc774 \ub429\ub2c8\ub2e4.\n        <\/p>\n<\/section>\n<section>\n<h2>7. \ube44\uc7ac\uadc0\uc801 \ubc29\ubc95<\/h2>\n<p>\n            \ube44\uc7ac\uadc0\uc801 \ubc29\ubc95\uc73c\ub85c DFS\ub97c \uad6c\ud604\ud560 \uc218\ub3c4 \uc788\uc2b5\ub2c8\ub2e4. \uc2a4\ud0dd\uc744 \uc0ac\uc6a9\ud558\uc5ec \ud604\uc7ac \ub178\ub4dc\ub97c \ucd94\uc801\ud558\uace0, \uc790\uc2dd \ub178\ub4dc\uac00 \uc5c6\ub294 \ub178\ub4dc\ub97c \uce74\uc6b4\ud2b8\ud558\ub294 \ubc29\uc2dd\uc785\ub2c8\ub2e4. \uc544\ub798\ub294 \ube44\uc7ac\uadc0\uc801 \uad6c\ud604\uc758 \uc608\uc2dc\uc785\ub2c8\ub2e4:\n        <\/p>\n<pre>\n            <code>\n                function countLeafNodesIterative(root) {\n                    if (root === null) {\n                        return 0;\n                    }\n\n                    let stack = [root];\n                    let leafCount = 0;\n\n                    while (stack.length &gt; 0) {\n                        let node = stack.pop();\n\n                        \/\/ \ub178\ub4dc\uac00 \ub9ac\ud504 \ub178\ub4dc\uc778\uc9c0 \ud655\uc778\n                        if (node.left === null &amp;&amp; node.right === null) {\n                            leafCount++;\n                        }\n\n                        \/\/ \uc790\uc2dd \ub178\ub4dc\ub97c \uc2a4\ud0dd\uc5d0 \ucd94\uac00\n                        if (node.right !== null) {\n                            stack.push(node.right);\n                        }\n                        if (node.left !== null) {\n                            stack.push(node.left);\n                        }\n                    }\n\n                    return leafCount;\n                }\n\n                console.log(countLeafNodesIterative(root)); \/\/ Expected output: 3\n            <\/code>\n        <\/pre>\n<\/section>\n<section>\n<h2>8. \uacb0\ub860<\/h2>\n<p>\n            \uc774 \uac15\uc88c\uc5d0\uc11c\ub294 \uc774\uc9c4 \ud2b8\ub9ac\uc5d0\uc11c \ub9ac\ud504 \ub178\ub4dc\ub97c \uad6c\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc0b4\ud3b4\ubcf4\uc558\uc2b5\ub2c8\ub2e4. \uc7ac\uadc0\uc801 \ubc0f \ube44\uc7ac\uadc0\uc801 \ubc29\ubc95\uc744 \ubaa8\ub450 \uc0ac\uc6a9\ud558\uc5ec \uc811\uadfc\ud560 \uc218 \uc788\uc74c\uc744 \ud655\uc778\ud588\uc2b5\ub2c8\ub2e4. \uc774 \ubb38\uc81c\ub97c \ud574\uacb0\ud568\uc73c\ub85c\uc368 \ud2b8\ub9ac \ub370\uc774\ud130 \uad6c\uc870\uc640 DFS \ud0d0\uc0c9 \uc54c\uace0\ub9ac\uc998\uc744 \ubcf4\ub2e4 \uae4a\uc774 \uc774\ud574\ud558\ub294 \ub370 \ub3c4\uc6c0\uc774 \ub418\uc5c8\uae30\ub97c \ubc14\ub78d\ub2c8\ub2e4. \uc54c\uace0\ub9ac\uc998\uc758 \uc131\ub2a5 \ubd84\uc11d\uc744 \ud1b5\ud574 \ud6a8\uc728\uc131\uc744 \uace0\ub824\ud558\uba70 \ubb38\uc81c\ub97c \ud480\uc5b4\ubcf4\ub294 \uac83\uc774 \ub370\uc774\ud130 \uad6c\uc870\uc640 \uc54c\uace0\ub9ac\uc998 \ud559\uc2b5\uc5d0 \uc911\uc694\ud558\ub2e4\ub294 \uc810\uc744 \uac15\uc870\ud558\uace0 \uc2f6\uc2b5\ub2c8\ub2e4.\n        <\/p>\n<\/section>\n<\/article>\n","protected":false},"excerpt":{"rendered":"<p>1. \ubb38\uc81c \uc815\uc758 \uc774 \ubb38\uc81c\ub294 \uc774\uc9c4 \ud2b8\ub9ac(binary tree)\uc5d0\uc11c \ub9ac\ud504 \ub178\ub4dc\uc758 \uac1c\uc218\ub97c \uad6c\ud558\ub294 \uac83\uc785\ub2c8\ub2e4. \ub9ac\ud504 \ub178\ub4dc\ub294 \uc790\uc2dd \ub178\ub4dc\uac00 \uc5c6\ub294 \ub178\ub4dc\ub97c \uc758\ubbf8\ud569\ub2c8\ub2e4. \uc790\uc2dd \ub178\ub4dc\uac00 \uc5c6\ub294 \ub178\ub4dc\uc758 \uac1c\uc218\ub97c \uc138\ub294 \uac83\uc740 \ud2b8\ub9ac\uc758 \uad6c\uc870\ub97c \uc774\ud574\ud558\uace0 \ud0d0\uc0c9 \uc54c\uace0\ub9ac\uc998\uc744 \ud65c\uc6a9\ud558\ub294 \uc88b\uc740 \uc5f0\uc2b5\uc785\ub2c8\ub2e4. \uc774 \ubb38\uc81c\ub97c \ud574\uacb0\ud558\uae30 \uc704\ud574 \uc7ac\uadc0(Recursive) \ub610\ub294 \ube44\uc7ac\uadc0(Iterative) \ubc29\uc2dd\uc73c\ub85c \uc811\uadfc\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. 2. \ubb38\uc81c \uc608\uc2dc \ub2e4\uc74c\uacfc \uac19\uc740 \uc774\uc9c4 \ud2b8\ub9ac\uac00 \uc8fc\uc5b4\uc84c\ub2e4\uace0 \uac00\uc815\ud574\ubcf4\uaca0\uc2b5\ub2c8\ub2e4: &hellip; <a href=\"https:\/\/atmokpo.com\/w\/28053\/\" 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, \ub9ac\ud504 \ub178\ub4dc\uc758 \uac1c\uc218 \uad6c\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":[26],"tags":[],"class_list":["post-28053","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, \ub9ac\ud504 \ub178\ub4dc\uc758 \uac1c\uc218 \uad6c\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\/28053\/\" \/>\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, \ub9ac\ud504 \ub178\ub4dc\uc758 \uac1c\uc218 \uad6c\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"1. \ubb38\uc81c \uc815\uc758 \uc774 \ubb38\uc81c\ub294 \uc774\uc9c4 \ud2b8\ub9ac(binary tree)\uc5d0\uc11c \ub9ac\ud504 \ub178\ub4dc\uc758 \uac1c\uc218\ub97c \uad6c\ud558\ub294 \uac83\uc785\ub2c8\ub2e4. \ub9ac\ud504 \ub178\ub4dc\ub294 \uc790\uc2dd \ub178\ub4dc\uac00 \uc5c6\ub294 \ub178\ub4dc\ub97c \uc758\ubbf8\ud569\ub2c8\ub2e4. \uc790\uc2dd \ub178\ub4dc\uac00 \uc5c6\ub294 \ub178\ub4dc\uc758 \uac1c\uc218\ub97c \uc138\ub294 \uac83\uc740 \ud2b8\ub9ac\uc758 \uad6c\uc870\ub97c \uc774\ud574\ud558\uace0 \ud0d0\uc0c9 \uc54c\uace0\ub9ac\uc998\uc744 \ud65c\uc6a9\ud558\ub294 \uc88b\uc740 \uc5f0\uc2b5\uc785\ub2c8\ub2e4. \uc774 \ubb38\uc81c\ub97c \ud574\uacb0\ud558\uae30 \uc704\ud574 \uc7ac\uadc0(Recursive) \ub610\ub294 \ube44\uc7ac\uadc0(Iterative) \ubc29\uc2dd\uc73c\ub85c \uc811\uadfc\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. 2. \ubb38\uc81c \uc608\uc2dc \ub2e4\uc74c\uacfc \uac19\uc740 \uc774\uc9c4 \ud2b8\ub9ac\uac00 \uc8fc\uc5b4\uc84c\ub2e4\uace0 \uac00\uc815\ud574\ubcf4\uaca0\uc2b5\ub2c8\ub2e4: &hellip; \ub354 \ubcf4\uae30 &quot;\uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ub9ac\ud504 \ub178\ub4dc\uc758 \uac1c\uc218 \uad6c\ud558\uae30&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/28053\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-27T15:21:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T07:10:44+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\/28053\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/28053\/\"},\"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, \ub9ac\ud504 \ub178\ub4dc\uc758 \uac1c\uc218 \uad6c\ud558\uae30\",\"datePublished\":\"2024-10-27T15:21:12+00:00\",\"dateModified\":\"2024-11-26T07:10:44+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/28053\/\"},\"wordCount\":20,\"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\/28053\/\",\"url\":\"https:\/\/atmokpo.com\/w\/28053\/\",\"name\":\"\uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ub9ac\ud504 \ub178\ub4dc\uc758 \uac1c\uc218 \uad6c\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-10-27T15:21:12+00:00\",\"dateModified\":\"2024-11-26T07:10:44+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/28053\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/28053\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/28053\/#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, \ub9ac\ud504 \ub178\ub4dc\uc758 \uac1c\uc218 \uad6c\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":"\uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ub9ac\ud504 \ub178\ub4dc\uc758 \uac1c\uc218 \uad6c\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\/28053\/","og_locale":"ko_KR","og_type":"article","og_title":"\uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ub9ac\ud504 \ub178\ub4dc\uc758 \uac1c\uc218 \uad6c\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"1. \ubb38\uc81c \uc815\uc758 \uc774 \ubb38\uc81c\ub294 \uc774\uc9c4 \ud2b8\ub9ac(binary tree)\uc5d0\uc11c \ub9ac\ud504 \ub178\ub4dc\uc758 \uac1c\uc218\ub97c \uad6c\ud558\ub294 \uac83\uc785\ub2c8\ub2e4. \ub9ac\ud504 \ub178\ub4dc\ub294 \uc790\uc2dd \ub178\ub4dc\uac00 \uc5c6\ub294 \ub178\ub4dc\ub97c \uc758\ubbf8\ud569\ub2c8\ub2e4. \uc790\uc2dd \ub178\ub4dc\uac00 \uc5c6\ub294 \ub178\ub4dc\uc758 \uac1c\uc218\ub97c \uc138\ub294 \uac83\uc740 \ud2b8\ub9ac\uc758 \uad6c\uc870\ub97c \uc774\ud574\ud558\uace0 \ud0d0\uc0c9 \uc54c\uace0\ub9ac\uc998\uc744 \ud65c\uc6a9\ud558\ub294 \uc88b\uc740 \uc5f0\uc2b5\uc785\ub2c8\ub2e4. \uc774 \ubb38\uc81c\ub97c \ud574\uacb0\ud558\uae30 \uc704\ud574 \uc7ac\uadc0(Recursive) \ub610\ub294 \ube44\uc7ac\uadc0(Iterative) \ubc29\uc2dd\uc73c\ub85c \uc811\uadfc\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. 2. \ubb38\uc81c \uc608\uc2dc \ub2e4\uc74c\uacfc \uac19\uc740 \uc774\uc9c4 \ud2b8\ub9ac\uac00 \uc8fc\uc5b4\uc84c\ub2e4\uace0 \uac00\uc815\ud574\ubcf4\uaca0\uc2b5\ub2c8\ub2e4: &hellip; \ub354 \ubcf4\uae30 \"\uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ub9ac\ud504 \ub178\ub4dc\uc758 \uac1c\uc218 \uad6c\ud558\uae30\"","og_url":"https:\/\/atmokpo.com\/w\/28053\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-10-27T15:21:12+00:00","article_modified_time":"2024-11-26T07:10:44+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\/28053\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/28053\/"},"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, \ub9ac\ud504 \ub178\ub4dc\uc758 \uac1c\uc218 \uad6c\ud558\uae30","datePublished":"2024-10-27T15:21:12+00:00","dateModified":"2024-11-26T07:10:44+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/28053\/"},"wordCount":20,"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\/28053\/","url":"https:\/\/atmokpo.com\/w\/28053\/","name":"\uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ub9ac\ud504 \ub178\ub4dc\uc758 \uac1c\uc218 \uad6c\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-10-27T15:21:12+00:00","dateModified":"2024-11-26T07:10:44+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/28053\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/28053\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/28053\/#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, \ub9ac\ud504 \ub178\ub4dc\uc758 \uac1c\uc218 \uad6c\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\/28053","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=28053"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/28053\/revisions"}],"predecessor-version":[{"id":28054,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/28053\/revisions\/28054"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=28053"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=28053"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=28053"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}