Description
A number is called a Mirror number if on lateral inversion, it gives the same number i.e it looks the same in a mirror. For example 101 is a mirror number while 100 is not.
Given two ...
分类:
其他好文 时间:
2014-07-27 11:10:22
阅读次数:
204
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
其他好文 时间:
2014-07-27 10:25:42
阅读次数:
179
Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order.For example, Given n = 3,You should return the followin...
分类:
其他好文 时间:
2014-07-27 10:21:02
阅读次数:
219
Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order.For example, Given the following matrix:[ [ 1,...
分类:
其他好文 时间:
2014-07-27 10:16:02
阅读次数:
135
安装输入法框架: sudo apt-get install scim安装输入法: sodu apt-get install scim-pinyin此时启动的输入法的候选词框不随着光标移动,需要安装下面四个包: sodu apt-get install scim-qt-immodule scim...
分类:
系统相关 时间:
2014-07-27 10:03:12
阅读次数:
278
递归算法设计的基本思想是:对于一个复杂的问题,把原问题分解为若干个相对简单类同的子问题,继续下去直到子问题简单到可以直接求解,也就是说到了递推的出口,这样原问题就有递推得解。 关键要抓住的是: (1)递归出口 (2)地推逐步向出口逼近 样例: example: 求5的阶乘。。 例如以下: Jav.....
分类:
编程语言 时间:
2014-07-27 09:58:52
阅读次数:
167
想要能修改 ARM板上的系统时间,试了两种方法:
1.采用系统命令。system()
尝试了很多命令,date -s "20090807 16:02:23" ;date -s 16:02:23 ;但板子上的日期就是设置不成功,采用date -s 16:02:23 可以将时间设置成功。于是不得不考虑别的方法。
2.标准C库
首先感叹下,C库很强大呀!
而且我觉着C库的移植...
分类:
系统相关 时间:
2014-07-26 17:19:32
阅读次数:
414
URI : uniform resource identifier统一资源标示符用于指定Web资源的字符串,它定义了Web资源中的各个不同的部分。ex:http://example.org/absolute/URI/with/absolute/path/to/resource.txtftp://ex...
分类:
其他好文 时间:
2014-07-26 16:54:21
阅读次数:
356
先来看效果:
实现方式----->自定义控件
核心代码:
package com.example.wavedemo1;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
i...
分类:
移动开发 时间:
2014-07-26 15:08:20
阅读次数:
311