1.对象序列化的介绍 (1).NET支持对象序列化的几种方式 二进制序列化:对象序列化之后是二进制形式的,通过BinaryFormatter类来实现的,这个类位于System.Runtime.Serialization.Formatters.Binary命名空间下。 SOAP序列化:对象序列化之后的 ...
Find the sum of all left leaves in a given binary tree. Example: 3 / \ 9 20 / \ 15 7 There are two left leaves in the binary tree, with values 9 and 1 ...
分类:
其他好文 时间:
2017-07-15 22:51:54
阅读次数:
217
本文出处:http://www.cnblogs.com/wy123/p/7182356.html (保留出处并非什么原创作品权利,本人拙作还远远达不到,仅仅是为了链接到原文,因为后续对可能存在的一些错误进行修正或补充,无他) 今天无意中发现了一个云栖社区举行的MySQL“第一季:挑战玄惭之 慢SQL ...
分类:
数据库 时间:
2017-07-15 19:55:16
阅读次数:
326
Given a binary tree, return the tilt of the whole tree. The tilt of a tree node is defined as the absolute difference between the sum of all left subt ...
分类:
其他好文 时间:
2017-07-15 18:58:46
阅读次数:
141
1.使用phpinfo()函数查看PHP的版本信息,这会决定扩展文件版本。 2.下载php_igbinary-2.0.1-7.0-ts-vc14-x64.zip,php_redis-3.1.3rc2-7.0-ts-vc14-x64.zip(一定要保证版本的正确性) 下载地址:【选择适合的版本】 ht ...
Given a binary search tree with non-negative values, find the minimum absolute difference between values of any two nodes. Example: Note: There are at ...
分类:
其他好文 时间:
2017-07-15 17:53:50
阅读次数:
101
Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area. 题意:求全由1组成的最大矩形面积。 思路:这题感觉是larges ...
分类:
其他好文 时间:
2017-07-15 16:50:02
阅读次数:
140
Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as 00000010100101000001111010011100), return... ...
分类:
其他好文 时间:
2017-07-15 12:39:43
阅读次数:
156
翻译 将下图中上面的二叉树转换为以下的形式。详细为每一个左孩子节点和右孩子节点互换位置。 原文 如上图 分析 每次关于树的题目出错都在于边界条件上……所以这次细致多想了一遍: void swapNode(TreeNode* tree) { if (tree == NULL || (tree->lef ...
分类:
其他好文 时间:
2017-07-15 10:14:11
阅读次数:
179
Given a target number, a non-negative integer k and an integer array A sorted in ascending order, find the k closest numbers to target in A, sorted in ...
分类:
其他好文 时间:
2017-07-15 10:12:50
阅读次数:
142