Given a sorted linked list, delete all duplicates such that each element appear only once.
For example,
Given 1->1->2, return 1->2.
Given 1->1->2->3->3, return 1->2->3.
/**
* Definition f...
分类:
其他好文 时间:
2015-06-18 17:22:55
阅读次数:
79
// uva 11795 Mega Man's Mission 状压dp
// 设r[i]表示第i个机器人所拥有的武器的数目
// r[0]表示初始时洛克人所拥有的武器数
// w[s]表示杀死集合s中的机器人后所得的武器数
// d[s]表示能杀死集合s中的机器人的顺序总数
// d[s] = sigma(d[s-{i}]) 其中i是集合s中的机器人
// 还有一点就是w[S-{i}]的武器可...
分类:
其他好文 时间:
2015-06-18 17:23:51
阅读次数:
105
手工建立powerdesigner的表和列非常麻烦,于是思考用vba实现,借鉴http://www.pudn.com/downloads447/sourcecode/database/detail1884121.html,具体如下:
创建表:
Set mdl = ActiveModel
set table = mdl.Tables.CreateNew
table.Name = "table...
分类:
编程语言 时间:
2015-06-18 17:24:41
阅读次数:
173
在安卓4.4的工程中,每次新建工程同样会出现Helloworld,但不同于以前的版本,现在的Helloworld还自带菜单。这篇文章配合安卓的常用组件日期拾取器、时间拾取器来讲解安卓菜单怎么修改。日期拾取器、时间拾取器两个组件很大,一般情况下,建议使用《【Android】多个Activity之间利用bundle传递数值》(点击打开链接)中介绍的方式,为日期拾取器、时间拾取器新开一个Activity...
分类:
移动开发 时间:
2015-06-18 17:22:59
阅读次数:
151
将一个int 数组转换成字符串
并输出在控制台上
//将一个int 数组转换成一个字符串
public class IntToStringDemo
{
public static void main(String[] args)
{
// TODO Auto-generated method stub
//定义一个int类型的数组
int[] i...
分类:
编程语言 时间:
2015-06-18 17:22:30
阅读次数:
271
Android计算器开发实例
最近迷上了安卓开发, 自己做了个web浏览器,很好用,现在想做一个简单的计算器程序员,熟悉安卓的编程基础。下面我们来一起看一下吧。let`s go!
main.xml代码
http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"...
分类:
移动开发 时间:
2015-06-18 17:22:41
阅读次数:
150
jeecg公开课今晚主题:新版本功能介绍、online原理和代码生成器,欢迎大家报名...
分类:
其他好文 时间:
2015-06-18 17:23:31
阅读次数:
103
在阅读的过程中有任何问题,欢迎一起交流
邮箱:1494713801@qq.com
QQ:1494713801
在linux下,开发工具被切割成一个个独立的小工具。各自处理不同的问题。例如:
编辑器(emacs, vim)
用来进行编辑程序的
调试器(gdb) 用来调试程序
编译器(GCC) 用来编译和链接程序的
性能分析工具(gcov, gprof) 用来优化程序的...
分类:
编程语言 时间:
2015-06-18 17:23:26
阅读次数:
146
Two bored soldiers are playing card war. Their card deck consists of exactly n cards, numbered from 1 to n, all
values are different. They divide cards between them in some manner, it's possible tha...
分类:
其他好文 时间:
2015-06-18 17:23:26
阅读次数:
135
Invert a binary tree. 4
/ 2 7
/ \ / 1 3 6 9to 4
/ 7 2
/ \ / 9 6 3 1解题思路递归实现代码C++:// Runtime: 3 ms
/**
* Definition for a binary tree node.
* struct...
分类:
其他好文 时间:
2015-06-18 17:22:30
阅读次数:
82
UCI文件语法
UCI配置文件由一个或多个config语句组成,每一个config语句伴随着一个或多个option语句。这样的由一个config语句以及伴随的几个option语句组成的段落就叫做一个section。
UCI文件语法举例:config 'section-type' 'section'
option 'key' 'value'
li...
分类:
其他好文 时间:
2015-06-18 17:20:19
阅读次数:
852
题目
Determine whether an integer is a palindrome. Do this without extra space.
Some hints:
Could negative integers be palindromes? (ie, -1)
If you are thinking of converting the integer to...
分类:
其他好文 时间:
2015-06-18 17:22:44
阅读次数:
87
android应用里使用相机图片时必须要考虑的一个问题就是图片朝向,只有判断对朝向才能调整图片从而更好的展现。本文介绍了一种通过ExifInterface判断图片朝向的方法!...
分类:
移动开发 时间:
2015-06-18 17:20:48
阅读次数:
121
Two soldiers are playing a game. At the beginning first of them chooses a positive integer n and gives it to the second soldier. Then
the second one tries to make maximum possible number of rounds. ...
分类:
其他好文 时间:
2015-06-18 17:20:26
阅读次数:
116
HTML Parser
一个比较方便的html解析package是HtmlAgilityPack,可以按照如下图显示在Visual Studio中安装。
使用该包的一个简单实例代码如下: public static bool CrawlCategoryReviewInfo(string categoryUrl)
{
var resp = Ht...
这篇是计算机类的优质预售推荐《WEB+DB PRESS 中文版 02》。
智能手机测试+Amazon Web Services+SassCompass实战,腾讯、百度、淘宝、美团、豆瓣前后端工程师鼎力推荐。
编辑推荐
腾讯、百度、淘宝、美团、豆瓣前后端工程师鼎力推荐
旨在帮助程序员更实时、深入地了解前沿技术,扩大视野,提升技能
内容侧重Web开发相关领域的研究与技术分...
分类:
数据库 时间:
2015-06-18 17:19:43
阅读次数:
224
1、检查是否已安装,grep的-i选项表示匹配时忽略大小写
[root@localhost JavaEE]#rpm -qa|grep -i mysql
mysql-libs-5.1.61-4.el6.x86_64
*可见已经安装了库文件,应该先卸载,不然会出现覆盖错误。注意卸:载时使用了--nodeps选项,忽略了依赖关系:
[root@localhost JavaEE]#r...
分类:
数据库 时间:
2015-06-18 17:20:55
阅读次数:
164