반응형 전체 글135 [DSA][Graph] 08. Course Schedule II LeetCode 210 08. Course Schedule IIThere are a total of numCourses courses you have to take, labeled from 0 to numCourses - 1.You are given an array prerequisites where prerequisites[i] = [ai, bi] indicates that you must take course bi first if you want to take course ai.For example, the pair [0, 1], indicates that to take course 0 you have to first take course 1.Return the ordering of courses y.. 2026. 3. 21. [DSA][Graph] 07. Course Schedule LeetCode 207 07. Course ScheduleThere are a total of numCourses courses you have to take, labeled from 0 to numCourses - 1.You are given an array prerequisites where prerequisites[i] = [ai, bi] indicates that you must take course bi first if you want to take course ai.For example, the pair [0, 1], indicates that to take course 0 you have to first take course 1.Return true if you can finish all c.. 2026. 3. 15. [DSA][Graph] 06. Surrounded Regions LeetCode 130 06. Surrounded RegionsYou are given an m x n matrix board containing letters 'X' and 'O', capture regions that are surrounded:▪ Connect: A cell is connected to adjacent cells horizontally or vertically.▪ Region: To form a region connect every 'O' cell.▪ Surround: A region is surrounded if none of the 'O' cells in that region are on the edge of the board. Such regions are completely.. 2026. 3. 1. [DSA][Graph] 05. Pacific Atlantic Water Flow LeetCode 417 05. Pacific Atlantic Water FlowThere is an m x n rectangular island that borders both the Pacific Ocean and Atlantic Ocean.The Pacific Ocean touches the island's left and top edges, and the Atlantic Ocean touches the island's right and bottom edges.The island is partitioned into a grid of square cells.You are given an m x n integer matrix heights where heights[r][c] represents the h.. 2026. 2. 27. 이전 1 2 3 4 ··· 34 다음