1、
??
Convert Sorted List to Binary Search Tree
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.
分析:将一个升序排列的链表转换为平衡二叉搜索树,采用递归的方式,先找到链表...
分类:
其他好文 时间:
2014-05-22 12:33:30
阅读次数:
270
Remove Nth Node From End of List删除链表倒数的第N个元素...
分类:
其他好文 时间:
2014-05-22 11:15:52
阅读次数:
170
定义
我们经常会听到,xx项目中用到了Web Service。那么,什么是Web Service呢?
首先让我们来了解一下Web Service。Web Service技术,就是能使得运行在不同机器上的不同应用无须借助附加的、专门的第三方软件或硬件, 就可相互交换数据或集成。依据Web Service规范实施的应用之间,无论它们所使用的语言、平台或内部协议是什么,都可以相互交换...
分类:
Web程序 时间:
2014-05-22 09:39:14
阅读次数:
409
3.1、Service服务
Service类似Activity,实际上就是一个没有界面的Activity,而且默认不会随着程序关闭而关闭。
开发人员自定义的服务类一般用来完成一些安全软件的一些监听功能,以及消息提示,流氓软件的功能。
系统服务则是通过类似getSystemService()的方法来取得系统的一些服务管理类(XxxxManager),来调用系统处理好的功能完成自己需要的操作,...
分类:
移动开发 时间:
2014-05-22 09:33:54
阅读次数:
311
android 3.0+以上 已经不建议在activity中添加耗时操作,要界面和数据脱离。4.0以上的通信都必须放到线程里去做,不能在UI线程。解决办法是另起线程,如果一定要想在UI线程操作...
分类:
移动开发 时间:
2014-05-22 08:53:22
阅读次数:
351
23.List接口实现类:
List接口继承了Collection接口,它是一个允许存在重复项的有序集
合。
1>实现类ArrayList:
ArrayList类支持可随需要而增长的动态数组。数组列表以一个原大小被创建,当超过了它的大小,
类集自动增大,当对象被删除后,数组就可以缩小。
优点:ArrayList类对于使用索引取出元素用较高的效率,他可以用索引快速定位...
分类:
编程语言 时间:
2014-05-20 16:11:41
阅读次数:
425
iptables惹的祸
[root@localhost ~]# service iptables stop
iptables: Flushing firewall rules: [ OK ]
iptables: Setting chains to policy ACCEPT: filter [ OK ]
iptables: Unloading modules: [ OK ...
分类:
其他好文 时间:
2014-05-20 15:10:34
阅读次数:
249
关键字:微信公众平台开发
多客服作者:方倍工作室原文:http://www.cnblogs.com/txw1958/p/weixin-transfer-customer-service.html在这篇微信公众平台开发教程中,我们将介绍如何使用开发模式实现多客服系统。本文分为以下三个部分:回复多客服消...
分类:
微信 时间:
2014-05-20 10:36:49
阅读次数:
628
戳我去解题Merge two sorted linked lists and return it as
a new list. The new list should be made by splicing together the nodes of the
first two lists.分析:直...
分类:
其他好文 时间:
2014-05-20 08:52:09
阅读次数:
277
戳我去解题Given a linked list, remove thenthnode from
the end of list and return its head.For example, Given linked list:
1->2->3->4->5, and n = 2. Aft...
分类:
其他好文 时间:
2014-05-20 08:04:28
阅读次数:
291