RecyclerView是一种新的视图组,可以实现横向和纵向列表、网格、瀑布流的强大容器。 ...
分类:
移动开发 时间:
2017-09-19 15:24:30
阅读次数:
273
hiahiahia ~~各位程序员们~~~你们设置密码的思路又是什么呐(=@__@=)? ...
分类:
其他好文 时间:
2017-09-18 19:42:25
阅读次数:
181
快速排序由于排序效率在同为O(N*logN)的几种排序方法中效率较高,因此经常被采用,再加上快速排序思想 分治法也确实实用,因此很多软件公司的笔试面试喜欢考这个。 快速排序是C.R.A.Hoare于1962年提出的一种划分交换排序。它采用了一种分治的策略,通常称其为分治法(Divide-and-Co ...
分类:
编程语言 时间:
2017-09-18 13:21:02
阅读次数:
201
#week2# #from leetcode# Description Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For examp ...
分类:
其他好文 时间:
2017-09-18 00:18:48
阅读次数:
259
Yuanfang is puzzled with the question below: There are n integers, a 1, a 2, …, a n. The initial values of them are 0. There are four kinds of operati ...
分类:
其他好文 时间:
2017-09-17 16:30:16
阅读次数:
236
class Solution { public: int reverse(int x) { int ret = 0; int int_max_divide_10 = INT_MAX / 10; int int_max_mod_10 = INT_MAX % 10; int int_min_divide... ...
分类:
其他好文 时间:
2017-09-16 19:05:19
阅读次数:
144
两个超大组合数相除。解法是分解质因数,用数组记录每个质因数称或除的次数,最后直接遍历数组计算即可 #include<iostream> #include<cstdio> #include<cmath> #include<vector> using namespace std; void Fact(i ...
分类:
其他好文 时间:
2017-09-14 20:16:22
阅读次数:
116
画一组同切圆 import turtle turtle.circle(10) turtle.circle(20) turtle.circle(30) turtle.circle(40) turtle.circle(50) turtle.circle(60) 画一组同心圆 import turtle ...
分类:
其他好文 时间:
2017-09-12 13:47:02
阅读次数:
162
Description As a reward for record milk production, Farmer John has decided to start paying Bessie the cow a small weekly allowance. FJ has a set of c ...
分类:
其他好文 时间:
2017-09-12 13:43:04
阅读次数:
194
归并类的排序算法 归并:将两个或两个以上的有序表组合成一个新的有序表。 内部排序中,通常采用的是 2-路归并排序。即:将两个位置相邻的记录有序子序列归并为一个记录有序的序列。归并排序是建立在归并操作上的一种有效的排序算法。该算法是采用分治法(Divide and Conquer)的一个非常典型的应用 ...
分类:
编程语言 时间:
2017-09-10 15:05:48
阅读次数:
110