【题目】
Given a string S and a string T, count the number of distinct subsequences of T in S.
A subsequence of a string is a new string which is formed from the original string by deleting some (can be none) of the characters without disturbing the relati...
分类:
其他好文 时间:
2014-06-29 07:27:17
阅读次数:
210
题目
Given a binary tree, determine if it is height-balanced.
For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of every node...
分类:
其他好文 时间:
2014-06-20 09:02:56
阅读次数:
232
Let d(n) be defined as the sum of proper divisors of n (numbers less than
n which divide evenly into n).
If d(a) = b and d(b) = a, where a
b, then a and b are an amicable pair and each of a and
b...
分类:
其他好文 时间:
2014-06-07 13:40:53
阅读次数:
226
题目链接Implement next permutation, which rearranges
numbers into the lexicographically next greater permutation of numbers.If such
arrangement is not pos...
分类:
其他好文 时间:
2014-06-07 11:10:30
阅读次数:
212
原题地址:https://oj.leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/题意:Say
you have an array for which theithelement is the price of a given stoc...
分类:
编程语言 时间:
2014-06-06 20:04:46
阅读次数:
400
The famous Korean internet company nhn has provided
an internet-based photo service which allows The famous Korean internet company
users to directly ...
分类:
其他好文 时间:
2014-06-06 17:20:53
阅读次数:
256
这篇文章可能比较适合那些在经常在Mac下进行Java编程开发,或者经常使用Java工具的朋友。不关心Java或者不了解Java的朋友可以绕过本文哈~1.
Mac下当你在【终端】输入java -version时,是执行的哪里的java呢,which java命令可以看到,就是【/usr/bin/jav...
分类:
编程语言 时间:
2014-06-06 14:46:16
阅读次数:
242
Lesson 1Pumas are large, cat-like animals which
are found in America. When reports came into London Zoo that a wild puma had
been spotted forty-five m...
分类:
其他好文 时间:
2014-06-06 14:08:51
阅读次数:
210
Tutorial The Kithara ?RealTime Suite? (KRTS) is
a real-time extension for Windows, which currently contains more than 20
different functional modules....
分类:
其他好文 时间:
2014-06-06 10:38:26
阅读次数:
748
The first three generations of the Unreal
Engine included a sandboxed scripting language, UnrealScript, which provided a
simple interface for gameplay...
分类:
编程语言 时间:
2014-06-06 06:44:59
阅读次数:
421