在进行类转json字符串时,报错JsonException: Max allowed object depth reached while trying to export from type System.Single。ok,实际上是类的属性中有json不能识别的数据类型.JsonData ...
分类:
Web程序 时间:
2015-08-27 18:11:51
阅读次数:
928
图的遍历两种典型的遍历的方法 深度优先搜索(Depth First Search ,DFS)广度优先搜索(Breadth First Search ,BFS)深度优先搜索深度优先搜索的伪码描述void DFS(Vertex V){ visited[V] = true; for (V的每个...
分类:
其他好文 时间:
2015-08-27 11:00:38
阅读次数:
590
1.inspect函数的基本用法util.inspect(object,[showHidden],[depth],[colors])是一个将任意对象转换为字符串的函数,通常用于调试和错误输出。它至少接受一个参数object,即要转换的对象,我们来学习它的简单用法。使用语法如下:var util = ...
分类:
Web程序 时间:
2015-08-25 23:25:48
阅读次数:
232
clc;
clear all;
close all;addpath('E:\PhotoShop Algortihm\Image Processing\PS Algorithm');I=imread('4.jpg');
I=double(I);
Image=I/255;
[height, width, depth]=size(Image);wavelength = 20;
amplitude = 10...
分类:
其他好文 时间:
2015-08-25 16:37:15
阅读次数:
248
作为一个非科班出身的程序员,还是很有必要刷刷题的。之前有个大牛说,菜鸟刷题可以从AC率高的刷起,这样可以快速培养信心。将LeetCode的题目按照AC率从高到低排序,第一道题目为 【Maximum Depth of Binary Tree】。 从题目就可以看出,是求二叉树的最大深度。深度的概念...
分类:
其他好文 时间:
2015-08-25 16:21:40
阅读次数:
80
8.1 自动实现的属性公开可见的静态成员通常应该是线程安全的,编译器在这方面帮不上什么忙,得自己去实现public class InstanceCountingPerson { public string Name { get; private set; } pu...
# JavaScript Module Pattern: In-Depth# 转载翻译文章:JavaScript Module Pattern: In-Depth*原文*:http://www.adequatelygood.com/JavaScript-Module-Pattern-In-Depth...
分类:
编程语言 时间:
2015-08-21 01:44:23
阅读次数:
217
The copy constructor is a special kind of constructor which creates a new object which is a copy of an existing one, and does it efficiently.
(拷贝构造函数是一种特别的构造函数,用于复制已经存在的对象到新生成的对象,这是一种高效的方式。)
Here bel...
分类:
编程语言 时间:
2015-08-20 09:11:51
阅读次数:
211
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 le...
分类:
其他好文 时间:
2015-08-19 13:14:00
阅读次数:
134
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...
分类:
其他好文 时间:
2015-08-18 16:12:00
阅读次数:
130