摘要: One is an array of arrays, and one is a 2d array. The former can be jagged, the latter is uniform. That is, a double[][] can validly be: Because each 阅读全文
posted @ 2017-01-12 23:58 liaohua 阅读(211) 评论(0) 推荐(0) 编辑
摘要: LookupText: 23,879.41 (20.8X faster)Sentence: 1.15 (23.9X faster)/// /// Hex string lookup table./// private static readonly string[] HexStringTable =... 阅读全文
posted @ 2015-09-28 00:20 liaohua 阅读(694) 评论(0) 推荐(0) 编辑
摘要: Comparer.Default PropertyComparer.Defaultdoesn't use yourFooComparerclass. It simply returns an instance of the internal classGenericComparer.This cla... 阅读全文
posted @ 2015-09-03 23:59 liaohua 阅读(284) 评论(0) 推荐(0) 编辑
摘要: The SolutionA major hint is in the fact we are given a dictionary. Because we are given this dictionary we can prep it in any way we like when the pro... 阅读全文
posted @ 2015-09-01 00:02 liaohua 阅读(230) 评论(0) 推荐(0) 编辑
摘要: Currying allows you to easily create custom functions by partially invoking an existing function. Here’s a simple example:var add = function(a,b) { ... 阅读全文
posted @ 2015-08-24 00:28 liaohua 阅读(212) 评论(0) 推荐(0) 编辑
摘要: Summaryprivate variablesare declared with the 'var' keyword inside the object, and can only be accessed by private functions and privileged methods.pr... 阅读全文
posted @ 2015-07-24 00:02 liaohua 阅读(190) 评论(0) 推荐(0) 编辑
摘要: Problem StatementGiven a large array of non-negative integer numbers, write a function which determines whether or not there is a number that appears ... 阅读全文
posted @ 2015-07-14 23:53 liaohua 阅读(208) 评论(0) 推荐(0) 编辑
摘要: SummaryYou cause a class to inherit usingChildClassName.prototype=newParentClass();.You need to remember to reset theconstructorproperty for the class... 阅读全文
posted @ 2015-07-06 00:30 liaohua 阅读(210) 评论(0) 推荐(0) 编辑
摘要: LINQ provides several aggregation extension methods: Aggregate, Average, Count, LongCount, Max, Min and Sum.The aggregation methods alltake a list of ... 阅读全文
posted @ 2015-06-14 21:16 liaohua 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 函数格式CREATE FUNCTION-- =============================================-- Author: Clive Chinery-- Create date: 08Nov2008-- Description: Trim l... 阅读全文
posted @ 2014-09-22 22:47 liaohua 阅读(269) 评论(0) 推荐(0) 编辑