http://www.51nod.com/onlineJudge/questionCode.html#!problemId=1135 代码 // the smallest primitive root of prime P #include <bits/stdc++.h> const long lo ...
分类:
其他好文 时间:
2017-07-01 23:25:33
阅读次数:
273
寻找图中边缘突出的部分,解决思路: 1、阈值分割,找出黑色部分 2、生成一个小矩形作为StructElement,进行opening操作,即可找到如下图的部分 3、与阈值分割后的进行difference操作,即可找到突出部分,后面再进行求取突出的最边缘部分。 其完整代码如下: 1 read_imag ...
分类:
其他好文 时间:
2017-07-01 15:20:00
阅读次数:
1233
Given a binary tree, return the tilt of the whole tree. The tilt of a tree node is defined as the absolute difference between the sum of all left subt ...
分类:
其他好文 时间:
2017-07-01 10:00:56
阅读次数:
239
本文參考例如以下资料(建议阅读): a). difference-aggregation-acquaintance-and-composition-as-used-by-gang-of-four b). AssociationVsAggregationVsComposition c). Design ...
分类:
编程语言 时间:
2017-06-30 21:02:34
阅读次数:
205
As nouns the difference between behavior and action is that behavior is (uncountable) human conduct relative to social norms while action is something ...
分类:
其他好文 时间:
2017-06-30 17:20:23
阅读次数:
665
https://leetcode.com/problems/kth-smallest-element-in-a-bst/#/solutions 递归: ...
分类:
其他好文 时间:
2017-06-30 17:18:37
阅读次数:
126
https://stackoverflow.com/questions/34402522/difference-between-hash-and-id There are three concepts to grasp when trying to understand id, hash and t ...
分类:
其他好文 时间:
2017-06-29 17:42:16
阅读次数:
192
Given a positive integer a, find the smallest positive integer b whose multiplication of each digit equals to a. If there is no answer or the answer i ...
分类:
其他好文 时间:
2017-06-25 10:01:45
阅读次数:
196
Attitude is a little thing that makes a big difference. 小态度,大不同。 Attitudes can make a big difference, if combined properly with practice and ambition. ...
分类:
其他好文 时间:
2017-06-24 21:53:32
阅读次数:
167
1- http://www.cnblogs.com/wangguchangqing/p/4853263.html 2- http://www.xuebuyuan.com/893792.html ...
分类:
其他好文 时间:
2017-06-23 10:25:54
阅读次数:
168