Count Subtrees With Max Distance Between Cities
Problem Solving 2020. 10. 12. 00:24

Count Subtrees With Max Distance Between Cities Count Subtrees With Max Distance Between Cities - 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 - 문제 내용 : Tree로 만들어진 Nodes가 있다. Node의 갯수와 Node간의 Brides Array가 주어 졌을때, (순환 하지 않음) 연결 가능한 모든 Node의 Subsets에서 가장 거리가 긴 Distances를 길이로 해서 A..

Minimum Cost to Connect Two Groups of Points
Problem Solving 2020. 9. 23. 21:49

Minimum Cost to Connect Two Groups of Points Minimum Cost to Connect Two Groups of Points - 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 - 문제 내용 : A Group Points와 B Group Points 간의 연결시 Cost가 Array로 주어졌을 때 양쪽의 모든 Point가 서로 모두 연결 되었을 때의 최소값을 찾아라 - 접근 방법 : 전 탐색 늘 다른 사람 답을 보고 문제를 풀었..