模式的定义 将一个复杂对象的构建与它的表示分离,使得同样的构建过程可以创建不同的表示。 模式的使用场景 Android源码中的模式实现 在Android源码中,我们最常用到的Builder模式就是AlertDialog.Builder, 使用该Builder来构建复杂的AlertDialog对象。简 ...
分类:
其他好文 时间:
2018-12-05 16:23:50
阅读次数:
114
Given a non empty array containing only positive integers, find if the array can be partitioned into two subsets such that the sum of elements in both ...
分类:
其他好文 时间:
2018-12-04 22:31:09
阅读次数:
195
Given an integer array with all positive numbers and no duplicates, find the number of possible combinations that add up to a positive integer target. ...
分类:
其他好文 时间:
2018-12-03 22:58:00
阅读次数:
245
A sequence of numbers is called a wiggle sequence if the differences between successive numbers strictly alternate between positive and negative. The ...
分类:
其他好文 时间:
2018-12-03 22:57:23
阅读次数:
314
题目来源:http://codeforces.com/problemset/problem/55/D Volodya is an odd boy and his taste is strange as well. It seems to him that a positive integer num ...
分类:
其他好文 时间:
2018-12-03 19:54:00
阅读次数:
201
Given a positive integer, return its corresponding column title as appear in an Excel sheet. For example: ...
分类:
其他好文 时间:
2018-12-03 01:08:26
阅读次数:
190
Given an m * n matrix M initialized with all 0's and several update operations. Operations are represented by a 2D array, and each operation is repres ...
分类:
编程语言 时间:
2018-12-02 14:29:12
阅读次数:
206
Assume you are an awesome parent and want to give your children some cookies. But, you should give each child at most one cookie. Each child i has a g ...
分类:
其他好文 时间:
2018-12-01 18:22:13
阅读次数:
110
Problem DescriptionGiven a positive integer N, you should output the most right digit of N^N. InputThe input contains several test cases. The first li ...
分类:
Web程序 时间:
2018-12-01 15:14:26
阅读次数:
251
【题目】 Given a collection of candidate numbers (candidates) and a target number (target), find all unique combinations in candidates where the candidate ...
分类:
其他好文 时间:
2018-12-01 00:13:02
阅读次数:
187