The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elev ...
分类:
其他好文 时间:
2016-07-30 09:13:48
阅读次数:
133
There are few things more useful than a set of examples when starting to work with a new API. Here are some I’ve started collecting up for my work: Th ...
问题 I: Diamond Collector 题目描述 Bessie the cow, always a fan of shiny objects, has taken up a hobby of mining diamonds in her spare time! She has collect ...
分类:
其他好文 时间:
2016-07-30 00:24:35
阅读次数:
161
alright, it is a bit miserable.. first install i3.. and xorg-init.. of course xorg-utils, xorg-server-utils, xorg-server-x11.. and some pkts I donot r ...
分类:
其他好文 时间:
2016-07-29 21:24:59
阅读次数:
235
n代表楼梯层数,A代表起始位置,B代表终止位置,接下来有n个数,代表到达每一层后,可以选择按 按钮“UP”,“DOWN” ,代表执行此操作后电梯可上升或下降的层数(注意:是变化的层数,且合法),问你至少需要按多少次按钮?
思路:
此题看起来有一点复杂,但转化一下就变得简单了。以每一层及其可到达的楼层为顶点建立有向图,并把其权值设为1,此问题即可住转化为从起点到终点的最短路径。
我用Dijkstra算法WA,难道有负权?此题也有人用BFS解决的。
sofa算法AC代码:...
分类:
其他好文 时间:
2016-07-29 15:46:56
阅读次数:
219
使用DBCA创建新库的时候报错: 查看资源状态: 可以发现,在第二节点,资源ora.DATA.dg处于offline状态。 使用asmcmd查看也没做发现磁盘组data: 解决方法: 重新mount一下没发现的磁盘组data 再次查看资源的状态,发现已经处于online状态: 然后可以继续安装! 补 ...
分类:
数据库 时间:
2016-07-28 14:11:28
阅读次数:
656
wait()、notify()和notifyAll()是Object类中的方法: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 /** * Wakes up a single thread that is wait ...
分类:
其他好文 时间:
2016-07-25 16:10:55
阅读次数:
130
48. Rotate Image 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-pl ...
分类:
其他好文 时间:
2016-07-25 07:01:55
阅读次数:
129
这一周算是步入正轨了,新调的项目组组长人超好。。。而且对新人特别耐心。 因为做的是微软的项目,所用的自动化测试工具也是微软内部研发的,第一周大概就是部署测试环境,熟悉起run的流程,以及分析run。 还是感觉对我来说最大的挑战还是英文,每天早上的stand up metting 是我最头疼的事,前一 ...
分类:
其他好文 时间:
2016-07-25 00:01:30
阅读次数:
379