C# 1 /** 2 * Definition for singly-linked list. 3 * public class ListNode { 4 * public int val; 5 * public ListNode next; 6 * public ...
分类:
其他好文 时间:
2015-06-03 15:13:13
阅读次数:
77
6.脚本定时任务# Example of job definition:
# .------------------------- minute (0 - 59)
# | .--------------------- hour (0 - 23)
# | | .----------------- day of month (1 - 31)
# | | | .-...
分类:
系统相关 时间:
2015-06-03 11:48:40
阅读次数:
201
Given a linked list, determine if it has a cycle in it.
Follow up:
Can you solve it without using extra space?
基本思路:
快慢两指针。
一个指针每次移动一步,另一个指针每次移动两步。如存在环,必有相遇的时候。
/**
* Definition for singly-li...
分类:
其他好文 时间:
2015-06-02 17:57:11
阅读次数:
89
今天在部署公司开发框架的时候,登录系统之后调用代办列表的时候就报错了总线调用契约XX.Service.Contracts.IXXService上的GetXXCount方法时出错。 Resolutionofthedependencyfailed,type="XX.Business.Definition...
分类:
其他好文 时间:
2015-06-01 18:37:27
阅读次数:
109
thrift 采用IDL(Interface
Definition Language)来定义通用的服务接口,并通过生成不同的语言代理实现来达到跨语言、平台的功能。在thrift的IDL中可以定义以下一些类型:基本数据类型,结构体,容器,异常、服务
1基本类型
bool: 布尔值 (true or false), one bytebyte: 有符号字节i16: 16位有符号整型i32...
分类:
其他好文 时间:
2015-06-01 13:20:11
阅读次数:
210
利用两个栈,然后分别存储每一个链表。继而,相继pop相同的节点。有些细节需要注意,请看最后的返回值是如何处理的。/** * Definition for singly-linked list. * struct ListNode { * int val; * struct ListN...
分类:
其他好文 时间:
2015-06-01 00:43:34
阅读次数:
185
1.SQL全名是:结构化查询语言(Structured Query Language),是关系数据库管理系统的标准语言。2.SQL分为:DDL,DML,DCL,DQL 2.1 DDL(Data Definition Language):数据定义语言,建表,建库等,如:CREATE, ALTER, ....
分类:
数据库 时间:
2015-05-31 13:51:14
阅读次数:
209
Insertion Sort List
Sort a
linked list using insertion sort.
解题思路:
类似于插入排序法。与数组的插入排序法不同的是,链表的插入排序扫描顺序是从左往右扫描,找到第一个大于指定元素的节点N,然后将之插在N节点前面。
今天状态非常不好,这个题目都NG了好几遍。。。
/**
* Definition for singly-li...
分类:
其他好文 时间:
2015-05-28 18:05:32
阅读次数:
130
Definition[edit]Lambda expressions are composed ofvariables v1, v2, ..., vn, ...the abstraction symbols lambda 'λ' and dot '.'parentheses ( )The set o...
分类:
其他好文 时间:
2015-05-28 15:59:46
阅读次数:
149
BracketsTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 3871Accepted: 2028DescriptionWe give the following inductive definition of a “regular...
分类:
其他好文 时间:
2015-05-28 09:22:56
阅读次数:
105