using System;using System.Collections.Generic;using
System.ComponentModel;using System.Data;using System.Drawing;using
System.IO;using System.Linq;usi...
分类:
其他好文 时间:
2014-05-05 23:22:07
阅读次数:
290
承接上篇博文【LINQ获取树形分类的层数】。在上文中,笔者只分享了层数,在这里我把完整的实现贴出来,欢迎批评指正。先附上效果图:首先是Tree公共类publicclassTree
{publicintModuleID {get;set; }publicintParentID {get;set; }p...
分类:
其他好文 时间:
2014-05-05 23:06:02
阅读次数:
433
首先这种情况出现在应用程序启动前的方法里面。本想通过发射来实现一些功能。谁知道被这个坑了。碰到这种问题。已经相当无语了。同时也不知道该如何解决。望有能之士帮忙解答using
System;using System.IO;using System.Linq;using System.Reflectio...
分类:
Web程序 时间:
2014-05-04 20:24:23
阅读次数:
433
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
us...
分类:
其他好文 时间:
2014-05-04 09:30:21
阅读次数:
360
最近在学scala语言,scala代码如下:
import scala.collection.JavaConversions._
object Solution {
def solution(A: Array[Int]): Int = {
// write your code in Scala 2.10
// using quick sort to so...
分类:
其他好文 时间:
2014-05-04 09:22:37
阅读次数:
341
Vitaly has an array of n distinct integers. Vitaly wants to divide this array into three non-empty sets
so as the following conditions hold:
The product of all numbers in the first set is less ...
分类:
其他好文 时间:
2014-05-03 23:51:19
阅读次数:
621
using System.Collections.Generic;using
System.Collections.Specialized;using System.Linq;using System.Web;using
System.Text;using System.Web.Mvc;using ...
分类:
Web程序 时间:
2014-05-03 23:02:35
阅读次数:
492
题目:
Given a string S and a string T, count the number of distinct subsequences of T in S.
A subsequence of a string is a new string which is formed from the original string by deleting some (c...
分类:
其他好文 时间:
2014-05-03 21:48:19
阅读次数:
252
1、能用DISTINCT的就不用GROUP BY
SELECT OrderID FROM Details WHERE UnitPrice > 10 GROUP BY OrderID
可改为: SELECT DISTINCT OrderID FROM Details WHERE UnitPrice > 10
2.能用UNION ALL就不要用UNION
UNION A...
分类:
数据库 时间:
2014-05-03 21:31:24
阅读次数:
342
Given a set of distinct integers, S, return all possible subsets.
Note:
Elements in a subset must be in non-descending order.The solution set must not contain duplicate subsets.
For exa...
分类:
其他好文 时间:
2014-05-03 15:47:53
阅读次数:
289