Leetcode—Maximum Product Subarray
Leetcode—Maximum Product Subarray 這道花了本人近8個小時,昨晚3個小時,今天下午5個小時。終於修正了所有的BUG
BZOJ 1014 JSOI 2008 火星人prefix Splay維護字符串Hash + 二分
BZOJ 1014 JSOI 2008 火星人prefix Splay維護字符串Hash + 二分 題目大意:定義LCQ為從x,y分別開始,有多長完全一樣。
Leetcode:populating_next_right_pointers_in_each_node題解
Leetcode:populating_next_right_pointers_in_each_node題解 一、 題目 對於結構體:struct
acdream 1234 Two Cylinders
acdream 1234 Two Cylinders Two Cylinders Special JudgeTime Limit: 10000/500
ACdream 1056 Bad Horse (種類並查集)
ACdream 1056 Bad Horse (種類並查集) Bad Horse Time Limit: 2000/1000MS (Java/Other
Maximum Depth of Binary Tree
Maximum Depth of Binary Tree Given a binary tree, find its maximum depth. The
HDOJ 4251 The Famous ICPC Team Again
HDOJ 4251 The Famous ICPC Team Again 劃分樹水題..... The Famous ICPC Team Again
Ural 1586 Threeprime Numbers(DP)
Ural 1586 Threeprime Numbers(DP) 題目地址:Ural 1586 先定義一個prime三維數組來記錄素數,若i*100+