Loading

随笔分类 -  并查集

摘要:Given a list of accounts where each element accounts[i] is a list of strings, where the first element accounts[i][0] is a name, and the rest of the el 阅读全文
posted @ 2021-11-29 10:38 aalanwyr 阅读(133) 评论(0) 推荐(0)
摘要:You are given an integer array of unique positive integers nums. Consider the following graph: There are nums.length nodes, labeled nums[0] to nums[nu 阅读全文
posted @ 2021-11-24 09:48 aalanwyr 阅读(97) 评论(0) 推荐(0)