会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
白雪儿
the crystal snow flakes dance in the air.
CnBlogs
Home
New Post
Contact
Admin
Subscription
2021年9月15日
BFS模板 + 力扣例题
BFS模板 + 力扣例题 DFS和BFS的区别: BFS的时间复杂度是O(logn),DFS的时间复杂度是O(n)。BFS更节省时间,速度更快。 BFS模板: 1 int BFS(Node start, Node target)//计算从起点start到终点target的距离 2 { 3 Queue
Read More
posted @ 2021-09-15 16:11 白雪儿
Views(168)
Comments(0)
Diggs(0)
公告