原题链接在这里:https://leetcode.com/problems/move-zeroes/设置一个count = 0, 每当遇到非零数,就赋值到nums[count]上,同时count++.最后count到nums.length位都填0.Time O(n). Space O(1).AC J...
分类:
其他好文 时间:
2015-09-24 12:44:34
阅读次数:
122
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space fo...
分类:
其他好文 时间:
2015-09-24 10:53:01
阅读次数:
169
题目:Given a stringsand a dictionary of wordsdict, determine ifscan be segmented into a space-separated sequence of one or more dictionary words.For exa...
分类:
其他好文 时间:
2015-09-24 07:04:45
阅读次数:
301
转载出处:http://www.apkbus.com/home.php?mod=space&do=blog&uid=664680&id=59465我们知道,在Android app中的众多activity,service等组件可以运行在同一进程中,也可以运行在不同进程中。当组件运行在同一进程中进行通...
分类:
移动开发 时间:
2015-09-23 18:59:39
阅读次数:
194
I've described the need for special handling of shared libraries while loading them into the process's address space in aprevious article. Briefly, wh...
分类:
其他好文 时间:
2015-09-23 18:53:10
阅读次数:
297
近来两个月一直在做手机端页面开发,编写页面时一股脑儿的在做,但是当后台人员添加功能的时候问题层次不穷,于是就写点儿软文小结;第一:关于一些信息,只能显示一行,由于内容比较多一行显示不完,需要做限制(在拿到设计图时应该想到)white-space:nowrap;text-overflower:ecll...
分类:
其他好文 时间:
2015-09-23 16:55:50
阅读次数:
153
最近有朋友问到了DBMS_SPACE包的使用,也看了一下,大部分是关于dbms_space.space_usage的使用,space_usage这个过程的例子已经很多了,我也就不再多说了,除了这个过程外,另外还有两个过程也有着特殊的用处,但使用的人不多,我们也来看看这两个过程有什么用。这两个过程为:...
分类:
数据库 时间:
2015-09-22 16:39:02
阅读次数:
344
主题链接:http://acm.timus.ru/problem.aspx?space=1&num=17271727. Znaika's Magic NumbersTime limit: 0.5 secondMemory limit: 64 MBZnaika has many interests. ...
分类:
其他好文 时间:
2015-09-22 08:51:54
阅读次数:
240
Building a Space Station题目:http://poj.org/problem?id=2031空间站之间建立通道, 使得所有空间站连通, 最小生成树问题。 道路长度不会有负权。#include #include #include #include using namespace ...
分类:
其他好文 时间:
2015-09-21 23:51:57
阅读次数:
299
Given an unsorted array, find the maximum difference between the successive elements in its sorted form.Try to solve it in linear time/space.Return 0 ...
分类:
其他好文 时间:
2015-09-21 19:17:23
阅读次数:
124