自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

錦小白的博客

摸著石頭過河的小年輕

  • 博客(11)
  • 资源 (1)
  • 收藏
  • 关注

原创 值得深入学习的控件-RecyclerView(时间轴篇)

之前在进阶篇我们讲解了自定义分割线和item的点击事件传送门 :RecyclerView进阶篇在那篇的最后提到了时间轴,这个效果我们经常会看到,比如查看快递动态的时候time.jpg这就是所谓的时间轴这里我就实现一个和这不太一样的时间轴效果,它长成这个样子image.png它是一个路线走向图,有点像地铁上的路线效果。小...

2018-08-31 14:03:00 691

原创 每日算法之借助标准库解题(II)

这次继续学习使用标准库里的数据结构来解题Q:Given a string, sort it in decreasing order based on the frequency of characters.翻译君:一个字符串,按字符出现的次数由多到少重新排序这个字符串。例如:Input:"tree"Output:"eert"这题需要统计...

2018-08-28 17:52:00 106

原创 每日算法之借助标准库解题(I)

解一些算法题时,我们可以借助语言标准库里的方法或数据结构,它能够有效的帮助我们。比如下面的两道LeetCode上的题目,这两道题很类似,都是求交集问题,但又有很大的不同。Q1:给定两个数组,编写一个函数来计算它们的交集。说明:输出结果中的每个元素一定是唯一的。我们可以不考虑输出结果的顺序。例如输入: nums1 = [1,2,2,1], nums2...

2018-08-27 22:17:00 148

原创 值得深入学习的控件-RecyclerView(源码解析篇)

为什么要写这篇源码解析呢?我一直在说RecyclerView是一个值得深入学习,甚至可以说是一门具有艺术性的控件。那到底哪里值得我们花时间去深入学习呢。没错了,就是源码的设计。但是看源码其实是一件不简单的事情,就拿RecyclerView的源码来说,打开源码一看,往下拉啊拉啊,我擦,怎么还没到头,汗....居然有12k+行。看到这里恐怕会吓一跳,就这么一...

2018-08-23 20:12:00 244

原创 每日算法之LeetCode 483:Find All Anagrams in a String

LeetCode 483:Find All Anagrams in a String(找到字符串中所有字母异位词)Q:Given a string s and a non-empty string p, find all the start indices of p's anagrams in s.Strings consists of lowerca...

2018-08-22 15:46:00 138

原创 每日算法之LeetCode 3:Longest Substring Without Repeating Characters

LeetCode 3:Longest Substring Without Repeating Characters(最长不含重复字符的子串)Q:Given a string, find the length of the longest substring without repeating characters.我是翻译君:给定一个字符串,找到不含...

2018-08-21 15:01:00 139

原创 每日算法之LeetCode 209: Minimum Size Subarray Sum

LeetCode 209: Minimum Size Subarray Sum(长度最小的子数组)Q:Given an array of n positive integers and a positive integer s, find the minimal length of a contiguous subarray of which the s...

2018-08-20 16:17:00 118

原创 每日算法之LeetCode 80:Remove Duplicates from Sorted Array II(去除重复元素)

LeetCode 80:Remove Duplicates from Sorted Array II(去除重复元素)Q:Given a sorted array nums, remove the duplicates in-place such that duplicates appeared at most twice and return the n...

2018-08-19 16:35:00 107

原创 每日算法之LeetCode 125:Valid Palindrome(有效回文)

LeetCode 125:Valid Palindrome(有效回文)Q:Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.Note: For the purpose of this p...

2018-08-18 16:03:00 187

原创 每日算法之LeetCode167 Two Sum(两个数之和问题)

LeetCode 167 Two Sum IIQ:Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number.The function t...

2018-08-17 15:36:00 160

原创 值得深入学习的控件-RecyclerView(进阶篇)

在入门篇我们学会了RecyclerView的简单使用。传送门:(https://www.jianshu.com/p/4260f7c6eb94)但RecyclerView还是有很多其他的知识没有介绍。比如在入门篇我们看最终的实现效果里相邻的Item就没有分割线,这样看起来就不是很美观。一开始我以为RecyclerV没有默认的分割线,就写了一个,写完之后发现...

2018-08-17 12:06:00 258

Java面试宝典2017版

这本java葵花宝典,里面有很多经典的java题目和详细的题目解析。能够让你对java有个更深层次的理解。让你在java面试下能更得心应手。

2018-01-07

空空如也

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

TA关注的人

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