自定义博客皮肤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大法好!!

  • 博客(134)
  • 资源 (6)
  • 收藏
  • 关注

转载 leetcode难度及面试频率

转载:http://blog.csdn.net/yutianzuijin/article/details/11477603       1Two Sum25arraysort    s

2015-07-17 21:43:24 719

转载 个人收藏的一些很有性价比的Github链接

本文转载 http://blog.csdn.net/ccg_201216323/article/details/53822573平常开发工作中,我经常取Github上搜索项目,Clone下来学习使用,在这个过程中,发现了好多比较好的Github地址,记录下来,分享出去。非常有用的GitHub链接(顺序不分先后):1.https://github.com/jeason

2017-11-02 14:40:40 6056

转载 C语言经典算法(1-10)

【程序1】题目:有1、2、3、4个数字,能组成多少个互不相同且无重复数字的三位数?都是多少?1.程序分析:可填在百位、十位、个位的数字都是1、2、3、4。组成所有的排列后再去      掉不满足条件的排列。2.程序源代码:main(){int i,j,k;printf(“\n“);for(i=1;i〈5;i++)    /*以下为三重循环*/ for(j=1

2017-07-26 09:15:24 6517

原创 【Android自定义view系列】圆形百分比进度条

1.前言        在工作工程中,自己掌握的Android开发知识已经感觉到了瓶颈,Android初级知识没问题,写业务逻辑也没问题。但是作为一个Android开发工程师,并不能仅仅满足于现状,看到自身缺陷和瓶颈之后,需要对自身进行努力提高,以提升自身技能。

2017-02-20 19:48:23 3753 1

转载 上传自己的库到github并作为依赖

Android Studio的Gradle管理库的功能肯定让你印象深刻,可以非常方便系统的帮你管理自己项目中依赖的库。    有时候我们会实现一个小功能,很多项目中都会用到,比如我刚刚修改了一个扫描二维码的库,作用是实现竖屏扫描。两个项目中都会用到,那我每次赋值这个代码过去多麻烦啊。所以我就想到我这个扫描二维码的封装好,作为一个库让其他项目去调用。接下来就教你通过github与JitPac

2017-02-19 15:53:54 2193

原创 WebView内存泄漏解决方法

销毁webview的方式从mWebView.removeAllViews();/**、* 这里内存泄漏了,因为它的父容器在退出前没有被销毁,所以就会持有引用,内存泄漏* */// mWebView.destroy();改为在 Android 5.1 系统上,在项目中遇到一个WebView引起的问题,每打开一个带webview的界面,退出后,这个act

2016-11-25 14:57:37 29254 1

原创 如何导入外部Git仓库到中国源代码托管平台(Git@OSC)

一、开源中国代码中新建项目,同时不勾选GitIgnore和ReadMe选项,避免代码第一次提交记录。二、项目创建完成之后,则是代码导入。根据项目首页提示导入代码即可。示例如下:图中代码具体地址根据自己项目变换。

2016-10-21 16:29:11 605

原创 eclipse 常用快捷键整理

1.切换编辑窗口  ctrl + f62.快速注释  ctrl + /    块注释:ctrl + shift + / (\)3.切换大写  ctrl + shift + x    切换小写:ctrl + shift + y4.快速删除:ctrl + d5.复制当前行到下一行 ctrl + alt + ↓ (可多行)  复制当前行到上一行 ctrl + alt + ↑ (可多行

2016-10-20 15:37:23 378

转载 解决ADT Eclipse项目的Preference中,Java Compiler下没有Annotation Processing

很多做安卓开发的跟我一样,用的IDE可能都是从谷歌安卓官网上下载的ADT Bundle的Eclipse吧,确实这样很方便,解压出来就直接能用。但是前段时间遇到一个问题,本来打算用一下ButterKnife这个注入框架,但不光是把jar包扔进项目libs文件夹中就完了,还要求在项目右键的preference里找到Java Compiler,展开后在Annotation Processing节

2016-10-20 10:04:37 551

转载 Android图片加载Glide框架使用详解

【本文装载自】http://blog.csdn.net/u011002668/article/details/50947538在Android开发中,图片加载已经是必不可少的一部分,无论是新闻类App,购物类、社交类等等,已经不可能不涉及到图片加载。现在的图片加载框架也是很多,我们最熟悉的应该是UIL了,今天就来记录一下Glide的使用。老规矩,在节目开始之前,我们先来一个搞笑

2016-04-08 16:14:23 1236

原创 android开源图表框架HelloChart的使用 (hellocharts-library-1.5.8.jar)

前言:在android开发过程中,图表是使用比较频繁的功能,目前开源的框架也比较多,如大名鼎鼎的mpChart,WilliamChart等。不过在使用过程中,各有各的好处,如mpChart在我使用lineChart的时候效果总是不太如意,而WilliamChart的使用在studio环境中表现不错,但是在eclipse环境中总是报错。无法集成。所以网上搜索了其他的开源框架,找到了hellochart

2015-12-24 14:39:58 18357 15

原创 leetCode 117.Populating Next Right Pointers in Each Node II (为节点添加右指针) 解题思路和方法

Follow up for problem "Populating Next Right Pointers in Each Node".What if the given tree could be any binary tree? Would your previous solution still work?Note:You may only use constant

2015-08-23 14:47:20 974

原创 leetCode 116.Populating Next Right Pointers in Each Node (为节点填充右指针) 解题思路和方法

Given a binary tree struct TreeLinkNode { TreeLinkNode *left; TreeLinkNode *right; TreeLinkNode *next; }Populate each next pointer to point to its next right node.

2015-08-23 14:44:25 854

原创 leetCode 115.Distinct Subsequences(子序列距离) 解题思路和方法

Given a string S and a string T, count the number of distinct subsequences of T in S.A subsequence of a string is a new string which is formed from the original string by deleting some (can be non

2015-08-22 22:42:06 1642

原创 leetcode 114.Flatten Binary Tree to Linked List (将二叉树转换链表) 解题思路和方法

Given a binary tree, flatten it to a linked list in-place.For example,Given 1 / \ 2 5 / \ \ 3 4 6The flattened tree should look like: 1

2015-08-22 22:35:48 1225

原创 leetcode 113. Path Sum II (路径和) 解题思路和方法

Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.For example:Given the below binary tree and sum = 22, 5 / \

2015-08-22 22:27:30 1139

原创 leetCode 112.Path Sum (路径和) 解题思路和方法

Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.For example:Given the below binary tree and sum

2015-08-05 12:55:20 1146

原创 leetCode 111.Minimum Depth of Binary Tree(二叉树最小深度) 解题思路和方法

Given a binary tree, find its minimum depth.The minimum depth is the number of nodes along the shortest path from the root node down to the nearest leaf node.思路:求解根节点到叶子的最小距离。与求树的最大深度类似,只是一个求大,一

2015-08-05 12:52:25 522

原创 leetCode 110.Balanced Binary Tree (平衡二叉树) 解题思路和方法

Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of every node never diffe

2015-08-05 12:50:00 873

原创 LeeCode 109.Convert Sorted List to Binary Search Tree(将排序链表转化为BST) 解题思路和方法

Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.思路:此题与排序数组很大的不同是链表不知道长度以及上面的值。其整体思路还是中间值作为根节点,但是需要一点策略,不然就会超时。先整体遍历长度之后,将长度保存,这样就不需要每

2015-08-05 12:47:00 682

原创 leetCode 108.Convert Sorted Array to Binary Search Tree(将排序数组转换为BST) 解题思路和方法

Given an array where elements are sorted in ascending order, convert it to a height balanced BST.思路:将排序数组转换为高度平衡的二叉搜索树。思想是将中间的值作为根节点,然后左右的数组分别为左右子树。递归求解。代码如下:/** * Definition for a binary tre

2015-08-05 12:41:47 656

原创 leetCode 107.Binary Tree Level Order Traversal II (二叉树水平序)

Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root).For example:Given binary tree {3,9,20,#,#,15,7},

2015-08-01 20:27:29 695

原创 leetCode 106.Construct Binary Tree from Inorder and Postorder Traversal (根据中序遍历和后序遍历构造二叉树)

Given inorder and postorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.思路:这题和上题类似,前序第一个是根节点,后序遍历最后一个是根节点。其余步骤类似。代码如下:/** *

2015-08-01 20:23:22 643

原创 leetCode 105.Construct Binary Tree from Preorder and Inorder Traversal (根据前序遍历和中序遍历构造二叉树)

Given preorder and inorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.思路:首先根据前序遍历得到根节点,然后在中序遍历中得到根节点的位置,左边的为左子树,右边的为右子树。然后再

2015-08-01 20:22:15 626

原创 leetCode 104.Maximum Depth of Binary Tree(二叉树最大深度) 解题思路和方法

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 farthest leaf node.思路:很基础的一个题,DFS即可。代码如下:/** * Defin

2015-08-01 20:18:18 820

原创 leetCode 103.Binary Tree Zigzag Level Order Traversal (二叉树Z字形水平序) 解题思路和方法

Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next level and alternate between).For example:Given binary

2015-08-01 20:17:11 583

原创 android 收集已发布版本的错误信息(UncaughtExceptionHandler)

前言:在开发安卓的过程中,debug绝对是任何开发人员极为痛绝的事情。在本地开发过程中,如果出现错误,还可以查看logcat信息,但是市场上的手机五花八门,各种型号各种屏幕尺寸,甚至各种各样的用户,开发者难以确定什么时候用户会出现bug.那么搜集已经发布的版本bug信息,对于版本更新和用户体验是十分重要的事情,那么如何实现?在项目中用到这种需求,花了半天时间研究了一下,具体用法待我一一道来。

2015-07-31 09:44:14 857

原创 android 百度地图API 使用Marker和InfoWindow

前言:在android开发过程中,百度地图的使用是比较普遍的,但是如何使用,使用什么版本的百度API还是需要一些讲究。在项目过程中,需要用到百度地图的marker和InfoWindow的功能。标注覆盖物(百度地图官方图)布局文件很简单,主要就是mapview,如下:<LinearLayout xmlns:android="http://schemas.android.

2015-07-31 09:36:10 4158

转载 2015阿里巴巴实习生招聘客户端开发试题

2015-04-03,阿里巴巴暑期实习生招聘,第一轮,笔试,客户端开发,在线测试,为了可以给以后来的同学们一点经验,特意把题目留下来了,希望可以给大家帮助。技术类的题基本都一样,大概是有一个题库,虽然每个人的题目不一样,但是还是会有一些重合率。测试环节40分钟,20道选择题80分钟,3道简答题以下答案都是我蒙的,不要参考选择题

2015-07-30 22:16:26 588

原创 leetCode 102.Binary Tree Level Order Traversal (二叉树水平遍历) 解题思路和方法

Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level).For example:Given binary tree {3,9,20,#,#,15,7}, 3 / \ 9 20

2015-07-30 17:03:06 789

原创 leetCode 101.Symmetric Tree(对称树) 解题思路和方法

Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: 1 / \ 2 2 / \ / \3 4 4 3But the f

2015-07-30 17:01:17 696

原创 leetCode 100.Same Tree (同树判断) 解题思路和方法

Given two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally identical and the nodes have the same value.思路:判断两棵树是否相同

2015-07-30 16:56:56 792

原创 leetCode 99.Recover Binary Search Tree(修正二叉搜索树) 解题思路和方法

Two elements of a binary search tree (BST) are swapped by mistake.Recover the tree without changing its structure.Note:A solution using O(n) space is pretty straight forward. Could you devis

2015-07-30 16:54:31 714

原创 leetCode 98.Validate Binary Search Tree (有效二叉搜索树) 解题思路和方法

Given a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is defined as follows:The left subtree of a node contains only nodes with keys less than the node's key.Th

2015-07-30 16:49:08 684

转载 android Studio 常用快捷键大全

接下来这篇android studio使用教程,主要为大家介绍的是android studio快捷键,如果我们掌握了一些常用快捷键,那么在使用android studio的过程中会达到事半功倍的效果哦~  ----常用快捷键  1.Ctrl+E,可以显示最近编辑的文件列表  2.Shift+Click可以关闭文件  3.Ctrl+[或]可以跳到大括号的开头结

2015-07-28 15:45:19 464

原创 leetCode 97.Interleaving String (交错字符串) 解题思路和方法

Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2.For example,Given:s1 = "aabcc",s2 = "dbbca",When s3 = "aadbbcbcac", return true.When s3 = "aadbbbaccc", ret

2015-07-28 11:02:50 2262

原创 leetCode 96.Unique Binary Search Trees (唯一二叉搜索树) 解题思路和方法

Given n, generate all structurally unique BST's (binary search trees) that store values 1...n.For example,Given n = 3, your program should return all 5 unique BST's shown below. 1 3

2015-07-28 10:50:55 533

原创 leetCode 94.Binary Tree Inorder Traversal(二叉树中序遍历) 解题思路和方法

Given a binary tree, return the inorder traversal of its nodes' values.For example:Given binary tree {1,#,2,3}, 1 \ 2 / 3return [1,3,2].Note: Recursive solutio

2015-07-28 09:32:19 1074

原创 leetCode 95.Unique Binary Search Trees II (唯一二叉搜索树) 解题思路和方法

Given n, generate all structurally unique BST's (binary search trees) that store values 1...n.For example,Given n = 3, your program should return all 5 unique BST's shown below. 1 3

2015-07-28 09:31:56 987

原创 斐波那契高效算法(4种算法综合分析)

斐波那契数列问题是算法学习者必然接触到的问题,作为经典问题,首次接触时一般是作为递归算法的案例教程。然而递归解决斐波那契,其效率低的令人发指,有人算出其时间复杂度为O(2^n)。指数级时间复杂度。如果面试的时候面试官问你斐波那契的求解方法,你来一个递归求解,基本上可以说,你已经game over了。那么有没有更高效的算法呢,本文将一一介绍。下面是斐波那契的4种解法:1.递归

2015-07-27 17:34:41 21095 7

C语言完美知识点总结-考试必备

C语言完美知识点总结-考试必备

2023-11-29

C语言期末复习知识点总结

C语言期末复习知识点总结

2023-11-29

惠普打印机驱动-2520

惠普打印机驱动-2520

2023-11-29

hellocharts-library-1.5.8.jar

详细使用方法请移步博客http://blog.csdn.net/xygy8860/article/details/50394194

2015-12-24

百度地图的SDK(libBaiduMapSDK_v3_0_0)

博客地址:http://blog.csdn.net/xygy8860,有关于这个sdk使用的介绍

2015-07-30

libBaiduMapSDK_v3_0_0

开发者可利用SDK提供的接口,使用百度为您提供的基础地图数据。目前百度地图SDK所提供的地图等级为3-19级,所包含的信息有建筑物、道路、河流、学校、公园等内容。所有叠加或覆盖到地图的内容,我们统称为地图覆盖物。如标注、矢量图形元素(包括:折线、多边形和圆等)、定位图标等。覆盖物拥有自己的地理坐标,当您拖动或缩放地图时,它们会相应的移动。

2015-07-30

js学习-数码时钟-动态显示当前时间

运用JavaScript实现的数码时钟效果,动态显示当前时间,可以运用在网站开发中,也是学习JavaScript的一些技巧的参考。

2015-06-17

js特效-无缝滚动

学习js运动的一种运动特效,无缝滚动,在网页开发中运用广泛,是建设网站必备的一种运动特效。

2015-06-17

在线音乐网站

使用java和jsp开发一款在线音乐网站,实现播放和上传功能,包含后台管理页面和评论页面。是一款很好的入门参考资料。

2015-06-17

空空如也

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

TA关注的人

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