码迷,mamicode.com
首页 >  
搜索关键字:letters    ( 1345个结果
[Leetcode] 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-11-13 14:12:55    阅读次数:176
【Leetcode】Decode Ways (DP)
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-11-12 13:51:56    阅读次数:297
c语言中字符串跨行书写的问题
字符串常量定义时的换行问题如果我们在一行代码的行尾放置一个反斜杠,c语言编译器会忽略行尾的换行符,而把下一行的内容也算作是本行的内容。这里反斜杠起到了续行的作用。 如果我们不使用反斜杠,当我们试图初始化一个跨多行的字符串是,c语言编译器就会发出警告。如下面的语句所示:char letters[] =...
分类:编程语言   时间:2014-11-08 18:07:55    阅读次数:482
C 字符串和格式化输入与输出
1.前导程序#include#include //1提供strlen()的函数原型#define DENSITY 62.4 //2预处理命令int main(void){ float weight,volume; int size,letters; char...
分类:其他好文   时间:2014-11-08 13:20:10    阅读次数:324
[leetcode]Word Search
问题描述: Given a 2D board and a word, find if the word exists in the grid. The word can be constructed from letters of sequentially adjacent cell, where "adjacent" cells are those horizontally or ver...
分类:其他好文   时间:2014-11-05 23:16:53    阅读次数:262
POJ 1256 Anagram(输入可重集枚举排序)
【题意简述】:本题题意很好理解!题目给出的Hint,使我们对关键点有了更加清晰的认识 An upper case letter goes before the corresponding lower case letter. So the right order of letters is 'A' 就是给一个序列(序列可以有重复的元素),让我们输出它的所有排列,字母顺序规定给出! 【分析】...
分类:编程语言   时间:2014-11-05 14:53:56    阅读次数:227
poj 3096 Surprising Strings
Surprising Strings Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 6017   Accepted: 3934 Description The D-pairs of a string of letters are the ordered pai...
分类:其他好文   时间:2014-11-04 17:31:40    阅读次数:192
[Leetcode] Longest Substring Without Repeating Characters (C++)
题目:Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters...
分类:编程语言   时间:2014-11-01 23:10:30    阅读次数:279
Leet Code 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. For ...
分类:其他好文   时间:2014-10-30 11:46:27    阅读次数:188
Problem 003——palindromes
Problem ThreepalindromesA regular palindrome is a string of numbers or letters that is the same forward as backward. For example, the string "ABCDEDCB...
分类:其他好文   时间:2014-10-30 07:09:03    阅读次数:271
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!