各种DOM元素的英文全称: div 语义:Division(分隔)span 语义:Span(范围)ol 语义:Ordered List(排序列表)ul 语义:Unordered List(不排序列表)li 语义:List Item(列表项目)dl 语义:Definition List(定义列表)dt ...
分类:
Web程序 时间:
2016-05-29 06:21:21
阅读次数:
207
我的leetcode之旅,该篇章主要完成使用Java实现算法。这是第三篇Longest Substring Without Repeating Characters...
分类:
编程语言 时间:
2016-05-27 12:05:10
阅读次数:
166
需求:对一个包含数字的字符串排序 search后参考了 http://www.cnblogs.com/m-cnblogs/archive/2012/03/30/2425938.html 截屏: (用到了to_number(str,split 1,...) instr() replace() subs ...
分类:
数据库 时间:
2016-05-25 20:20:25
阅读次数:
298
这题实现起来还是挺麻烦的,就偷懒使用下库函数strtod()。第二个参数表示字符中不是数字的地方,如果后面是空格,则认为其仍是数字,否则不是。 bool isNumber(char *s) { char *endptr; strtod(s, &endptr); if (endptr == s)ret ...
分类:
其他好文 时间:
2016-05-25 18:39:39
阅读次数:
129
在一组字符串中找到最长的子串。采用纵向匹配,遇到第一个不匹配的停止。 string longestComPrefix(vector<string> &strs) { if (strs.empty())return " "; //纵向比较 for (int idx = 0; idx < strs[0] ...
分类:
其他好文 时间:
2016-05-25 18:39:27
阅读次数:
130
Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom. For exa ...
分类:
其他好文 时间:
2016-05-24 16:44:01
阅读次数:
113
Problem: Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the f ...
分类:
其他好文 时间:
2016-05-23 21:03:25
阅读次数:
113
BroadcastReceiver用于监听系统全局的广播消息,接受程序所发出的Broadcast Intent。
1.Broadcast和BroadcastReceiver
Broadcast被分为两种:Normal Broadcast(普通广播);Ordered Broadcast(有序广播);
Context提供了对应的方法发送广播这两种广播:
sendBroadcast():发送...
分类:
移动开发 时间:
2016-05-23 15:07:01
阅读次数:
181
题目链接:https://leetcode.com/problems/longest-increasing-subsequence/
题目:
Given an unsorted array of integers, find the length of longest increasing subsequence.
For example,
Given [10, 9, 2, 5...
分类:
其他好文 时间:
2016-05-22 12:23:17
阅读次数:
213