Given a string s, find the longest palindromic subsequence's length in s. You may assume that the maximum length of s is 1000. 判断字符串中最长的回文子串,子串不一定要连续。 ...
分类:
其他好文 时间:
2018-04-06 16:02:40
阅读次数:
193
call_user_func — 把第一个参数作为回调函数调用 说明 第一个参数 callback 是被调用的回调函数,其余参数是回调函数的参数。 参数 callback 将被调用的回调函数(callable)。 parameter 0个或以上的参数,被传入回调函数。 Note: 请注意,传入cal ...
分类:
其他好文 时间:
2018-04-06 15:34:45
阅读次数:
155
作业要求 (1). 首先在同学中找一个同伴,范围不限,可以在1~5班中随意组合,建议尽量不要找同组的成员,女同学尽量找男同学结对,但是不做强制要求; (2). 从以往个人完成的项目中选择一个作品,例如:以往的数据结构课程设计或者其它具有比较完整功能的小系统,代码至少要大于100行; (3). 将代码 ...
分类:
其他好文 时间:
2018-04-06 15:19:37
阅读次数:
137
1、android的界面使用组合模式实现。 2、View绘制主要包括三个步骤: 3、测量: 1)测量的最终目的是依据View的相关属性、View与父容器的关系、父容器的相关属性,计算View的高度和宽度。 2)我们可以重写onMeasure方法来编码自己的View测量代码——计算出View的高度和宽 ...
分类:
移动开发 时间:
2018-04-06 14:00:15
阅读次数:
184
#! /usr/bin/env python# -*- coding:utf-8 -*-import re# 正则表达式:re模块# 1.普通字符:大多数字符和字母都会跟自身匹配# re.fiandall() 返回一个列表#2.元字符:# . 通配符 一个只能匹配一个结果# ^ 以xx开头的匹配# ...
分类:
编程语言 时间:
2018-04-06 13:58:51
阅读次数:
139
1004. Counting Leaves (30) A family hierarchy is usually presented by a pedigree tree. Your job is to count those family members who have no child. In ...
分类:
其他好文 时间:
2018-04-06 11:03:25
阅读次数:
164
题目: You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can yo ...
分类:
其他好文 时间:
2018-04-06 10:59:10
阅读次数:
139
转载请注明:http://www.cnblogs.com/igoslly/p/8726771.html 来看一下题目: Given a string s, find the longest palindromic substring in s. You may assume that the max ...
分类:
其他好文 时间:
2018-04-06 10:57:44
阅读次数:
209
1066. Root of AVL Tree (25) An AVL tree is a self balancing binary search tree. In an AVL tree, the heights of the two child subtrees of any node diff ...
分类:
其他好文 时间:
2018-04-06 10:52:02
阅读次数:
164
Fibonacci-ish Yash has recently learnt about the Fibonacci sequence and is very excited about it. He calls a sequence Fibonacci-ish if You are given s ...
分类:
其他好文 时间:
2018-04-05 23:15:06
阅读次数:
292