码迷,mamicode.com
首页 >  
搜索关键字:letters    ( 1345个结果
hdu1179Ollivanders: Makers of Fine Wands since 382 BC. (二分最大匹配)
Problem Description In Diagon Alley ,there is only one Wand-seller,peeling gold letters over the door read Ollivanders: Makers of Fine Wands since 382 BC.A single wand lay on a faded purple cushion i...
分类:其他好文   时间:2014-07-29 14:59:59    阅读次数:242
Longest Substring Without Repeating Characters
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for "abcabcbb" is "abc", which the length is 3. Fo...
分类:其他好文   时间:2014-07-29 14:28:48    阅读次数:218
Letter Combinations of a Phone Number
这是一个循环操作,如果重数太多,只能递归搜索,不满足条件return 或者else,刚才出错了public class Solution { private String letters[] = {"","","abc", "def", "ghi", "jkl", "mno", "pqr...
分类:其他好文   时间:2014-07-29 11:08:26    阅读次数:233
Hangman游戏源代码 --- python实现
#hangman.pyfrom PythonCard import model,dialogimport randomdef find_letters(letter,a_string): locations = [] start = 0 while a_string.find(le...
分类:编程语言   时间:2014-07-29 11:02:46    阅读次数:562
[LeetCode] Longest Substring Without Repeating Characters
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:其他好文   时间:2014-07-27 10:25:42    阅读次数:179
leetcode-Word Search
Word Search  Total Accepted: 11535 Total Submissions: 58659My Submissions Given a 2D board and a word, find if the word exists in the grid. The word can be constructed from letters of seq...
分类:其他好文   时间:2014-07-24 23:04:13    阅读次数:252
【leetcode刷题笔记】Decode Ways
A message containing letters fromA-Zis being encoded to numbers using the following mapping:'A' -> 1'B' -> 2...'Z' -> 26Given an encoded message conta...
分类:其他好文   时间:2014-07-24 21:56:32    阅读次数:219
[ACM] POJ 3096 Surprising Strings (map的使用)
Surprising Strings Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 5783   Accepted: 3792 Description The D-pairs of a string of letters are the ordered pai...
分类:其他好文   时间:2014-07-23 20:59:05    阅读次数:288
LeetCode:Decode Ways
A message containing letters from A-Z is being encoded to numbers using the following mapping: 'A' -> 1 'B' -> 2 ... 'Z' -> 26 Given an encoded message containing digits, determine the total numb...
分类:其他好文   时间:2014-07-23 17:06:05    阅读次数:324
【leetcode刷题笔记】Longest Substring Without Repeating Characters
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:其他好文   时间:2014-07-23 16:19:41    阅读次数:234
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!