Given a string s, partition s such that every substring of the partition is a palindrome.
Return all possible palindrome partitioning of s.
For example, given s = "aab",
Return
[
["aa","...
分类:
其他好文 时间:
2014-07-12 23:21:30
阅读次数:
215
其实,这一部分,总的来说,主要写DBOpenHelper类和PersonDao类即可。。。。其中DBOpenHelper主要封装了数据库的创建、表的创建与修改。。而PersonDao主要封装对表的DAO操作。。。。1、DBOpenHelperpackage com.example.sqlitetest;
import android.content.Context;
import android...
分类:
移动开发 时间:
2014-07-12 23:04:02
阅读次数:
267
在之前的基础上
在 res 文件夹下面: 添加一个 drawable/local_me.xml
localme_cml
主程序:
package com.example.handlightacti...
分类:
移动开发 时间:
2014-07-12 21:15:14
阅读次数:
267
Given a linked list, swap every two adjacent nodes and return its head.
For example,
Given 1->2->3->4, you should return the list as 2->1->4->3.
Your algorithm should use only constant space. Y...
分类:
其他好文 时间:
2014-07-12 20:39:17
阅读次数:
225
简单小结下CXF跟REST搭配webservice的做法,直接举代码为例子:
1 order.java
package com.example.rest;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement(name = "Order")
public class Order {
...
分类:
Web程序 时间:
2014-07-12 19:51:13
阅读次数:
279
Given two binary strings, return their sum (also a binary string).
For example,
a = "11"
b = "1"
Return "100".
public class Solution {
public String addBinary(String a, String b) {
...
分类:
其他好文 时间:
2014-07-12 19:42:26
阅读次数:
168
1、MainActivitypackage com.example.sqlitetest;
import java.util.List;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.view.Vi...
分类:
移动开发 时间:
2014-07-12 18:59:01
阅读次数:
301
本篇文章是对【大话QT之十二】基于CTK Plugin Framework的插件版本动态升级文章的补充,在上篇文章中我们阐述的重点是新版本的插件已经下载到plugins目录后应该如何更新本地正在运行的程序,是整个插件升级实现的后半部分。本篇文章就来讲述软件自动部署(当然,也包括插件升级)的前半部分。
我们必须有这样一点认识,即:我们的程序是运行在用户机器上的,插件更新不是我们手动...
分类:
其他好文 时间:
2014-07-12 18:11:02
阅读次数:
183
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.
For example, given n = 3, a solution set is:
"((()))", "(()())", "(())()", "()(())", "()()...
分类:
其他好文 时间:
2014-07-12 17:37:13
阅读次数:
139
一般的属于QWidget子类的一些控件,可以直接使用样式表,例如
label->setStyleSheet("color:white");
Qpalette类相当于对话框或是控件的调色板,它管理着控件或窗体的所有颜色信息,每个窗体或控件都包含一个QPalette对象,在显示时按照它的QPalette对象中对各部分各状态下的颜色的描述来进行绘制。就像油漆匠的油漆计划,当要刷墙时,到计划中去查...
分类:
其他好文 时间:
2014-07-12 16:41:39
阅读次数:
403