전체 글 885

[알고리즘] LeetCode 3336 - Find the Number of Subsequences With Equal GCD (C++)

[문제 링크] : https://leetcode.com/problems/find-the-number-of-subsequences-with-equal-gcd/description/ Find the Number of Subsequences With Equal GCD - LeetCodeCan you solve this real interview question? Find the Number of Subsequences With Equal GCD - You are given an integer array nums. Your task is to find the number of pairs of non-empty subsequences (seq1, seq2) of nums that satisfy the follow..

알고리즘 2026.11.01

[알고리즘] 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