自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Android茶话会

以Android开发技术为主,包括面试和产品相关知识,以及生活中的一些思考

  • 博客(17)
  • 资源 (25)
  • 收藏
  • 关注

原创 翻转子串

题目描述 给定两个字符串s1,s2,请返回bool值代表s2是否由s1旋转而成。字符串中字符为英文字母和空格,区分大小写 解析:通过旋转一个字串即可 public boolean checkReverseEqual(String s1, String s2) { //安全性检查 if(s1==null||s2==null) return false; String t

2015-07-31 22:45:39 789

原创 清除行列

题目描述 请编写一个算法,若MxN矩阵中某个元素为0,则将其所在的行与列清零。 思路:为行列各自建立一个boolean数组,先用双重循环遍历将0对应的位置填上true,然后再双重循环一遍,结合行列boolean数组将对应的位置填写0即可 public int[][] clearZero(int[][] mat, int n) { // 遍历一遍将0的元素行列标记为true bo

2015-07-31 22:06:08 1458

原创 像素翻转

题目描述 有一副由NxN矩阵表示的图像,这里每个像素用一个int表示,请编写一个算法,在不占用额外内存空间的情况下(即不使用缓存矩阵),将图像顺时针旋转90度。 给定一个NxN的矩阵,和矩阵的阶数N,请返回旋转后的NxN矩阵,保证N小于等于500,图像元素小于等于256。 测试样例: [[1,2,3],[4,5,6],[7,8,9]],3 返回:[[7,4,1],[8,5,2],[9,6

2015-07-31 21:21:40 770

原创 图文浅析Binder机制

图文浅析Binder机制

2015-07-31 17:28:57 997

原创 Framework启动过程浅析

浅显的总结一下Framework启动大概过程

2015-07-31 12:31:15 1151

原创 String to Integer (atoi)

Implement atoi to convert a string to an integer. 题目解析:atoi函数 把字符串转为整型 思路解析:主要是考虑各种输入的 +123,-123 ,123,    123(空格),算是个比较简单的题目,直接上AC代码 public int myAtoi(String str) { // 安全性检查 if (str.lengt

2015-07-29 22:53:50 931

原创 Implement strStr()

Implement strStr(). Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. 题目解析:找出一个匹配子串的位置所在 思路一:普通解法,记录位置双重循环 public int strStr(String hays

2015-07-29 22:50:10 690

原创 Single Number II

Given an array of integers, every element appears three times except for one. Find that single one. Note: Your algorithm should have a linear runtime complexity. Could you implement it without using

2015-07-29 22:42:57 649

原创 Binary Tree Preorder Traversal

Given a binary tree, return the preorder traversal of its nodes' values. 题目解析:二叉树的前序遍历 思路 递归ok,下面至直接上AC代码 /** * Definition for a binary tree node. * public class TreeNode { * int val; *

2015-07-29 22:32:29 479

原创 Rotate Array

For example, with n = 7 and k = 3, the array [1,2,3,4,5,6,7] is rotated to [5,6,7,1,2,3,4]. 题目解析:旋转数组 思路:双重循环,需要记录每次开始的数,然后移动数组,最后将首位数组互换即可,还是比较简单的,下面是AC代码 public void rotate(int[] nums, int k) {

2015-07-29 22:28:06 829

原创 Sort List

Sort a linked list in O(n log n) time using constant space complexity. 题目分析:给一个链表排序,这玩意有点不好弄 思路解析:  本题先将链表拆成俩个 (拆后要将俩个链表恢复成正常),递归的将俩个字链表排序, 最后将结果合并,思路简单但是操作起来不好弄,直接上AC代码 /** * Definition for singl

2015-07-29 22:10:47 568

原创 Largest Number

Given a list of non negative integers, arrange them such that they form the largest number. For example, given [3, 30, 34, 5, 9], the largest formed number is 9534330. Note: The result may be very

2015-07-29 21:59:27 654

原创 Sort Colors

Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue. Here, we will use the integers 0,

2015-07-29 21:40:26 514

原创 Happy Number

Write an algorithm to determine if a number is "happy". A happy number is a number defined by the following process: Starting with any positive integer, replace the number by the sum of the squares o

2015-07-29 21:17:28 535

原创 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: Elements in a triplet (a,b,c) m

2015-07-29 21:03:35 517

原创 Word Break

Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words. For example, given s = "leetcode", dict = ["leet",

2015-07-29 20:41:05 656

原创 Two Sum

Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two numbers such that they add up to the target, where

2015-07-29 20:24:47 711

定义未来金融与经济新格局.pdf

作者为火币网技术副总裁可以说是个奇才,把概念讲的非常清楚

2018-03-05

定义未来金融与经济新格局.pdf

作者为火币网技术副总裁可以说是个奇才,把概念讲的非常清楚

2018-03-05

java反射的demo代码

java 反射demo

2016-04-05

recyleviewdemo

recyleview的基本入门demo 集合了cardview 包括点击事件处理

2015-11-30

viewPager搭框架

viewPager搭框架,有viewpager+fragment和viewpager+pageAdapter 博客地址 http://blog.csdn.net/xsf50717/article/details/49764521

2015-11-10

反编译的工具

反编译apk工具,详细使用请见http://blog.csdn.net/xsf50717/article/details/49718777

2015-11-08

Volley学习Demo

Volley学习demo,包含volley的网络请求,图片下载

2015-11-08

TabLayout 方便快捷实现选项卡功能

TabLayout 方便快捷实现选项卡功能的框架,拿去直接用

2015-10-25

AsyncTask练习demo

AsyncTask练习demo,对着写写,有利理解

2015-10-19

json解析,异步下载(listview仅滑动时加载)Demo

异步加载的练习demo 主要涉及知识点: 1.解析json格式数据,主要包括图片,文本 2.使用线程和AsynTask俩种异步方式从网络下载图片 3.handler的使用 4.使用Lru缓存算法 5.改进加载:仅在listview滑动停止后才加载可见项,滑动中不加载

2015-10-10

德州扑克 华为2015编程大赛

华为2015编程大赛作品,成功挺住3轮PK

2015-08-01

MySQL技术内幕(第4版) (带标签)1分

MySQL技术内幕(第4版),带标签的方便大家阅读学习的得力之作,只要一个下载分哦

2014-12-04

百度地图的详细demo.

百度地图的详细API函数和demo,可以帮助你完成百度地图的开发工作

2014-10-20

百度地图 demo

百度地图的详细API函数和demo,可以帮助你完成百度地图的开发工作

2014-10-20

百度地图Demo

百度地图的详细API函数和demo,可以帮助你完成百度地图的开发工作

2014-10-20

摇一摇 功能的源代码

帮助你了解安卓中摇一摇功能的实现,测试可用

2014-10-18

仿微信 摇一摇

仿微信界面 帮助你了解安卓中摇一摇功能的实现,测试可用

2014-10-18

摇一摇 源码

帮助你了解安卓中摇一摇功能的实现,测试可用

2014-10-18

仿微信 demo

集成界面仿真,安卓开发中个关于二维码 扫一扫摇一摇功能实现的源码

2014-10-18

安卓 扫一扫 二维码

安卓开发中个关于二维码 扫一扫功能实现的源码

2014-10-18

androi 扫一扫的源码

安卓开发中 二维码扫一扫的技术代码 亲测可用

2014-10-18

数制转换,栈

数制转换,栈的思想,将一个非负十进制数N,转换为基为B进制数的问题,一般采取“除B取余”来解决

2014-10-10

迷宫问题的算法

迷宫问题的算法代码,栈+深度优先+回溯,绝对可以运行

2014-10-10

舞伴配对问题 c语言

完整描述了舞伴配对问题,并给出了详细的C代码

2014-10-10

空空如也

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

TA关注的人

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