Find all possible combinations of k positive numbers that add up to a number n,each combination should be a unique set of numbers. ...
分类:
其他好文 时间:
2018-02-24 20:45:26
阅读次数:
233
import randomfrom PIL import Image, ImageDraw, ImageFont, ImageFilter_letter_cases = "abcdefghjkmnpqrstuvwxy" # 小写字母,去除可能干扰的i,l,o,z_upper_cases = _let ...
分类:
编程语言 时间:
2018-02-23 13:36:12
阅读次数:
161
1 package com.jdk7.chapter5; 2 3 public class JavaIdentifier { 4 5 /** 6 * 使用Character.isJavaIdentifierPart判断字符是否属于java标识符 7 it is a letter 8 it is a ... ...
分类:
编程语言 时间:
2018-02-22 23:07:59
阅读次数:
231
Given a string S, we can transform every letter individually to be lowercase or uppercase to create another string. Return a list of all possible stri ...
分类:
其他好文 时间:
2018-02-21 21:39:43
阅读次数:
152
集合操作 集合是一个无序的,不重复的数据组合,它的主要作用如下: 去重,把一个列表变成集合,就自动去重了 关系测试,测试两组数据之前的交集、差集、并集等关系 去重,把一个列表变成集合,就自动去重了 关系测试,测试两组数据之前的交集、差集、并集等关系 文件操作 打开文件的模式有: r,只读模式(默认) ...
分类:
编程语言 时间:
2018-02-21 17:42:16
阅读次数:
154
补充材料:https://github.com/madscheme/introducing-python (上面的网址实际上是一个代码交流社区,英语水平足够的同学可以试着利用一下。) 第1章 Python初探 IDLE的启动 安装Python后,我们可以从“开始”菜单→“Python 3.4”→“I ...
分类:
编程语言 时间:
2018-02-21 10:52:30
阅读次数:
250
[抄题]: Given a digit string excluded 01, return all possible letter combinations that the number could represent. A mapping of digit to letters (just l ...
分类:
其他好文 时间:
2018-02-20 16:23:15
阅读次数:
142
There is a box protected by a password. The password is n digits, where each letter can be one of the first k digits 0, 1, ..., k-1. You can keep inpu ...
分类:
其他好文 时间:
2018-02-18 00:05:02
阅读次数:
190
题意:给你一个序列,问你最小变几次使字符串变成前面为大写,后面为小写的字符串。 思路:这是一个简单的选择字符串的每一位变还是不变(我个人还是认为之中dp有点偏向于暴力,主要在于dp方程的思考,对于dp的状态也很容易定义,就是长度和是否选择决定的dp的状态) 代码: ...
分类:
其他好文 时间:
2018-02-16 20:26:02
阅读次数:
215
Biopython1.序列赋值 转录(反转录) 翻译 反向互补2.读取序列文件,识别序列的属性信息。SeqRecord提供序列及其注释的容器属性:seq :一条生物序列id:基本ID,标识这条序列name:常用分子的名称description:序列分子的描述letter_annotation:是一个 ...
分类:
编程语言 时间:
2018-02-12 13:46:24
阅读次数:
807