码迷,mamicode.com
首页 >  
搜索关键字:assume    ( 1858个结果
LeetCode第[5]题(Java):Longest Palindromic Substring 标签:String、动态规划
题目中文:求最长回文子串 题目难度: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
Majority Element
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
Find Mode in Binary Search Tree 二叉搜索树中查找众数
[抄题]: 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
LeetCode之Easy篇 ——(7)Reverse Integer
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
leetcode刷题总结(1)
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
169. Majority Element 出现次数超过n/2的元素
[抄题]: 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
POJ 1328 Radar Installation (区间贪心)
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
[LeetCode] 208. Implement Trie (Prefix Tree) 实现字典树(前缀树)
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
Plus One
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
1118. Birds in Forest (25)
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
1858条   上一页 1 ... 34 35 36 37 38 ... 186 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!