[Leetcode] Integer Break 分解整数最大乘积 Integer Break Given a positive integer n, break it into the sum of at least two positive integers and maximize the produ
[Leetcode] Maimum Gap 相邻最大差值 Maximum GapGiven an unsorted array, find the maximum difference between the successive elements in its sorted form.Try t
[Leetcode] Factor Combinations 因数组合 Factor CombinationsNumbers can be regarded as product of its factors. For example,8 = 2 x 2 x 2; = 2 x 4.Write a functi
浮点型的一个隐性特征 因子 这个论题来自今天我在segmentfault的回复。 有个人问 《C++ Primer》第五版,中文版。p33。 1.999999999999999(比转换之后少是 2 的少个 9) 也是 1。 微软免费 IDE 2015。g++ 好
建造者(Builder)模式 的若干使用场景 1.场景一如果我们需要将一个复杂对象的构建与它的表示分离,使得同样的构建过程可以创建不同的表示的意图时,我们可以使用 Builder模式,又叫生成器模式。如果我们用了Builder模式,那么用户就只需要指定需要建造的类型就可以得到它们,而具
[Leetcode] Largest Divisible Subset 最大整除集合 Largest Divisible SubsetGiven a set of distinct positive integers, find the largest subset such that every pair (Si, Sj)
OpenSSL 简单思路和函数笔记 一直以来都是普通的socket read/write,现在终于有基于SSL通道的项目了。所以简单记录了一下OpenSSL的调用流程,便于快速入门。ReferenceSSL编程- 简单函数介绍ssl的消息读写以及和tcp语义的异同——(这篇文
343. Integer Break 题目:Given a positive integer n, break it into the sum of at least two positive integers and maximize the product of those
[Leetcode] Pascal's Triangle II 杨辉三角 Pascal's Triangle II Given an index k, return the kth row of the Pascal's triangle. For example, given k = 3, Return [1,
[Leetcode] First Missing Positive First Missing PositiveGiven an unsorted integer array, find the first missing positive integer.For example,Given [1,2,0]