自定义 View 的属性并不难,可以参照官方的文档 https://developer.android.com/training/custom-views/create-view.html 但是需要注意一个问题,否则可能浪费很多时间。 参数的名字不可以与保留字相同。比如不能叫 case,return ...
分类:
移动开发 时间:
2016-09-16 22:58:34
阅读次数:
252
Given a sorted linked list, delete all duplicates such that each element appear only once. For example,Given 1->1->2, return 1->2.Given 1->1->2->3->3, ...
分类:
其他好文 时间:
2016-09-16 22:46:39
阅读次数:
154
一、问题描述: 我在处理支付宝业务中出现过这样的问题,付费完成后,在支付宝跳转到商家指定页面时,订单状态已经更新,通过调试发现是支付宝先通知notify_url,完成了订单状态. 支付宝return_url和notify_url通知顺序问题: 顺序不一定的,请别以先后顺序来做判断,具体如何判断,是根 ...
分类:
Web程序 时间:
2016-09-16 17:04:35
阅读次数:
157
Reverse a linked list from position m to n. Do it in-place and in one-pass. For example:Given 1->2->3->4->5->NULL, m = 2 and n = 4, return 1->4->3->2- ...
分类:
其他好文 时间:
2016-09-16 16:57:45
阅读次数:
133
Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2. For example,Given:s1 ="aabcc",s2 ="dbbca", When s3 ="aadbbcbcac", return ...
分类:
其他好文 时间:
2016-09-16 16:52:11
阅读次数:
113
今天遇到一个问题,本来是以前已经了解过的,但是忘了,现在又想起来了,还是记一下 try...except...当except抓到异常后程序会继续运行 但是个人感觉抓到异常后都是终止程序的吧。。。可能也是我遇到的情况不多,没遇见过继续的情况 终止程序的方法有两种。。。sys.exit()和return ...
分类:
其他好文 时间:
2016-09-16 16:45:03
阅读次数:
136
1. Never return in a finally statement. If you return in a finally block then any Throwables that aren't caught will be completely lost. e.g. 2. If re ...
分类:
编程语言 时间:
2016-09-16 14:09:54
阅读次数:
157
#include <stdio.h>#include <windows.h>int main(){ MessageBox(NULL,TEXT("hi"), TEXT("hi"), MB_YESNO); return 0;} ...
分类:
其他好文 时间:
2016-09-16 14:03:27
阅读次数:
102
Given a set of distinct integers, nums, return all possible subsets. Note: The solution set must not contain duplicate subsets. For example,If nums = ...
分类:
其他好文 时间:
2016-09-16 12:45:30
阅读次数:
109
Numbers can be regarded as product of its factors. For example, Write a function that takes an integer n and return all possible combinations of its f ...
分类:
其他好文 时间:
2016-09-16 12:41:36
阅读次数:
146