Notice
Recent Posts
Recent Comments
Link
목록N-ary Tree Level Order Traversal (1)
허허의 오늘은 뭐 먹지?
[leetcode] 429. N-ary Tree Level Order Traversal
leetcode.com/problems/n-ary-tree-level-order-traversal/ N-ary Tree Level Order Traversal - 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 이 문제는 bfs의 기본적인 문제입니다. queue에 시작점을 넣어두고 해당 시작점과 연결된 지점들을 다시 넣어주고를 반복합니다. 반복할 때마다 1depth씩 내려갑니다. class Solution { public List levelOrder(Node ro..
SW/알고리즘
2021. 5. 3. 21:34