题目中文:求最长回文子串 题目难度:Medium 题目内容: Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. 翻译: ...
分类:
编程语言 时间:
2018-03-19 19:09:23
阅读次数:
224
Given an array of size n, find the majority element. The majority element is the element that appears more than ? n/2 ? times. You may assume that the ...
分类:
其他好文 时间:
2018-03-18 21:40:37
阅读次数:
170
[抄题]: Given a binary search tree (BST) with duplicates, find all the mode(s) (the most frequently occurred element) in the given BST. Assume a BST is ...
分类:
其他好文 时间:
2018-03-17 21:38:17
阅读次数:
174
7、Reverse Integer Given a 32-bit signed integer, reverse digits of an integer. Example 1: Example 2: Example 3: Note:Assume we are dealing with an env ...
分类:
其他好文 时间:
2018-03-17 00:42:52
阅读次数:
312
1、Two Sum Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input wou ...
分类:
其他好文 时间:
2018-03-15 23:02:39
阅读次数:
235
[抄题]: Given an array of size n, find the majority element. The majority element is the element that appears more than ? n/2 ? times. You may assume th ...
分类:
其他好文 时间:
2018-03-14 23:03:19
阅读次数:
161
Assume the coasting is an infinite straight line. Land is in one side of coasting, sea in the other. Each small island is a point locating in the sea ...
分类:
其他好文 时间:
2018-03-10 11:49:53
阅读次数:
165
Implement a trie with insert, search, and startsWith methods. Note:You may assume that all inputs are consist of lowercase letters a-z. 实现一个数据结构:字典树(前 ...
分类:
其他好文 时间:
2018-03-07 11:44:08
阅读次数:
183
Given a non negative integer represented as a non empty array of digits, plus one to the integer. You may assume the integer do not contain any leadin ...
分类:
其他好文 时间:
2018-03-03 20:28:18
阅读次数:
158
Some scientists took pictures of thousands of birds in a forest. Assume that all the birds appear in the same picture belong to the same tree. You are ...
分类:
其他好文 时间:
2018-03-02 12:32:17
阅读次数:
202