上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 22 下一页
摘要: Given an arraySofnintegers, are there elementsa,b,cinSsuch thata+b+c= 0? Find all unique triplets in the array which gives the sum of zero.Note:Elemen... 阅读全文
posted @ 2015-07-21 21:55 Maydow 阅读(304) 评论(0) 推荐(0) 编辑
摘要: 之前在网上看到一个一种方法:public class BaseActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.o... 阅读全文
posted @ 2015-07-21 15:18 Maydow 阅读(272) 评论(0) 推荐(0) 编辑
摘要: The connection to adb is down, and a severe error has occured.其实大家一直很困扰这个问题,就是其他软件占用了而已。很好解决的。1、点击window 选择 show views ->other->devices2、在window 添加一个D... 阅读全文
posted @ 2015-07-21 14:50 Maydow 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 让多个Fragment 切换时不重新实例化在项目中需要进行Fragment的切换,一直都是用replace()方法来替换Fragment: public void switchContent(Fragment fragment) { if(mContent != fragment) ... 阅读全文
posted @ 2015-07-20 15:31 Maydow 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 在使用PagerAdapter的时候,会有instantiateItem函数需要自己去重写。最后一句 假如写成((ViewPager) container).addView(v, position);会报错 :IndexOutOfBoundsException将position 改成 0 就可以啦... 阅读全文
posted @ 2015-07-20 14:37 Maydow 阅读(1052) 评论(0) 推荐(0) 编辑
摘要: 近日,在做一个人人的第三方小项目。打算直接使用renren 的sdk 进行开发。因为renren的sdk是以android library project 形式发布的(关于这种project的内容可以参考android library project)。整个导入流程严格按照guide的内容操作,但是... 阅读全文
posted @ 2015-07-18 11:23 Maydow 阅读(134) 评论(0) 推荐(0) 编辑
摘要: Question:Given a 2D board and a word, find if the word exists in the grid.The word can be constructed from letters of sequentially adjacent cell, wher... 阅读全文
posted @ 2015-07-14 18:40 Maydow 阅读(136) 评论(0) 推荐(0) 编辑
摘要: Question:Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: ... 阅读全文
posted @ 2015-07-14 15:59 Maydow 阅读(124) 评论(0) 推荐(0) 编辑
摘要: Question:Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the fa... 阅读全文
posted @ 2015-07-14 14:54 Maydow 阅读(135) 评论(0) 推荐(0) 编辑
摘要: Question:Given a binary tree, return thebottom-up level ordertraversal of its nodes' values. (ie, from left to right, level by level from leaf to root... 阅读全文
posted @ 2015-07-14 14:40 Maydow 阅读(152) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 22 下一页