码迷,mamicode.com
首页 >  
搜索关键字:leet    ( 148个结果
Word Break
Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words. For example, given s = "leetcode", dict = ["leet"...
分类:其他好文   时间:2014-08-31 20:07:12    阅读次数:233
【Leet Code】Palindrome Number
Palindrome Number  Total Accepted: 19369 Total Submissions: 66673My Submissions Determine whether an integer is a palindrome. Do this without extra space. 判断一个数整数是不是回文?例如121,122...
分类:其他好文   时间:2014-08-27 01:40:27    阅读次数:180
【Leet Code】String to Integer (atoi) ——常考类型题
String to Integer (atoi)  Total Accepted: 15482 Total Submissions: 106043My Submissions Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases...
分类:其他好文   时间:2014-08-27 01:40:07    阅读次数:293
【Leet Code】ZigZag Conversion
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility) P A H N A P L S I ...
分类:其他好文   时间:2014-08-25 23:00:25    阅读次数:671
【Leet Code】Reverse Integer——“%”你真的懂吗?
Reverse Integer  Total Accepted: 27372 Total Submissions: 68133My Submissions Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 题目咋看起...
分类:其他好文   时间:2014-08-25 21:12:54    阅读次数:198
【Leet Code】Longest Palindromic Substring ——传说中的Manacher算法
Longest Palindromic Substring  Total Accepted: 17474 Total Submissions: 84472My Submissions Given a string S, find the longest palindromic substring in S. You may assume that the maximum l...
分类:其他好文   时间:2014-08-24 16:46:02    阅读次数:190
【Leet Code】Longest Substring Without Repeating Characters
Longest Substring Without Repeating Characters  Total Accepted: 20506 Total Submissions: 92223My Submissions Given a string, find the length of the longest substring without repeating char...
分类:其他好文   时间:2014-08-23 21:42:21    阅读次数:359
【Leet Code】Add Two Numbers
Add Two Numbers  Total Accepted: 20255 Total Submissions: 88115My Submissions You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order a...
分类:其他好文   时间:2014-08-23 21:40:01    阅读次数:200
【Leet Code】Median of Two Sorted Arrays
Median of Two Sorted Arrays  Total Accepted: 17932 Total Submissions: 103927My Submissions There are two sorted arrays A and B of size m and n respectively. Find the median of the two sort...
分类:其他好文   时间:2014-08-21 13:24:54    阅读次数:206
#Leet Code# Gray Code
描述:要求相邻数2进制差一位先获得n-1的列表表示小于 2^(n-1) 的符合要求的列表,加上最高位的加成 2^(n-1) 就是大于等于 2^(n-1) 的符合要求的列表,后者翻转一下就能够与前者连接上了代码: 1 class Solution: 2 # @return a list of ...
分类:其他好文   时间:2014-08-11 20:38:52    阅读次数:152
148条   上一页 1 ... 11 12 13 14 15 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!