码迷,mamicode.com
首页 >  
搜索关键字:letter combinations    ( 2407个结果
写一个函数,输入一个数,随机生成N条邮箱
写一个函数,这个函数的功能是,传入一个数字,产生N条邮箱,产生的手机号不能重复。邮箱前面的长度是6 - 12之间,产生的邮箱必须包含大写字母、小写字母、数字和特殊字符 import random import s... ...
分类:其他好文   时间:2018-12-02 22:55:55    阅读次数:386
Python的string模块
如果要使用string模块,需要先导入该模块 import string string.ascii_lowercase #打印所有的小写字母 string.ascii_uppercase #打印所有的大写字母 string.ascii_letters #打印所有的大小写字母 string.digit ...
分类:编程语言   时间:2018-12-01 20:22:08    阅读次数:246
[Leetcode 40]组合数和II Combination Sum II
【题目】 Given a collection of candidate numbers (candidates) and a target number (target), find all unique combinations in candidates where the candidate ...
分类:其他好文   时间:2018-12-01 00:13:02    阅读次数:187
js 验证
var regexEnum = { money: /^([1-9][0-9]*([\.]\d{1,2})?|0\.[1-9][0-9]?)$/, discount: /^(\d([\.]\d)?|0\.\d)$/, //匹配 0~9.9 之间的数字 intege:"^-?[1-9]\\d*$", / ...
分类:Web程序   时间:2018-11-30 14:02:35    阅读次数:240
bzoj1640 [Usaco2007 Nov]Best Cow Line 队列变换
Description FJ打算带着他可爱的N (1 ≤ N ≤ 2,000)头奶牛去参加”年度最佳老农”的比赛.在比赛中,每个农夫把他的奶牛排成一列,然后准备经过评委检验. 比赛中简单地将奶牛的名字缩写为其头字母(the initial letter of every cow),举个例子,FJ带了 ...
分类:其他好文   时间:2018-11-26 00:00:48    阅读次数:241
Codeforces.741D.Arpa’s letter-marked tree and Mehrdad’s Dokhtar-kosh paths(dsu on tree 思路)
给定一棵树,每条边上有一个字符(a~v)。对每个节点,求它的子树中一条最长的路径,满足 路径上所有边上的字符可以重新排列成一个回文串。输出其最长长度。 $n\leq 5\times10^5$。 ...
分类:其他好文   时间:2018-11-25 21:15:59    阅读次数:234
#Leetcode# 77. Combinations
https://leetcode.com/problems/combinations/ Given two integers n and k, return all possible combinations of k numbers out of 1 ... n. Example: 代码: 看 F ...
分类:其他好文   时间:2018-11-25 17:43:23    阅读次数:142
dsu on tree(无讲解)
CF741D. Arpa’s letter marked tree and Mehrdad’s Dokhtar kosh paths 分析: 最多有一个字符出现奇数次 维护某个状态下深度的最大值,注意是全局深度 写成非递归形式方便理解 代码: cpp include include include ...
分类:其他好文   时间:2018-11-25 14:29:42    阅读次数:221
05流与文件 动手动脑
使用Files.walkFileTree()找出指定文件夹下所有大于指定大小(比如1M)的文件 import java.io.IOException; import java.nio.file.*; import java.nio.file.attribute.BasicFileAttributes ...
分类:其他好文   时间:2018-11-21 22:21:18    阅读次数:257
17. Letter Combinations of a Phone Number C++回溯法
简单的回溯法! ...
分类:编程语言   时间:2018-11-20 01:23:18    阅读次数:200
2407条   上一页 1 ... 42 43 44 45 46 ... 241 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!