Notice
Recent Posts
Recent Comments
Link
목록leetcode (1)
개발자-H 입니다.
LeetCode - FloodFile
https://leetcode.com/problems/flood-fill/solution/ Flood Fill - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 그래프 탐색 문제이다. 경로 탐색 조건에 픽셀 비교 구문을 추가하면 쉽게 해결 할 수 있다. class Solution { public int[][] floodFill(int[][] image, int sr, int sc, int newColor) { dfs(image, sr, sc, newColor, ..
Algorithm/문제 풀이
2021. 8. 7. 17:00