自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

lizhaowei213的博客

活着就要改变世界!

  • 博客(32)
  • 资源 (2)
  • 收藏
  • 关注

原创 Android开发 详解开源项目CircleImageView

之前的项目中在需要显示圆形头像的地方,使用到了Github上的优秀开源项目CircleImageViewhttps://github.com/hdodenhof/CircleImageView今天仔细地研究了这个项目,学习其原理,收获不少。 源码主要分为下面这几大部分取图片Bitmap取自定义属性创建Paint画笔计算内外圆半径Canvas绘制内外圆形一.取图片BitmapCircleImageV

2016-04-11 00:32:57 2944 1

原创 Android开发 图片轮播条Lanner(可无限滚动循环,自定义dots样式位置,延迟时间,滚动时间,点击事件)

先放Github,明天再更。https://github.com/lizhaowei213/Lanner

2016-04-07 01:43:06 730

原创 CodeForces 664A Complicated GCD

Complicated GCDTime Limit: 1000MS Memory Limit: 262144KB 64bit IO Format: %I64d & %I64uSubmit StatusDescriptionGreatest common divisor GCD(a, b) of two positive i

2016-04-17 12:12:18 889

原创 CSU 1600 Twenty-four point

1600: Twenty-four pointTime Limit: 1 Sec  Memory Limit: 128 MBSubmit: 530  Solved: 86[Submit][Status][Web Board]DescriptionGiven four numbers, can you get twenty-four through the add

2016-04-17 00:02:59 443

原创 CSU 1212 中位数

1212: 中位数Time Limit: 1 Sec  Memory Limit: 128 MBSubmit: 433  Solved: 178[Submit][Status][Web Board]Description长为L的升序序列S,S[L / 2]为其中位数。给出两个等长升序序列S1和S2,求两序列合并并排序后的中位数。Input

2016-04-16 13:50:00 624

原创 CSU 1086 超市购物

1086: 超市购物Time Limit: 1 Sec  Memory Limit: 128 MBSubmit: 361  Solved: 151[Submit][Status][Web Board]Description        上次去超市扫荡回来的东西用完了,Staginner又得跑超市一趟,出发前他列了一张购物清单,打算去买K种不同的商品,每种买一件

2016-04-16 01:02:11 636

原创 CSU 1560 图书管理员的表白方式

1560: 图书管理员的表白方式Time Limit: 1 Sec  Memory Limit: 128 MBSubmit: 114  Solved: 36[Submit][Status][Web Board]Description小V是中南大学图书馆的图书管理员,每天要整理很多同学们还回来的书。久而久之,他认识了很多常来图书馆的同学,比如说小L。简而言之吧,就是小

2016-04-16 00:22:16 817

原创 CSU 1559 外卖的撕‘哔’大战

1559: 外卖的撕‘哔’大战Time Limit: 1 Sec  Memory Limit: 128 MBSubmit: 695  Solved: 135[Submit][Status][Web Board]Description“订外卖就上XXX,满X减Y,满X减Y...”这样的声音老回荡在我们耳旁。发传单,拉条幅的宣传手段也屡见不鲜。外卖的撕‘哔’大战充满血雨

2016-04-14 23:11:57 797

原创 CSU 1640 机智的刷题方式

1640: 机智的刷题方式Time Limit: 1 Sec  Memory Limit: 128 MBSubmit: 273  Solved: 92[Submit][Status][Web Board]Description小B想参加中南大学2015年大学生程序设计竞赛暑期集训,相信猛刷自然强的小B表示做题进集训队完全不是事~当然刷题还是有一定技巧的,考虑到每种题

2016-04-14 16:54:27 501

原创 CSU 1558 和与积

