HDU 1561 The more, The Better(樹形dp+背包)
Time Limit: 6000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
[LeetCode] Implement Queue using Stacks
Implement Queue using StacksImplement the following operations of a queue using
Project Euler:Problem 58 Spiral primes
Starting with 1 and spiralling anticlockwise in the following way, a squar
LeetCode—Median of Two Sorted Arrays
Median of Two Sorted Arrays這道題要找Median,中位數。這個是指,如果數組大小是偶數,返回中間兩個數的平均值,如果是奇數個,就是中
leetCode 33.Search in Rotated Sorted Array(排序旋轉數組的查找) 解題思路和方法
Search in Rotated Sorted Array Suppose a sorted array is rotated at some pi
Leetcode : Regular Expression Matching
對於leetcode上這個題目,我用了不少時間來消化。題目大意如下:實現兩個字符串s,t的匹配,其中t字符串中的‘.’ 能匹配任何一個字
leetCode 32.Longest Valid Parentheses (有效的最大括號) 解題思路和方法
Longest Valid Parentheses Given a string containing just the characters
擴展MongoDB C# Driver的QueryBuilder
擴展MongoDB C# Driver的QueryBuilder由於不想直接hardcode ClassA.MemberA.MemberB 這樣的字符串 ,寫了
HDU 1171 Big Event in HDU (多重背包變形)
Big Event in HDUTime Limit: 10000/5000 MS (Java/Others) Memory Limit: 6553
codeforces 534B Covered Path
題意:有一段路,已知起點和終點的速度、總時間和每秒之間速度差值的上限,求這段路最長能是多少分析:思維代碼: #include#includeusing