Problem: Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the f ...
分类:
其他好文 时间:
2016-11-03 09:30:34
阅读次数:
171
题目本身:https://leetcode.com/problems/sliding-window-maximum/ Given an array nums, there is a sliding window of size k which is moving from the very left ...
步骤:H5代码 <html> <head> <meta charset="UTF-8"> <title>交互Demo</title> <meta content="initial-scale=1.0,user-scalable=no,maximum-scale=1,width=device-widt ...
分类:
Web程序 时间:
2016-11-02 17:37:55
阅读次数:
357
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 t ...
分类:
编程语言 时间:
2016-11-02 07:26:55
阅读次数:
221
This uses the FastMember's meta-programming API for maximum performance. If you want to restrict it to particular members (or enforce the order), then ...
分类:
其他好文 时间:
2016-11-02 00:28:43
阅读次数:
227
Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may comple ...
分类:
其他好文 时间:
2016-10-31 07:28:12
阅读次数:
178
Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may comple ...
分类:
其他好文 时间:
2016-10-31 07:27:50
阅读次数:
204
Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may comple ...
分类:
其他好文 时间:
2016-10-31 07:23:56
阅读次数:
142
Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest l ...
分类:
其他好文 时间:
2016-10-31 00:43:28
阅读次数:
212