首页 > 其他
LeetCode题解 || Add Two Numbers 问题
problem: You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it...
分类:其他   时间:2015-01-13 17:43:14    收藏:0  评论:0  赞:0  阅读:172
Hadoop-2.4.1学习之InputFormat及源代码分析
本篇文章讲述了InputFormat及其子类,并结合源代码详细分析了FileInputFormat如何读取InputSplit及处理行跨越两个InputSplit的问题...
分类:其他   时间:2015-01-13 17:43:04    收藏:0  评论:0  赞:0  阅读:271
UIView动画
一、基础动画: (1)、Block方式: [UIView animateWithDuration:3.0 delay:0 options:UIViewAnimationOptionCurveLinear animations:^{ _imgView.center=location; } completion:^(BOOL finished) { ...
分类:其他   时间:2015-01-13 17:42:55    收藏:0  评论:0  赞:0  阅读:225
LeetCode--Subsets II
Given a collection of integers that might contain duplicates, S, return all possible subsets. Note: Elements in a subset must be in non-descending order.The solution set must not contain dupli...
分类:其他   时间:2015-01-13 17:42:55    收藏:0  评论:0  赞:0  阅读:279
SharePoint Workflow Trouble Shooting(一)Task被锁住或者卡住
本文介绍SharePoint Workflow Trouble shooting。 在workflow开发过程中,经常遇到Task卡主或者锁住,到底是什么原因呢?...
分类:其他   时间:2015-01-13 17:42:35    收藏:0  评论:0  赞:0  阅读:374
Sort List
Sort a linked list in O(n log n) time using constant space complexity. #include #include typedef struct ListNode{ int val; struct ListNode *next; }ListNode; ListNode *mergesort(ListNode *...
分类:其他   时间:2015-01-13 17:41:32    收藏:0  评论:0  赞:0  阅读:246
[ACM] HDU 4883 TIANKENG’s restaurant
TIANKENG’s restaurant Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 131072/65536 K (Java/Others) Total Submission(s): 931    Accepted Submission(s): 412 Problem Description   TIAN...
分类:其他   时间:2015-01-13 17:41:14    收藏:0  评论:0  赞:0  阅读:240
[ACM] HDU 4884 TIANKENG’s rice shop (模拟)
TIANKENG’s rice shop Problem Description   TIANKENG managers a pan fried rice shop. There are n kinds of fried rice numbered 1-n. TIANKENG will spend t time for once frying. Because the pan i...
分类:其他   时间:2015-01-13 17:39:54    收藏:0  评论:0  赞:0  阅读:339
[Leetcode] 4 - Median of Two Sorted Arrays
原题链接:https://oj.leetcode.com/problems/median-of-two-sorted-arrays/ 这是一道比较搞脑子的一道题,细节较多。 1. 这里用到的是findKth的思想,就是如果一共有奇数个元素,假设一共有t个元素,则中间元素为第t / 2 + 1个最大的,如果是偶数,则是t / 2位置和t / 2 + 1位置的平均数。 2. 关于find...
分类:其他   时间:2015-01-13 17:39:44    收藏:0  评论:0  赞:0  阅读:248
scala入门-09 scala高阶函数
scala入门-09 scala高阶函数 scala入门-09 scala高阶函数 scala入门-09 scala高阶函数 scala入门-09 scala高阶函数...
分类:其他   时间:2015-01-13 17:39:34    收藏:0  评论:0  赞:0  阅读:265
hdu 2051 Switch Game(模拟/数论)
题目意思: http://acm.hdu.edu.cn/showproblem.php?pid=2053 给你n个灯,刚开始全灭,问经过无穷多次操作后,求第n个灯的状态。 题目分析: 见代码注释。 AC代码: /** *@xiaoran *应该是数论问题,先模拟看看(过了),现在来看这道题 *题意:给你n个灯,刚开始全灭,问经过无穷多次操作后,第n个灯状...
分类:其他   时间:2015-01-13 17:39:14    收藏:0  评论:0  赞:0  阅读:248
Excel Sheet Column Title
Given a positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -> A 2 -> B 3 -> C ... 26 ->...
分类:其他   时间:2015-01-13 17:38:04    收藏:0  评论:0  赞:0  阅读:292
./configure,make,make install的作用
./configure,make,make install的作用这些都是典型的使用GNU的AUTOCONF和AUTOMAKE产生的程序的安装步骤。./configure是用来检测你的安装平台的目标特征的。比如它会检测你是不是有CC或GCC,并不是需要CC或GCC,它是个shell脚本。make是用来...
分类:其他   时间:2015-01-13 17:37:04    收藏:0  评论:0  赞:0  阅读:309
求两个时间的天数差 日期格式为 YYYY-MM-dd
//+---------------------------------------------------//| 求两个时间的天数差 日期格式为 YYYY-MM-dd//+---------------------------------------------------function day...
分类:其他   时间:2015-01-13 17:36:54    收藏:0  评论:0  赞:0  阅读:201
BFC和haslayout(IE6-7)
支持BFC的浏览器(IE8+,firefox,chrome,safari)Block Formatting Context(块格式化上下文)是W3C CSS2.1规范中的一个慨念,在CSS3中被修改为flow root。格式化则表明了在这个环境中,元素处于此环境中应当被初始化,即元素在此环境中应当如...
分类:其他   时间:2015-01-13 17:36:44    收藏:0  评论:0  赞:0  阅读:286
NDK 编译问题概述
原帖地址:http://blog.sina.com.cn/s/blog_4c451e0e010148nr.html项目编译成动态库是正常的,将 Android.mk 里面的include $(BUILD_SHARED_LIBRARY)改成include $(BUILD_STATIC_LIBRARY)...
分类:其他   时间:2015-01-13 17:36:14    收藏:0  评论:0  赞:0  阅读:333
ArcGIS应用——四种计算图斑面积的方法
ArcGIS中有多种方法可计算出图斑面积,本文总结了四种方法,是否可堪称史上最全?1、计算几何本人认为这是最适合非专业人士的方法,直接利用ArcGIS中的计算几何功能进行计算。a、首先添加一double类型字段,用来存储面积数值。b、执行计算几何操作在随后的对话框里选择对应的属性即可。2、字段计算器...
分类:其他   时间:2015-01-13 17:35:54    收藏:0  评论:0  赞:0  阅读:2891
[LeetCode] Largest Number
Given a list of non negative integers, arrange them such that they form the largest number.For example, given[3, 30, 34, 5, 9], the largest formed num...
分类:其他   时间:2015-01-13 17:35:34    收藏:0  评论:0  赞:0  阅读:220
鼠标移过显示二维码代码
$(document).ready(function(){ var t,t1; $(".side ul li.code-wrap").hover(function(){ var _this = $(this); clearTimeout(t1); ...
分类:其他   时间:2015-01-13 17:34:34    收藏:0  评论:0  赞:0  阅读:244
国王的烦恼
描述C国由n个小岛组成,为了方便小岛之间联络,C国在小岛间建立了m座大桥,每座大桥连接两座小岛。两个小岛间可能存在多座桥连接。然而,由于海水冲刷,有一些大桥面临着不能使用的危险。如果两个小岛间的所有大桥都不能使用,则这两座小岛就不能直接到达了。然而,只要这两座小岛的居民能通过其他的桥或者其他的小岛互...
分类:其他   时间:2015-01-13 17:32:04    收藏:0  评论:0  赞:0  阅读:201
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!