安装查看有没有安装过: yum list installed mysql* rpm -qa | grep mysql* 查看有没有安装包: yum list mysql* 安装mysql客户端: yum install mysql 安装mysql 服务器端: yum install mysql-server ...
分类:
数据库 时间:
2014-06-18 12:34:59
阅读次数:
284
题目
Given a linked list, swap every two adjacent nodes and return its head.
For example,
Given 1->2->3->4, you should return the list as 2->1->4->3.
Your algorithm should use only const...
分类:
其他好文 时间:
2014-06-18 11:53:39
阅读次数:
138
转自:http://www.cnblogs.com/xmaomao/p/3184542.html1. 简单的手动放置 键值对 到JSONObject,然后在put到JSONArray对象里List al = articleMng.find(f); System.out.prin...
分类:
Web程序 时间:
2014-06-18 10:48:53
阅读次数:
311
Javascript 字符串的连接方法有多种,但效率却有很大区别。1、逐个字符串相加vararr=['item 1','item 2','item 3', ...];var list='';for(vari=0,l=arr.length;i'+arr[i]+'';}list=''+list+'';这...
分类:
编程语言 时间:
2014-06-18 10:21:39
阅读次数:
180
列表是SharePoint核心的工艺品。服务器端对象模型是与列表交互的方法之一。你可以在服务器上创建不同类型的应用程序,与服务器对象模型交互。比如WinForm或WPF/Web parts,甚至是Event Receiver。...
分类:
其他好文 时间:
2014-06-17 22:57:51
阅读次数:
291
题目
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.
If the number of nodes is not a multiple of k then left-out nodes in the end should rem...
分类:
其他好文 时间:
2014-06-17 22:15:52
阅读次数:
299
List 中的元素类型必须一致
List 中的 List 可以是不同长度,但必须得是相同的类型
拼接操作符++
另:字符串 "AB" 只是 ['A', 'B'] 的语法糖,可以用list操作符来作用于字符串上
“:”运算符只能一次插入一个元素,否则报错
下标操作符 !! ,试了下二维的,也是可以的
比较...
分类:
其他好文 时间:
2014-06-17 21:51:32
阅读次数:
284
题目
Given a linked list, remove the nth node from the end of list and return its head.
For example,
Given linked list: 1->2->3->4->5, and n = 2.
After removing the second node from th...
分类:
其他好文 时间:
2014-06-17 21:38:12
阅读次数:
193
题目
Merge k sorted
linked lists and return it as one sorted list. Analyze and describe its complexity.
方法
使用归并排序的思想,两两合并,直到最终变成一个。
public ListNode mergeKLists(ArrayList lists) {...
分类:
其他好文 时间:
2014-06-17 21:34:41
阅读次数:
183
//获取当前的Activity名称package.classname privateStringgetTopActivity(Activitycontext){ ActivityManageram=(ActivityManager)getSystemService(Context.ACTIVITY_SERVICE); List<RunningTaskInfo>runningTasks=am.getRunningTasks(1); RunningTaskInforti=runn..
分类:
其他好文 时间:
2014-06-17 17:19:50
阅读次数:
245