CSU1604: SunnyPig(BFS)
DescriptionSunnyPig is a pig who is much cleverer than any other pigs in the pig
poj2251 Dungeon Master
DescriptionYou are trapped in a 3D dungeon and need to find the quickest way out
C++數組求最大值及最小值最快方法(3[n/2]的時間效率)
#include using namespace std;//最小值和最大值的求解,時間復雜度最多是3[n/2],依據算法導論第九章.void swap(int
POJ 題目1286 Necklace of Beads(Polya定理)
Necklace of Beads Time Limit: 1000MS Memory Limit: 10000K Total Submis
HDU 5214 Movie (賽碼BestCoder杯中國大學生程序設計冠軍賽A題)
五一有幸跟著老師去了一次杭電,求虐之行,坐等清華北大等巨巨AK全場,總結經驗,激勵前進!【題目鏈接】click here~~【題目大意】在多個不確定區間裡面,問
POJ 2418 Hardwood Species(字典樹)
Hardwood Species Time Limit: 10000MS Memory Limit: 65536K Total Submis
[BZOJ1146]CTSC2008網絡管理|樹上帶修改K大
樹上帶修改K大,太可怕。。寫了樹鏈剖分+線段樹套平衡樹+二分和dfs序+主席樹兩種,每種都是寫+調試花了將近5個小時!!我實在是太弱了。。1. 樹鏈剖分+線段樹
C++數組中有一個數字出現的次數超過數組長度的一半,請找出這個數字。(牛客劍指offer)
///////////////////////////////////////////////////////////數組中有一個數字出現的次數超過數組長度的一
[LeetCode] Combination Sum
Combination SumGiven a set of candidate numbers (C) and a target number (T
C++中求數組連續子向量的最大和(牛客劍指offer)
/////////////////////////////////////////////////////////////////////HZ偶爾會拿些專業問題