UVA10069 Distinct Subsequences 超級大數 + DP
一萬多的代碼,看著好亂,有點嚇人,JAVA還沒學會,不然就很短了 題意是給你一個母串一個子串,問你子串在母串中出現的次數,一個字母可以用多次,但是沒找到一
LeetCode | Construct Binary Tree from Preorder and Inorder Traversal
題目 Given preorder and inorder traversal of a tree, construct the binary tre
LeetCode | Maximum Subarray
題目 Find the contiguous subarray within an array (containing at least one nu
UVa 12086 Potentiometers 樹狀數組裸題 單點更新 區間查詢
題意:單點更新,區間查詢 樹狀數組裸題: #include #include #include #include #include #inclu
leetCode解題報告之Binary Tree Level Order Traversal II,I(二叉樹層次遍歷)
題目: Binary Tree Level Order Traversal II(由於Binary Tree Level Order Traversal
Pat(Advanced Level)Practice--1079(Total Sales of Supply Chain)
Pat1079代碼 題目描述: A supply chain is a network of retailers(零售商), distributor
11589 - Save the President(暴力+技巧枚舉)
鏈接:11589 - Save the President 題意:有n個爆炸區域,每個區域有一個爆炸時間,現在要保護總統,要保證總統的生存空間為x,