04 2022 档案

摘要:环境变量配置 GoROOT是go的安装包,GOPATH是项目路径,比如hello.go所在项目的路径 工程结构是 project bin pkg src main.go bin是输出目录,src是工作目录 代码里注意package main 1 package main 2 3 import "fm 阅读全文
posted @ 2022-04-29 12:01 剩下的交给时间就好 阅读(64) 评论(0) 推荐(0)
摘要:547. 省份数量 - 力扣(LeetCode) (leetcode-cn.com) 1 class Solution { 2 public: 3 vector<int>father; 4 int find(int x){ 5 if(father[x]==x) 6 return x; 7 retur 阅读全文
posted @ 2022-04-25 10:19 剩下的交给时间就好 阅读(35) 评论(0) 推荐(0)