zoukankan
html css js c++ java
优化笔记(一)
1,使用for x in alist 判断一某个数是否遍历过,虽然很简洁但是时间复杂度是O(n)
所以更好的方法是创建一个数组,项数为1是遍历过,项数为0是未遍历
2,深广度遍历会得到一个生成树
可以直接留言交流问题或想法,每天都会看
查看全文
相关阅读:
最近公共祖先
洛谷 P1076 寻宝 解题报告
洛谷 P1121 环状最大两段子段和 解题报告
洛谷 P3705 [SDOI2017]新生舞会 解题报告
洛谷 P1381 单词背诵 解题报告
洛谷 P3155 [CQOI2009]叶子的染色 解题报告
洛谷 P3237 [HNOI2014]米特运输 解题报告
洛谷 P2345 奶牛集会 解题报告
洛谷 P1582 倒水 解题报告
数论知识荟萃
原文地址:https://www.cnblogs.com/shitianfang/p/12419436.html
最新文章
JavaScript编写连连看
hdu 4324 Triangle LOVE
hdu 1811 Rank of Tetris
hdu 3460 Ancient Printer
接下来的时间...
hdu 1298 T9
hdu 2846 Repository
蓝桥杯决赛结束。
hdu 3986 Harry Potter and the Final Battle
ACdream 1063 平衡树
热门文章
【USACO】The Cow Prom
【USACO】 奶牛政坛
【USACO】 Max Flow
【扬中集训DAY2T2】 机智的AmyZhi
【扬中集训 DAY4T3】holiday
【扬中集训 DAY4T1】跳马
【USACO 2006 November Gold】Corn Fields
【ZJOI 2008】树的统计
【NOI 2015】软件包管理器
【hdu 5418】 Victor and world
Copyright © 2011-2022 走看看