Leetcode Minimum Spanning Tree Problems