码迷,mamicode.com
首页 >  
搜索关键字:characters    ( 2378个结果
[LeetCode]Text Justification
Given an array of words and a length L, format the text such that each line has exactly L characters and is fully (left and right) justified. You should pack your words in a greedy approach; that i...
分类:其他好文   时间:2015-01-13 09:03:32    阅读次数:217
ascii characters switch
ascii = {}ascii[' '] = ' 'ascii['!'] = '!'ascii['"'] = '\"'ascii['#'] = '#'ascii['$'] = '$'ascii['%'] = '%'ascii['&'] = '&...
分类:其他好文   时间:2015-01-12 23:49:00    阅读次数:258
[LeetCode]Wildcard Matching
Implement wildcard pattern matching with support for '?' and '*'. '?' Matches any single character. '*' Matches any sequence of characters (including the empty sequence). The matching should cover t...
分类:其他好文   时间:2015-01-12 16:39:22    阅读次数:168
LeetCode---Length of Last Word
Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string. If the last word does not exist, return 0. Note: A word is...
分类:其他好文   时间:2015-01-12 13:03:03    阅读次数:136
leetcode3 Longest substring whitout repeat characters
求字符串中的最长无重复子串的长度,例如"abcabcbb",最长无重复子串为"abc",长度为3。因为要求无重复,因此想到要用HashMap来保存,因为HashMap的键值不能重复。将要存入的字符作为key,字符在字符串中的下标作为value,如果map中已经存有该字符,则删掉该字符以及字符串中该字符之前的所有字符,然后再存入。例如字符串为"abcbd",如已存入abc,现在要存b,则删掉ab,存...
分类:其他好文   时间:2015-01-12 11:38:25    阅读次数:217
[LeetCode][Python]Longest Substring Without Repeating Characters
# -*- coding: utf8 -*-'''__author__ = 'dabay.wang@gmail.com'https://oj.leetcode.com/problems/longest-substring-without-repeating-characters/Given a st...
分类:编程语言   时间:2015-01-12 01:36:33    阅读次数:255
LeetCode No.3 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...
分类:其他好文   时间:2015-01-11 22:58:44    阅读次数:223
【leetcode】Wildcard Matching
Wildcard MatchingImplement wildcard pattern matching with support for'?'and'*'.'?' Matches any single character.'*' Matches any sequence of characters...
分类:其他好文   时间:2015-01-10 22:20:52    阅读次数:222
spoj 1812
1812. Longest Common Substring IIProblem code: LCS2A string is finite sequence of characters over a non-empty finite set Σ.In this problem, Σ is the s...
分类:其他好文   时间:2015-01-09 22:06:32    阅读次数:339
linux 命令之——sort
名称:sort 位置:/usr/bin/sort 权限:所有用户 用法: sort [OPTION]... [FILE]... sort [OPTION]... --files0-from=F 选项: -b --ignore-leading-blanks 忽略最前面的空格 -f --ignore-case fold lower case to upper case characters 忽略字母的大小写 ...
分类:系统相关   时间:2015-01-09 09:20:23    阅读次数:269
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!