Given a binary tree rooted at root, the depth of each node is the shortest distance to the root. A node is deepest if it has the largest depth possibl ...
分类:
其他好文 时间:
2018-07-10 17:52:45
阅读次数:
176
Given an integer array nums, find the contiguous subarray within an array (containing at least one number) which has the largest product. Example 1: E ...
分类:
编程语言 时间:
2018-07-08 22:12:36
阅读次数:
210
Flip Game Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 51056 Accepted: 21551 Description Flip game is played on a rectangular 4x4 field ...
分类:
其他好文 时间:
2018-07-07 17:57:10
阅读次数:
194
题目大意:给你\(A\)个a,\(B\)个b,\(C\)个c,要你构造一个字符串,使它的最小循环表示法最大。求这个表示法。解题思路:不知道怎么证,但把a、b、c当做单独的字符串扔进容器,每次把字典序最小的和字典序最大的两个字符串合并就是答案。容器用multiset即可。 C++ Code: ...
分类:
其他好文 时间:
2018-07-05 19:58:00
阅读次数:
201
I am writing a python script from which I hope to call the Matlab anovan function. I have attempted a basic test of this feature on file test.txt. Thi ...
分类:
编程语言 时间:
2018-06-28 13:50:48
阅读次数:
509
问题描述: Find the largest palindrome made from the product of two n-digit numbers. Since the result could be very large, you should return the largest pa ...
分类:
其他好文 时间:
2018-06-25 11:02:23
阅读次数:
249
Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum. Example: Inpu ...
分类:
其他好文 时间:
2018-06-23 22:51:11
阅读次数:
222
Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum. Example: Foll ...
分类:
编程语言 时间:
2018-06-21 11:32:42
阅读次数:
144
Given an integer array nums, find the contiguous subarray within an array (containing at least one number) which has the largest product. Example 1: E ...
分类:
编程语言 时间:
2018-06-21 11:31:00
阅读次数:
236
747_Largest Number At Least Twice of Others [TOC] Description In a given integer array , there is always exactly one largest element. Find whether the ...
分类:
其他好文 时间:
2018-06-17 12:37:13
阅读次数:
183