码迷,mamicode.com
首页 >  
搜索关键字:style    ( 244891个结果
Remove Duplicates from Sorted List II leetcode java
题目:Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list.For example,Given 1....
分类:编程语言   时间:2014-07-23 12:01:46    阅读次数:312
Merge Two Sorted Lists leetcode java
题目: 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-07-23 12:01:36    阅读次数:257
Remove Duplicates from Sorted List leetcode java
题目:Given a sorted linked list, delete all duplicates such that each element appear only once.For example,Given 1->1->2, return 1->2.Given 1->1->2->3-....
分类:编程语言   时间:2014-07-23 12:01:16    阅读次数:239
Swap Nodes in Pairs leetcode java
题目: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.http....
分类:编程语言   时间:2014-07-23 12:01:06    阅读次数:330
主从复制延时判断
在生产环境中,主从复制常常会有复制延迟的现象,主要是master是并发的写,而slave是单线程的应用relay log,所以会出现复制延时,在MySQL 5.6版本中有了基于库的多线程复制。还有MariaDB的并行复制。但是我们使用MySQL 5.5的版本也比较多。如何判断复制是否延时呢?工具现在...
分类:其他好文   时间:2014-07-23 12:00:56    阅读次数:392
LeetCode "Construct Binary Tree from Preorder and Inorder Traversal"
A collegiate textbook problem. Nothing special, but just take care of your memory use.class Solution {public: TreeNode *_buildTree(int pre[], int &...
分类:其他好文   时间:2014-07-23 12:00:46    阅读次数:248
Vmware 安装 ArchLinux
内存太小,想在window里跑跑虚拟机别的就不用干了,正好硬盘里还有个ArchLinux的iso,装着试试能不能跑流畅。 搜了官网的guide,感觉不是很条理,主要参考的是这位仁兄的文章。 首先,用Vmware加载iso,自动会进入命令行安装。 第一步要做的是分区:cfdisk /dev/...
分类:系统相关   时间:2014-07-23 12:00:36    阅读次数:377
[SCOI2007] 修车
属于我的费用流版本终于诞生了!想来还有点小激动呢…看了下模板,之后完全按照自己的想象来写,这样在考场上也不怕啦~某人说其实费用流就是把Dinic里的BFS换成SPFA,似乎还是比较有道理的,就是addflow要做一些修改,我第一次的错误就是addflow里的循环写成了while pre[x]st d...
分类:其他好文   时间:2014-07-23 12:00:17    阅读次数:297
java 代码判断图片格式后缀名称
/** * 图片判断 */private static String getFormatName(Object o) { try { // Create an image input stream on the image ImageInputS...
分类:编程语言   时间:2014-07-23 12:00:06    阅读次数:306
android 下Protobuff框架性能测试结果
android 下Protobuff常用的框架有三个: protobuff自身, square出的wire , protostuff由于protobuff会为每个属性生成大量不常用的方法,当程序比较复杂时容易超过android的60K个方法的上限, 所以本次测试未包括protobuff测试逻辑是循环...
分类:移动开发   时间:2014-07-23 11:59:56    阅读次数:414
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!