using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace ConsoleApplication11{ clas...
分类:
其他好文 时间:
2016-01-15 23:11:27
阅读次数:
210
Linked List Cycle: Given a linked list, determine if it has a cycle in it. Follow up: Can you solve it without using extra space? 题意:判断一个链表中是否存在环。 思路:...
分类:
其他好文 时间:
2016-01-15 23:10:41
阅读次数:
171
Implement the following operations of a stack using queues.push(x) -- Push element x onto stack.pop() -- Removes the element on top of the stack.top()...
分类:
其他好文 时间:
2016-01-15 23:02:00
阅读次数:
241
Insertion Sort List:Sort a linked list using insertion sort. 题意:使用插入排序的方式对链表进行排序。 思路:根据插入排序的思路,进行插入操作。 代码: public ListNode insertionSortList(ListNode ...
分类:
其他好文 时间:
2016-01-15 23:01:21
阅读次数:
134
根据程序集的信息,动态的创建类并执行方法using System;using System.IO;using System.Reflection;using System.Runtime.Serialization.Formatters.Binary;namespace ConsoleAppli.....
最大堆:make_heap(vi.begin(),vi.end())#include #include #include using namespace std;int main(){ int ia[9] = {0, 1, 2, 3, 4, 8, 9, 3, 5}; make_heap(...
分类:
其他好文 时间:
2016-01-15 22:39:21
阅读次数:
182
浅拷贝对引用类型只拷贝地址,拷贝前后共享一块内存区域。深拷贝就是所有的东西全部重新有一份,没有共享存在,推荐使用序列化深拷贝。using System;using System.IO;using System.Runtime.Serialization.Formatters.Binary;nam.....
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Web; 5 using System.Web.UI; 6 using System.Data; 7 usi...
分类:
数据库 时间:
2016-01-15 16:18:30
阅读次数:
281
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Web; 5 using System.Data.SqlClient; 6 using System.Data...
分类:
数据库 时间:
2016-01-15 15:50:45
阅读次数:
245
下面是一个可以判断xml 节点是否存在的函数,如下,仅供参考:Function xmlElementNodeIsExist(ByVal xmlpath As String, ByVal strElementNodeName As String) As Boolean Using reader As ...
分类:
其他好文 时间:
2016-01-15 14:35:23
阅读次数:
182