강의

멘토링

커뮤니티

Inflearn Community Q&A

ukson9636's profile image
ukson9636

asked

Algorithm Coding Test to Pass in 2 Weeks (2024)

Union Find

1717번 최적화

Written on

·

102

0

union find 최적화 과정 중 union 최적화에서

rank[a]와 rank[b]가 같을때는 아래로 가는 트리? 높이의 rank를 1 증가해줬는데 왜 다를때는 rank를 증가 안해주나요?

증가해주는게 맞지않나? 싶어서 여쭤봅니다.

python코딩-테스트알고리즘

Answer

This question is waiting for answers
Be the first to answer!
ukson9636's profile image
ukson9636

asked

Ask a question