Given an integer array, find three numbers whose product is maximum and output the maximum product. Example 1: Input: [1,2,3] Output: 6 Example 2: Inp ...
分类:
编程语言 时间:
2018-12-11 14:32:00
阅读次数:
207
Given an array, rotate the array to the right by k steps, where k is non-negative. Example 1: Input: [1,2,3,4,5,6,7] and k = 3 Output: [5,6,7,1,2,3,4] ...
分类:
其他好文 时间:
2018-12-09 10:43:22
阅读次数:
140
环境: 系统 Centos6.8 IP:192.168.66.131 关闭selinux和防火墙 # 修改字符集,否则可能报 input/output error的问题,因为日志里打印了中文 # localedef -c -f UTF-8 -i zh_CN zh_CN.UTF-8 # export ...
分类:
其他好文 时间:
2018-12-07 14:53:14
阅读次数:
312
665. Non-decreasing Array Input: [4,2,3] Output: True Explanation: You could modify the first 4 to 1 to get a non-decreasing array.递增 思路:贪心思想,找异常值,存在两 ...
分类:
其他好文 时间:
2018-12-06 12:07:50
阅读次数:
232
https://leetcode.com/problems/invert-binary-tree/ Invert a binary tree. Example: Input: Output: Trivia:This problem was inspired by this original twee ...
分类:
其他好文 时间:
2018-12-06 00:07:14
阅读次数:
220
A. Vasya and Book time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output A. Vasya and Book time ...
分类:
其他好文 时间:
2018-11-30 22:43:59
阅读次数:
387
D. Maximum Diameter Graph time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output D. Maximum Dia ...
分类:
其他好文 时间:
2018-11-30 22:42:56
阅读次数:
368
B. Vova and Trophies time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output B. Vova and Trophie ...
分类:
其他好文 时间:
2018-11-30 22:38:17
阅读次数:
256
C. Multi-Subject Competition time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. Multi-Su ...
分类:
其他好文 时间:
2018-11-30 22:35:28
阅读次数:
333
B. Jzzhu and Sequences time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Jzzhu has invented ...
分类:
其他好文 时间:
2018-11-30 00:43:59
阅读次数:
215