初次宣布在 個人博客 媒介 順序語言的編碼作風指南關於一個歷久保護的軟件而言是異常重要的;好的編程作風有助於寫出質量更高、毛病更少、更易於 保護的順序。 團隊協作須要制訂一些代碼範例另有應用一些東西來強迫請求團隊代碼的作…
hdu 5784 How Many Triangles 计算几何,平面有多少个锐角三角形
How Many Triangles 题目连接: http://acm.hdu.edu.cn/showproblem.php?pid=5784 Description Alice has n points in two-…
hdu 5534 Partial Tree 背包DP
Partial Tree Time Limit: 20 Sec Memory Limit: 256 MB 题目连接 http://acm.hdu.edu.cn/showproblem.php?pid=5534 Descr…
Codeforces Round #443 (Div. 1) D. Magic Breeding 位运算
D. Magic Breeding link http://codeforces.com/contest/878/problem/D description Nikita and Sasha play a compute…
hdoj 5122 K.Bro Sorting 贪心
K.Bro Sorting Time Limit: 2000/2000 MS (Java/Others) Memory Limit: 512000/512000 K (Java/Others) Total Submiss…
POJ 3270 Cow Sorting(置换)
Cow Sorting Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 4753 Accepted: 1734 Descr…
LeetCode 总结
LeetCode 方法详解
[LeetCode] Merge Sorted Array 混合插入有序数组
Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1&n…
[LeetCode] Paint Fence 粉刷篱笆
There is a fence with n posts, each post can be painted with one of the k colors. You have to pai…
[LeetCode] Longest Uncommon Subsequence I 最长非共同子序列之一
Given a group of two strings, you need to find the longest uncommon subsequence of this group of two st…
合并两颗平衡有序二叉树
问题描述 给定两颗平衡的有序二叉树,要求将这两个二叉树合并为一个平衡的有序二叉树。 问题解答 假定两个数的结点数分别为m和n。 思路1: 很容易想到把一颗树的每一个结点依次添加到另一颗树中,每次插入的平均时间复杂度为O(…
图解数据结构(7)——二叉查找树及平衡二叉查找树(一共14篇)
这篇将是最有难度和挑战性的一篇,做好心理准备!十、二叉查找树(BST)前一篇介绍了树,却未介绍树有什么用。但就算我不说,你也能想得到,看我们Windows的目录结构,其实就是树形的,一个典型的分类应用。当然除了分类,树还…