码迷,mamicode.com
首页 >  
搜索关键字:linq sum    ( 28189个结果
多线程
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u...
分类:编程语言   时间:2014-05-29 04:01:44    阅读次数:276
ASP.NET文件操作通用类
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 using System.IO; 7 using System.Web; 8 usi...
分类:Web程序   时间:2014-05-29 01:07:43    阅读次数:392
Linq- ExcuteQuery用法
DataContext.ExecuteQuery方法 (String,Object[])语法:public IEnumerable ExecuteQuery( string query, params Object[] parameters)类型参数:TResult:返回的集合中的元素的...
分类:其他好文   时间:2014-05-28 08:57:51    阅读次数:226
[leetcode]Minimum Path Sum @ Python
原题地址:https://oj.leetcode.com/problems/minimum-path-sum/题意:Given amxngrid filled with non-negative numbers, find a path from top left to bottom right w...
分类:编程语言   时间:2014-05-28 03:03:13    阅读次数:320
Linq递归生成easyui-tree
我把整个类放这里大加参考:public class ClassOrganization { static List org; public List GetOrgTree(string _pid) { List porg = new List(); porg = org.Where(g => g.a...
分类:其他好文   时间:2014-05-27 17:05:33    阅读次数:298
LeetCode: Two Sum 题解
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu...
分类:其他好文   时间:2014-05-26 19:50:39    阅读次数:314
一些简单的帮助类(2)-- JavaSctipt Array Linq
在日程工作中经常会遇到这样的问题 一个JS数组 我们要找出其中 一些符合要求的类容又或者对数组里的类容求和求平均数之类的一般的做法是循环里面的类容做判断添加到一个新的集合里 var array = []; array.push(1); array.push(2); array.push(3)...
分类:编程语言   时间:2014-05-26 19:15:53    阅读次数:332
千呼万唤岂出来,写款软件不容易——Visual Entity 2.0 发布
在各位用户不继的催更中,终于完成了这次更新。Visual Entity这个软件发布于 2011年,这个软件完成后,便上班去了,也没有做什么推广工作。所以知道的用户并不多,尽管它是个非常好用、并且免费的软件。它是一个支持 NHibernate 和 Linq to SQL 的实体设计器,关于它的介绍,大...
分类:其他好文   时间:2014-05-26 18:45:19    阅读次数:292
[leetcode]Path Sum @ Python
原题地址:https://oj.leetcode.com/problems/path-sum/题意:Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all...
分类:编程语言   时间:2014-05-26 18:37:11    阅读次数:295
最大子序列和问题
算法1 用两个for循环定位子序列的上下界,然后再用最内部的一个for循环求出上下界之间的元素和。 时间复杂度:O(N³)。 代码: int MaxSub(int *a, int n) { int sum = 0; int tmp; for (int i = 0; i < n; i++) { for (int j = i; j <...
分类:其他好文   时间:2014-05-25 21:28:44    阅读次数:243
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!