1558: 和与积Time Limit: 1 Sec  Memory Limit: 128 MB  Special JudgeSubmit: 105  Solved: 65[Submit][Status][Web Board]Description构造N个正数(每个数不超过100

2016-04-13 21:27:08 469

原创 HDU 1425 sort

sortTime Limit: 6000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 39949    Accepted Submission(s): 11625Problem Description给你n个整数,请按从大到小的顺序输出其中前m大

2016-04-11 19:17:06 614

原创 POJ 3624 Charm Bracelet

Charm BraceletTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 31350 Accepted: 13943DescriptionBessie has gone to the mall's jewelry store and spies a

2016-04-10 19:24:56 489

原创 LeetCode 20 Valid Parentheses

20. Valid ParenthesesTotal Accepted: 102983 Total Submissions: 352605 Difficulty: EasyGiven a string containing just the characters '(', ')','{', '}', '[' and ']', determine

2016-04-09 23:19:54 376

原创 LeetCode 37 Sudoku Solver

37. Sudoku SolverTotal Accepted: 48148 Total Submissions: 195066 Difficulty: HardWrite a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated

2016-04-09 22:59:48 305

原创 LeetCode 58 Length of Last Word

58. Length of Last WordTotal Accepted: 89320 Total Submissions: 306315 Difficulty: EasyGiven a string s consists of upper/lower-case alphabets and empty space characters' ',

2016-04-09 22:42:50 296

原创 LeetCode 21 Merge Two Sorted Lists

21. Merge Two Sorted ListsTotal Accepted: 120734 Total Submissions: 342542 Difficulty: EasyMerge two sorted linked lists and return it as a new list. The new list should be mad

2016-04-09 13:38:01 321

原创 LeetCode 18 4Sum

18. 4SumTotal Accepted: 68829 Total Submissions: 291751 Difficulty: MediumGiven an array S of n integers, are there elements a,b, c, and d in S such that a + b +c + d = tar

2016-04-09 13:14:55 313

原创 LeetCode 17 Letter Combinations of a Phone Number

17. Letter Combinations of a Phone NumberTotal Accepted: 76019 Total Submissions: 267108 Difficulty: MediumGiven a digit string, return all possible letter combinations that th

2016-04-09 12:59:42 543

原创 LeetCode 16 3Sum Closest

16. 3Sum ClosestTotal Accepted: 73703 Total Submissions: 255236 Difficulty: MediumGiven an array S of n integers, find three integers in S such that the sum is closest to a giv

2016-04-09 12:43:53 351

原创 LeetCode 15 3Sum

15. 3SumMy SubmissionsQuestionEditorial SolutionTotal Accepted: 111041 Total Submissions: 595068 Difficulty: MediumGiven an array S of n integers, are there elements a, b, c 

2016-04-07 13:04:23 385

原创 LeetCode 14 Longest Common Prefix

14. Longest Common PrefixMy SubmissionsQuestionEditorial SolutionTotal Accepted: 94641 Total Submissions: 338784 Difficulty: EasyWrite a function to find the longest common p

2016-04-07 12:50:56 535

原创 LeetCode 13 Roman to Integer

13. Roman to IntegerMy SubmissionsQuestionEditorial SolutionTotal Accepted: 79915 Total Submissions: 205049 Difficulty: EasyGiven a roman numeral, convert it to an integer.

2016-04-06 19:52:06 473

原创 LeetCode 12 Integer to Roman

12. Integer to RomanMy SubmissionsQuestionEditorial SolutionTotal Accepted: 60715 Total Submissions: 158049 Difficulty: MediumGiven an integer, convert it to a roman numeral.

2016-04-06 19:37:53 411

原创 LeetCode 11 Container With Most Water

11. Container With Most WaterMy SubmissionsQuestionEditorial SolutionTotal Accepted: 73908 Total Submissions: 214994 Difficulty: MediumGiven n non-negative integers a1, a2,

2016-04-06 19:16:40 370

原创 LeetCode 9 Palindrome Number

9. Palindrome NumberMy SubmissionsQuestionEditorial SolutionTotal Accepted: 116450 Total Submissions: 370999 Difficulty: EasyDetermine whether an integer is a palindrome. Do

2016-04-05 21:27:13 528

原创 LeetCode 8 String to Integer (atoi)

8. String to Integer (atoi)My SubmissionsQuestionEditorial SolutionTotal Accepted: 95952 Total Submissions: 713471 Difficulty: EasyImplement atoi to convert a string to an in

2016-04-05 21:11:47 549

原创 LeetCode 7 Reverse Integer

Reverse digits of an integer.Example1: x = 123, return 321Example2: x = -123, return -321click to show spoilers.Have you thought about this?Here are some good questions to ask before coding.

2016-04-04 21:33:09 316

原创 LeetCode 6 ZigZag Conversion

The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)P A H NA P L S I

2016-04-04 20:30:57 341

原创 Android开发 打造自己的Annotation框架

最近在回顾注解和反射方面的知识。之前在项目开发过程中,也曾经体验过ButterKnife的注解,想结合反射和注解自己写一个框架。结合着大牛的博客,和自己的理解。实现了Activity加载layout和view初始化的注解。一.原理使用注解实现这样的功能,原理是什么呢?反射+自定义annotation首先自定义一个annotation1.用于初始化View的自定义An

2016-04-02 17:03:22 538

原创 Java基础 集合详述

面试的时候总是会被问到集合,尤其是Map特地总结复习一下。一.Java集合概述Java的集合主要由两个接口派生而出,Collection和Map1.Collection集合体系的继承树2.Map集合体系继承树二.Set集合1.HashSetHashSet按Hash算法来存储集合中的元

2016-04-02 14:30:46 488

原创 Android开发 自定义控件 边框TextView

最近在看《Android群英传》里看到的一个自定义效果亲手把它实现了在此记录package csu.lzw.reviewandroid;import android.content.Context;import android.graphics.Canvas;import android.graphics.Color;import android.graphics.P

2016-04-01 22:21:01 492

原创 HDU 1040 As Easy As A+B

As Easy As A+BTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 52312    Accepted Submission(s): 22494Problem DescriptionThese day

2016-04-01 21:20:59 297

Gson.jar谷歌官方解析Json利器(2.2.4)

谷歌官方解析Json利器,方便好用高效,谁用谁知道。

2015-11-26

Volley.jar 安卓通信框架

安卓通信知名强悍框架Volley,把jar包导入项目即可

2015-11-26

空空如也

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

TA关注的人

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