Hey, I'm also a leetcoder! If you don't mind, I'd like to have a chat. Visit my LC where all links can be found: https://leetcode.com/SleeplessChallenger/
PS: I was solving keys & rooms question, did it in bfs, but was thinking how to implement UF there and found your answer pretty insightful!
Hey, I'm also a leetcoder! If you don't mind, I'd like to have a chat. Visit my LC where all links can be found: https://leetcode.com/SleeplessChallenger/
ReplyDeletePS: I was solving keys & rooms question, did it in bfs, but was thinking how to implement UF there and found your answer pretty insightful!