【题目】 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 farth ...
分类:
其他好文 时间:
2018-10-26 10:36:02
阅读次数:
140
Subsequence Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 22040 Accepted: 9404 Description A sequence of N positive integers (10 < N < 10 ...
分类:
其他好文 时间:
2018-10-25 14:09:24
阅读次数:
224
Problem Description Network flow is a well-known difficult problem for ACMers. Given a graph, your task is to find out the maximum flow for the weight ...
分类:
其他好文 时间:
2018-10-24 22:25:53
阅读次数:
240
Given an unsorted array of integers, find the length of longest increasing subsequence. Example: Input: [10,9,2,5,3,7,101,18] Output: 4 Explanation: T ...
分类:
其他好文 时间:
2018-10-24 10:52:51
阅读次数:
111
We define a harmonious array is an array where the difference between its maximum value and its minimum value is exactly 1. Now, given an integer arra ...
分类:
其他好文 时间:
2018-10-23 10:58:59
阅读次数:
157
最近有测试问我Jumbo和MTU分别限制的是什么把我问住了,网上查了一些资料,发现大部分是百科上copy下来的,都没有说到点子上,关键时刻还是同事靠谱,现在根据自己的理解整理一下。 首先了解一下二者的基本概念。 MTU 最大传输单元(Maximum Transmission Unit,MTU)是指一 ...
分类:
其他好文 时间:
2018-10-22 22:23:56
阅读次数:
1254
1、概述 log4net是.Net下一个非常优秀的开源日志记录组件。log4net记录日志的功能非常强大。它可以将日志分不同的等级,以不同的格式,输出到不同的媒介。本文主要是介绍如何在Visual Studio2008中使用log4net快速创建系统日志,如何扩展以输出自定义字段。 2、一个简单的使 ...
分类:
Web程序 时间:
2018-10-22 16:47:46
阅读次数:
186
We are to write the letters of a given string S, from left to right into lines. Each line has maximum width 100 units, and if writing a letter would c ...
分类:
其他好文 时间:
2018-10-22 14:53:15
阅读次数:
137
Photo by Phil Whitehouse Photo by Phil Whitehouse Your boss has hired you to drive a big truck, transporting items between two locations in a city. Yo ...
分类:
其他好文 时间:
2018-10-21 14:21:44
阅读次数:
179
1、添加命令 1.u-boot的命令格式: U_BOOT_CMD(name,maxargs,repeatable,command,”usage”,"help") name:命令的名字,不是一个字符串; maxargs:最大的参数个数; repeatable:命令是可重复的; command:对应的函 ...
分类:
其他好文 时间:
2018-10-21 10:53:30
阅读次数:
204