employeeimportance

개발공부/algorithm

[Leetcode][python] 690 - Employee importance - DFS

Leetcode 690: Employee importance Level: easy Link Employee Importance - 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 My approach Iterate through nested list and store employee id and importance in a dictionary Perform dfs with starting id sum up the importance of an employee ch..

so.py
'employeeimportance' 태그의 글 목록