POJ 1251 Jungle Roads 最小生成樹
題意:就是給出你圖,然後求最小生成樹的值即可。注意輸入。思路:完全裸的最小生成樹,kruskal水之。好久不寫最小生成樹,仔細想了想,還是寫了出來。代碼:&nb
poj 1941 The Sierpinski Fractal 遞歸
//poj 1941//sep9#include using namespace std;const int maxW=2048;const int maxH=
leetcode 231: Power of Two
Power of TwoTotal Accepted: 3596 Total Submissions: 11779Given an integer, write
leetcode 229: Majority Element II
Majority Element IITotal Accepted: 3172 Total Submissions: 14746Given an integer
LeetCode93:Restore IP Addresses
Given a string containing only digits, restore it by returning all possible val
LeetCode222 Count CompleteTree Nodes(計算完全二叉樹的節點數) Java 題解
題目: Given a complete binary tree, count the number of nodes.Definition of a
基於c++11新標准開發一個支持多線程高並發的網絡庫
背景新的c++11標准出後,c++語法得到了很多的擴展,比起以往任何時候都要靈活和高效,提高了程序編碼的效率,為軟件開發人員節省了不少的時間。 之前我也寫過基於
leetCode 38.Count and Say (計數和發言) 解題思路和方法
Count and SayThe count-and-say sequence is the sequence of integers beginning as
leetCode 36.Valid Sudoku(有效的數獨) 解題思路和方法
Valid SudokuDetermine if a Sudoku is valid, according to: Sudoku Puzzles - The R