精妙的例子 Child <- many-to-one ->Parent class Child { private Parent parent; public Parent getParent (){ return this.parent;//访问了实例变量 } } class Parent { p ...
分类:
Web程序 时间:
2016-09-04 19:09:26
阅读次数:
148
精妙的例子 Child <- many-to-one ->Parent class Child { private Parent parent; public Parent getParent (){ return this.parent;//访问了实例变量 } } class Parent { p ...
分类:
Web程序 时间:
2016-09-04 17:40:24
阅读次数:
142
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space fo ...
分类:
其他好文 时间:
2016-09-04 15:48:56
阅读次数:
129
网上找到个描述的很精妙的例子 Child <- many-to-one ->Parent class Child { private Parent parent; public Parent getParent (){ return this.parent;//访问了实例变量 } } class P ...
分类:
Web程序 时间:
2016-09-04 15:45:43
阅读次数:
294
Given a column title as appear in an Excel sheet, return its corresponding column number. For example: 思路: 相当于26进制转10进制,要注意A从1开始而不是从0开始的边界条件。 解法: ...
分类:
其他好文 时间:
2016-09-04 15:42:27
阅读次数:
132
Given a positive integer, return its corresponding column title as appear in an Excel sheet. For example: 很惭愧,这一题我没折腾出来。刚刚做了她的姐妹题,是把字母转化成数字,但是反过来就很难搞了 ...
分类:
其他好文 时间:
2016-09-04 14:25:49
阅读次数:
119
标签: 动态规划 描述: Given a sequence of integers, find the longest increasing subsequence (LIS). You code should return the length of the LIS. Clarification ...
分类:
其他好文 时间:
2016-09-04 12:53:56
阅读次数:
182
题目: Given a sorted linked list, delete all duplicates such that each element appear only once. For example,Given 1->1->2, return 1->2.Given 1->1->2->3 ...
分类:
其他好文 时间:
2016-09-04 11:32:50
阅读次数:
88
标签:动态规划 题目描述: Given two strings, find the longest common subsequence (LCS). Your code should return the length of LCS. 解题思路: 这一题是非常经典的动态规划问题,在解题思路上可以按 ...
分类:
其他好文 时间:
2016-09-04 07:56:22
阅读次数:
157
capitalize() 把字符串的第一个字符改为大写 casefold() 把整个字符串的所有字符改为小写 center(width) 将字符串居中,并使用空格填充至长度 width 的新字符串 count(sub[, start[, end]]) return sub 在字符串里边出现的次数,s ...
分类:
编程语言 时间:
2016-09-04 06:51:57
阅读次数:
219