自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 收藏
  • 关注

原创 leetcode16. 3Sum Closest

Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may assume that each input would have exactly...

2018-03-05 14:57:58 99

原创 leetcode 15. 3Sum

题目:Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.Note: The solution set must not contain ...

2018-03-05 11:30:46 109

原创 2. Add Two Numbers

You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return i...

2018-02-26 16:06:03 100

原创 1. Two Sum

原题:Given an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would have exactly one solution, and you may not use the sa...

2018-02-26 16:01:55 82

原创 AndroidMainFest.xml file missing!

今天在打开之前的项目时候出现了错误,发现有AndroidMainFest.xml file missing!找到了解决办法:Project——clean一下即可。

2015-09-06 09:39:14 413

原创 xutils中configCurrentHttpCacheExpiry()的用法

前一段时间看到别人代码中有configCurrentHttpCacheExpiry的方法,不会使用,特地查了一下。比如一个ListView,需要访问网络排序数据,如果不停的点上下上下上下排序,肯定不需要不停的访问网络及更新ListView,只需要保留最后一次访问网络,这时候可以设置一下这些参数,具体见下例子。HttpUtils httpUtils = null; HttpHandler ha

2015-09-05 14:18:49 2461

原创 错误代码:E/FragmentManager(1337): No view found for id 0x7f030005 (com.example.mnews:layout/menu_frame)

出现这个错误的时候,立刻就开始百度,谷歌,看了各种解答,都没有解决我的问题,最后才发现问题出在传的参数不对,一个小问题浪费了我很长时间,以后要注意,不要每次遇到问题就立刻搜索。自己给自己一些时间去试着找出问题出现的原因,问题出现的具体位置,试着自己去解决。以下是报错信息:E/FragmentManager(1337): No view found for id 0x7f030005 (co

2015-09-04 23:07:30 1391

转载 Java 多线程 并发编程

一、多线程1、操作系统有两个容易混淆的概念,进程和线程。进程:一个计算机程序的运行实例,包含了需要执行的指令;有自己的独立地址空间,包含程序内容和数据;不同进程的地址空间是互相隔离的;进程拥有各种资源和状态信息,包括打开的文件、子进程和信号处理。线程:表示程序的执行流程,是CPU调度执行的基本单位;线程有自己的程序计数器、寄存器、堆栈和帧。同一进程中的线程共用相同的地址空间,同时共享进

2015-09-01 17:41:40 260

转载 Catalan数

Catala数的百科见http://baike.baidu.com/link?url=FRJvyLNaLlSgOvesH7twTy-zdeNrENATKUcVuFdWgIhBQtnZJT9vlpK6z-QQZAihGlnHdVcPiSxUWRlGTvGy0HyB_CcTWYOof3AF_3ToxEvXw9m-Aq9z8LrUOz7qpbe3G0wK-WnNLFxnWVK7dlAMca原文章在此

2015-08-29 16:47:41 456

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除