码迷,mamicode.com
首页 >  
搜索关键字:letter combinations    ( 2407个结果
LeetCode3: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 letter...
分类:其他好文   时间:2014-04-30 21:15:32    阅读次数:511
Letter Combinations of a Phone Number
Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephon...
分类:其他好文   时间:2014-04-30 03:52:56    阅读次数:411
Letter Combinations of a Phone Number
思路很简单,就是通过map对应,随后通过递归调用,这里遇到了个问题就是开始用string &re ,然后往里传re+c是不可以的,本来想省点内存,结果不行,所以只能值传递了,后来才知道string竟然还有push_back()和pop_back(),服了。 1 class Solution { 2 ...
分类:其他好文   时间:2014-04-29 19:31:07    阅读次数:524
POJ 3356 AGTC(DP-最小编辑距离)
DescriptionLetxandybe two strings over some finite alphabetA. We would like to transformxintoyallowing only operations given below:Deletion:a letter i...
分类:其他好文   时间:2014-04-29 16:22:00    阅读次数:450
从n个元素中选择k个的所有组合(包含重复元素)
LeetCode:Combinations这篇博客中给出了不包含重复元素求组合的5种解法。我们在这些解法的基础上修改以支持包含重复元素的情况。对于这种情况,首先肯定要对数组排序,以下不再强调修改算法1:按照求包含重复元素集合子集的方法LeetCode:Subsets II算法1的解释,我们知道:若当...
分类:其他好文   时间:2014-04-28 14:00:43    阅读次数:717
Timus 1404. Easy to Hack! 有一个密码问题
When Vito Maretti writes an important letter he encrypts it. His method is not very reliable but it’s enough to make any detective understand nothing in that letter. Sheriff doesn’t like such state ...
分类:其他好文   时间:2014-04-27 21:45:00    阅读次数:459
Letter Combinations of a Phone Number
Letter Combinations of a Phone Number, leetcode...
分类:其他好文   时间:2014-04-27 21:28:59    阅读次数:323
2407条   上一页 1 ... 239 240 241
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!