Given a sorted linked list, delete all
duplicates such that each element appear onlyonce.For
example,Given1->1->2, return1->2.Given1->1->2->3->3,
retu...
分类:
其他好文 时间:
2014-07-22 23:12:13
阅读次数:
426
前言Flattening-复杂到简单Projection-简单到复杂Configuration
Validation-配置验证Lists and Array-集合和数组Nested mappings-嵌套映射后记
上一篇《【道德经】漫谈实体、对象、DTO及AutoMapper的使用》,因为内容写的....
分类:
移动开发 时间:
2014-07-22 23:06:12
阅读次数:
724
最近把android下的Lua换成了Luajit,并且使用了bytecode,后来发现某些品牌的手机崩溃的比较多,于是怀疑是不是luajit的问题,所以就对Luajit的bytecode模式做了点调研,我们先来看一下-b参数的说明
-b[options] input output
This option saves or lists bytecode. The followin...
分类:
其他好文 时间:
2014-07-22 23:05:16
阅读次数:
676
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a link...
分类:
其他好文 时间:
2014-05-01 22:08:19
阅读次数:
366
方法1(快速,以理解,可以封装):SPList spListQuestion =
spWeb.Lists["Question List"];for (int i = spListQuestion.Items.Count - 1; i
>= 0; i--){ spListQuestion.Ite...
分类:
其他好文 时间:
2014-05-01 21:01:37
阅读次数:
448
You are given two linked lists representing two
non-negative numbers. The digits are stored in reverse order and each of their
nodes contain a single ...
分类:
其他好文 时间:
2014-05-01 20:18:54
阅读次数:
425
方法1:Guid guid = new Guid
("{8238B046-EC5F-46B6-8E18-028F77EC2620}");SPSite Asite = new SPSite
("http://mosslt/");SPList list = Asite.RootWeb.Lists[gui...
分类:
其他好文 时间:
2014-05-01 18:38:35
阅读次数:
290
whether two nohead-linkedlist have the same end
个人信息:就读于燕大本科软件工程专业 目前大三;
本人博客:google搜索“cqs_2012”即可;
个人爱好:酷爱数据结构和算法,希望将来从事算法工作为人民作出自己的贡献;
博客内容:在无头节点的链表里删除元素;
博客时间:2014-4-15;
编程语言:C+...
分类:
其他好文 时间:
2014-05-01 18:13:31
阅读次数:
352
题目:
Given a sorted (increasing order) array, write an algorithm to create a binary tree with minimal height.
翻译:
给定一个有序数组(递增),写程序构建一棵具有最小高度的二叉树。
思路:
要使二叉树的高度最小,则要尽量使其左右子树的节点数目相当,自然就考虑到将其构造成为二叉排序树,且将有序数组的中间大的数作为根节点,这样得到的二叉树的高度便是最小的。...
分类:
其他好文 时间:
2014-05-01 17:48:45
阅读次数:
321
Merge k Sorted Lists
Total Accepted: 9746 Total
Submissions: 41674My Submissions
Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity....
分类:
其他好文 时间:
2014-05-01 17:11:32
阅读次数:
234