Given a circular array C of integers represented by A, find the maximum possible sum of a non-empty subarray of C. Here, a circular array means the en ...
分类:
其他好文 时间:
2019-02-12 15:50:51
阅读次数:
185
Given a string s, find the longest palindromic subsequence's length in s. You may assume that the maximum length of s is 1000. Example 1:Input: Output ...
分类:
其他好文 时间:
2019-02-11 12:26:57
阅读次数:
172
Take 2 strings s1 and s2 including only letters from ato z. Return a new sorted string, the longest possible, containing distinct letters, each taken ...
分类:
其他好文 时间:
2019-02-11 10:25:28
阅读次数:
210
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or right at any p ...
分类:
其他好文 时间:
2019-02-09 17:52:59
阅读次数:
143
C. Ayoub and Lost Array time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output C. Ayoub and Lost ...
分类:
其他好文 时间:
2019-02-09 12:08:55
阅读次数:
176
Given a sequence 1,2,3,......N, your job is to calculate all the possible sub-sequences that the sum of the sub-sequence is M. Input Input contains mu ...
分类:
其他好文 时间:
2019-02-09 10:19:48
阅读次数:
169
Given a collection of numbers that might contain duplicates, return all possible unique permutations. Example: 1 class Solution { 2 public: 3 vector<v ...
分类:
其他好文 时间:
2019-02-07 19:05:26
阅读次数:
151
Given a collection of distinct integers, return all possible permutations. Example: 1 class Solution { 2 public: 3 void build(vector<bool>visited, vec ...
分类:
其他好文 时间:
2019-02-07 19:02:36
阅读次数:
151
本篇旨意在于讨论List的基本用法,不做全面讲解,仅仅涉及构造函数List、Add、RemoveAt 先看看这几个函数的代码 1、构造函数 2、Add public void Add(T item) { if (_size == _items.Length) EnsureCapacity(_size ...
分类:
其他好文 时间:
2019-02-07 17:47:03
阅读次数:
163
"Glass Beads" Time Limit: 3000MS Memory Limit: 10000K Total Submissions: 5254 Accepted: 2943 Description Once upon a time there was a famous actress. ...
分类:
其他好文 时间:
2019-02-07 09:20:28
阅读次数:
131