https://leetcode.com/problems/rectangle-area/Find the total area covered by tworectilinearrectangles in a2Dplane.Each rectangle is defined by its bott...
分类:
其他好文 时间:
2015-06-26 00:10:10
阅读次数:
146
Java中的Trim()函数可以去除字符串的空白前缀和空白后缀,可用来规范用户输入的内容,具体这样用:
String s=" Hello world ".trim();
然后s就是"Hello world"。
处理名字输入小练:
import java.io.BufferedReader;
import java.io.IOException;...
分类:
其他好文 时间:
2015-06-25 23:07:08
阅读次数:
333
好久没有写博客了,最近在看OpenCV,于是动手写了个简单的RGB调色器,在终端实时输出RGB的值。通过这个程序学习滑动条的使用。程序中主要用到cvCreateTrackbar ,其用法如下:
cvCreateTrackbar
创建trackbar并将它添加到指定的窗口。
CV_EXTERN_C_FUNCPTR( void (*CvTrackbarCallback)(int pos)...
分类:
其他好文 时间:
2015-06-25 23:05:26
阅读次数:
407
对于像int/char/long/int*/struct等等简单数据类型,由于对象没有destructor,所以用delete 和delete [] 是一样的!但是如果是C++对象数组就不同了!...
分类:
其他好文 时间:
2015-06-25 23:04:32
阅读次数:
302
TCP/IP协议族-----14.用户数据报协议(UDP)...
分类:
其他好文 时间:
2015-06-25 23:05:50
阅读次数:
350
Cyclic Tour
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/65535 K (Java/Others)
Total Submission(s): 1879 Accepted Submission(s): 938
Problem Description
There are N cities ...
分类:
其他好文 时间:
2015-06-25 23:06:18
阅读次数:
357
#205 Isomorphic Strings
Given two strings s and t, determine if they are isomorphic.
Two strings are isomorphic if the characters in s can be replaced to get t.
All occurrences of a charact...
分类:
其他好文 时间:
2015-06-25 23:05:32
阅读次数:
344
TCP/IP协议族-----15、传输控制协议(TCP)...
分类:
其他好文 时间:
2015-06-25 23:06:08
阅读次数:
356
Matrix
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 1890 Accepted Submission(s): 1005
Problem Description
Yifenfei very like play...
分类:
其他好文 时间:
2015-06-25 23:03:40
阅读次数:
299
近期项目遇到个横竖屏切换的问题,较为复杂,在此记之。
1、Activity中竖屏嵌套3个Fragment,本文简称竖屏FP1,FP2,FP3。
2、其中竖屏FP1与FP2可以切换为横屏的FL1,FL2,即竖屏FP1切换到对应的横屏FL1,竖屏FP2对应切换到横屏FL2。
3、FP3不允许横竖屏切换。
4、竖屏FP1,FP2,FP3用ViewPager实现左右滑动切换。
5、横屏的FL1,FL2用布局中的切换按扭实现左右切换,不允...
分类:
其他好文 时间:
2015-06-25 23:04:46
阅读次数:
532
文本格式化练习:
斜体
斜体的文字
使用鼠标,变成斜体文字
使用键盘Ctrl+i,变成斜体文字粗体的文字,快捷键Ctrl+b删除线,四个撇一号标题1.1一号标题二号标题2.12.1.12.2
引用的内容
你好,我是引用
wo shi qian tao
结束代码格式化
int i行内代码//ctrl+k
int main()
{
printf("...
分类:
其他好文 时间:
2015-06-25 23:05:53
阅读次数:
468
前端
后端
客户端
DBA
OP
程序员有分这么细的吗?
入行时候有差别.
殊途同归...
分类:
其他好文 时间:
2015-06-25 23:03:36
阅读次数:
127
descriptionGiven a binary tree, determine if it is height-balanced.
For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of every node nev...
分类:
其他好文 时间:
2015-06-25 23:04:04
阅读次数:
261