Given two integers, a and b, you should check whether a is divisible by b or not. We know that an integer a is divisible by an integer b if and only i ...
分类:
其他好文 时间:
2018-03-21 21:59:25
阅读次数:
185
In a given integer array nums, there is always exactly one largest element. Find whether the largest element in the array is at least twice as much as ...
分类:
其他好文 时间:
2018-03-20 22:08:52
阅读次数:
197
https://leetcode.com/problems/first-bad-version/description/ You are given an API bool isBadVersion(version) which will return whether version is bad. ...
分类:
其他好文 时间:
2018-03-17 10:55:12
阅读次数:
176
The functions associated with priority queue are:empty() – Returns whether the queue is emptysize() – Returns the size of the queuetop() – Returns a r ...
分类:
其他好文 时间:
2018-03-16 11:19:55
阅读次数:
140
Write a program to check whether a given number is an ugly number. Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. For exa ...
分类:
其他好文 时间:
2018-03-11 17:37:40
阅读次数:
143
[抄题]: Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree [1,2,2,3,4,4,3] is ...
分类:
其他好文 时间:
2018-03-11 11:52:52
阅读次数:
159
Given two integers, a and b, you should check whether a is divisible by b or not. We know that an integer a is divisible by an integer b if and only i ...
分类:
其他好文 时间:
2018-03-09 20:32:58
阅读次数:
187
公司需要升级PHP版本至PHP7,对于用惯了wamp的来说,添加一下PHP扩展应该是很容易的,看我以前的文章(WampServer自己DIY添加apache、php、mysql版本)。 不过再配置的当中并不顺利,要集成php7.1.15花了一点时间,因为使用的是 wampserver2.2e-php ...
分类:
Web程序 时间:
2018-03-08 14:14:53
阅读次数:
301
昨天今天两天复习了一下最短路, (但是还有一些其他的比如:第k短路,Johnson,差分约束没有仔细研究过) Dijkstra堆优化 luogu3371 题目描述 如题,给出一个有向图,请输出从某一点出发到所有点的最短路径长度。 输入输出格式 输入格式: 第一行包含三个整数N、M、S,分别表示点的个 ...
分类:
其他好文 时间:
2018-03-07 21:43:59
阅读次数:
186
Remembrance is a form of meeting, forgetfulness is a form of freedom. 记忆是一种相遇,遗忘是一种自由。 Cherish those memory, whether they are sweet or bitter, we alwa ...
分类:
其他好文 时间:
2018-03-02 01:26:09
阅读次数:
154