自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(20)
  • 收藏
  • 关注

转载 [转] Java中创建对象的5种方式

原文地址:http://geek.csdn.net/news/detail/187272?ref=myread 作为Java开发者,我们每天创建很多对象,但我们通常使用依赖管理系统,比如Spring去创建对象。然而这里有很多创建对象的方法,我们会在这篇文章中学到。 Java中有5种创建对象的方式,下面给出它们的例子还有它们的字节码  如果你运行了末尾的的程序,你会发现

2017-03-16 15:14:47 313

原创 每天一题LeetCode[第十七天]

每天一题LeetCode[第十七天]Remove duplicates from sorted arrayDescription:Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.Do not allocate e

2017-03-02 22:52:36 258 1

原创 每天一题LeetCode[第十六天]

每天一题LeetCode[第十六天]Merge two sorted listsDescription:Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.Subscrib

2017-03-01 21:30:37 262

原创 每天一题LeetCode[第十六天]

每天一题LeetCode[第十六天]4 SumDescription:Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array which gives the sum

2017-02-27 17:53:19 235

原创 每天一题LeetCode[第十五天]

每天一题LeetCode[第十五天]Letter Combinations of a Phone NumberDescription:Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like

2017-02-26 23:09:48 251 1

原创 每天一题LeetCode[第十四天]

每天一题LeetCode[第十四天]3 Sum ClosestDescription:Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may

2017-02-26 16:03:41 169

原创 每天一题LeetCode[第十三天]

每天一题LeetCode[第十三天]Generate ParenthesisDescription:Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, given n = 3, a solution set is:[

2017-02-24 17:53:59 212

原创 每天一题LeetCode[第十二天]

每天一题LeetCode[第十二天]Valid ParentheseDescription:Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.The brackets must close in the correc

2017-02-24 17:06:13 307

原创 每天一题LeetCode[第十一天]

每天一题LeetCode[第十一天]Remove Nth Node From End of ListDescription:Given a linked list, remove the nth node from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n =

2017-02-23 22:59:33 235

原创 每天一题LeetCode[第十天]

每天一题LeetCode[第十天]3SumDescription: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: The sol

2017-02-19 00:45:17 217

原创 每天一题LeetCode[第九天]

每天一题LeetCode[第九天]Integer to RomanDescription:Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.Subscribe to see which companies asked this questi

2017-02-12 16:51:24 172

原创 每天一题LeetCode[第八天]

每天一题LeetCode[第八天]Container with Most waterDescription:Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two en

2017-02-12 16:04:45 347

原创 每天一题LeetCode[第七天]

每天一题LeetCode[第七天]Palindrome NumberDescription:Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints: Could negative integers be palindromes? (ie, -

2017-02-10 18:20:07 240

原创 每天一题LeetCode[第六天]

每天一题LeetCode[第六天]Reverse IntegerDescription:Reverse digits of an integer.Example1: x = 123, return 321 Example2: x = -123, return -321click to show spoilers.Have you thought about this? Here are some g

2017-02-09 23:29:02 207

原创 [Android]如何使得点击区域大于实际显示大小?

如何使得点击区域大于实际显示大小? 场景:这个图片或者文字太小了,用户很难点击,产品说,哇这样不行,一定要让用户好点击! 这个问题已经是早有解决方案,我只是把到收集的方法进行整理下。 [小招]对于图片,可以使用ImageButton来解决。 例: ImageButton android:id="@+id/iBtnTest" android:layout_widt

2017-02-09 18:12:32 1348

原创 每天一题LeetCode[第三天]

每天一题LeetCode[第三天]Longest Substring Without Repeating CharactersDescription:Given a string, find the length of the longest substring without repeating characters.Examples:Given "abcabcbb", the answer is

2017-02-07 22:55:18 183

原创 每天一题LeetCode[第五天]

每天一题LeetCode[第五天]Longest Palindrome SubstringDescription:Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000.Example:Input: "babad"Output:

2017-02-07 18:35:50 323

原创 每天一题LeetCode[第四天]

每天一题LeetCode[第四天]Add Two NumbersDescription:You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a sin

2017-02-06 22:43:49 188

原创 每天一题LeetCode [第二天]

每天一题LeetCode[第二天]ToSumDescription:Given an array of integers, return indices of the two numbers such that they add up to a specific target.Example:Given nums = [2, 7, 11, 15], target = 9, Because nums[

2017-02-05 22:40:19 252

原创 每天一题LeetCode [第一天]

每天一题LeetCode [第一天]ZigZagConversionDescription: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 b

2017-02-03 11:07:37 242

空空如也

空空如也

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

TA关注的人

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