전체 글 884

[알고리즘] LeetCode 1489 - Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree (C++)

[문제 링크] : https://leetcode.com/problems/find-critical-and-pseudo-critical-edges-in-minimum-spanning-tree/description/ Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree - LeetCodeCan you solve this real interview question? Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree - Given a weighted undirected connected graph with n vertices numbered from 0 to n - 1, and an a..

알고리즘 2026.10.28

[알고리즘] LeetCode 2088 - Count Fertile Pyramids in a Land (C++)

[문제 링크] : https://leetcode.com/problems/count-fertile-pyramids-in-a-land/description/ Count Fertile Pyramids in a Land - LeetCodeCan you solve this real interview question? Count Fertile Pyramids in a Land - A farmer has a rectangular grid of land with m rows and n columns that can be divided into unit cells. Each cell is either fertile (represented by a 1) or barren (represented byleetcode.com#..

알고리즘 2026.10.27

[알고리즘] LeetCode 1298 - Maximum Candies You Can Get from Boxes (C++)

[문제 링크] : https://leetcode.com/problems/maximum-candies-you-can-get-from-boxes/description/ Maximum Candies You Can Get from Boxes - LeetCodeCan you solve this real interview question? Maximum Candies You Can Get from Boxes - You have n boxes labeled from 0 to n - 1. You are given four arrays: status, candies, keys, and containedBoxes where: * status[i] is 1 if the ith box is open and 0 if thele..

알고리즘 2026.10.24

[알고리즘] LeetCode 1617 - Count Subtrees With Max Distance Between Cities (C++)

[문제 링크] : https://leetcode.com/problems/count-subtrees-with-max-distance-between-cities/description/ Count Subtrees With Max Distance Between Cities - LeetCodeCan you solve this real interview question? Count Subtrees With Max Distance Between Cities - There are n cities numbered from 1 to n. You are given an array edges of size n-1, where edges[i] = [ui, vi] represents a bidirectional edge betw..

알고리즘 2026.10.22