DescriptionEvery year the cows hold an event featuring a peculiar version of hopscotch that involves carefully jumping from rock to rock in a river. T...
分类:
其他好文 时间:
2014-07-22 22:53:55
阅读次数:
250
什么是bottom up什么是top down通过浏览器访问如http://localhost:8080/HelloWS/services/HelloWSsss?wsdl 获取的 wsdl, 如何理解其内容? 如何传参???有何特定的格式 ? 如何手动生成这样的wsdl文件? 这样的wsdl文件 在...
分类:
Web程序 时间:
2014-07-22 22:50:33
阅读次数:
198
You are given an n x n 2D matrix representing an image.
Rotate the image by 90 degrees (clockwise).
Follow up:
Could you do this in-place?...
分类:
编程语言 时间:
2014-07-19 23:46:49
阅读次数:
516
题意:
求矩形面积的并 每个矩形里面有个小的矩形被挖空
思路:
经典的线段树扫描线 我竟然坑了3个小时没写出来…真是鄙视自己!!
学过扫描线的都会有思路 这里提出一个错误想法…(就是我的…)
你要是这样给线赋权值就大错特错了 因为会发现线段树的结构使得操作变得很麻烦
当你想更新某段区间的时候 并不知道准确的down到哪里 也不知道更新完了up要如何合并区间
当然像我一样一开始都更新到叶子节点是必须TLE的… TAT
正确思路是这样的
划分出4个矩形再求 为什么这样就对了呢? 因为不...
分类:
其他好文 时间:
2014-07-19 23:32:09
阅读次数:
313
In this article, I gathered up all the dumps, who found. If you see something new table will be updated.If you want to replenish the base - write in c...
分类:
移动开发 时间:
2014-07-19 23:12:35
阅读次数:
867
Linked List CycleGiven a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?算法思路1:快慢指针,当两个指针相遇,则表示有环,...
分类:
其他好文 时间:
2014-07-19 18:38:30
阅读次数:
198
Linked List Cycle IIGiven a linked list, return the node where the cycle begins. If there is no cycle, returnnull.Follow up:Can you solve it without u...
分类:
其他好文 时间:
2014-07-19 18:18:51
阅读次数:
270
Linux用不惯的很大一个原因是终端下编译。主要是平时Win下也不怎么用终端。最近刚刚发现Gedit可以添加外部工具,运行Shell命令。这不就行了,我TM之前怎么没想到呢。从终端中狂按Up-Down解脱了。然后Win下Notepad++ Linux下Gedit 基本一样嘛。(gedit工具)一键编...
分类:
系统相关 时间:
2014-07-19 18:11:20
阅读次数:
224
Description
Problem E
Eat or not to Eat?
Input: Standard Input
Output: Standard Output
A young farmer has N cows, but they produced really really a very very small amount of milk. John ca...
分类:
其他好文 时间:
2014-07-19 08:09:15
阅读次数:
296
Double 四舍五入保留小数:
/**
* @example roundUpNumber(20.47, 0) = 20.5, roundUpNumber(20.449, 1) = 20.45 * @description round up double number * @param Double d * @param Integer index * @return *...
分类:
其他好文 时间:
2014-07-19 08:08:55
阅读次数:
219