Problem:Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of th...
分类:
其他好文 时间:
2014-09-30 23:33:10
阅读次数:
319
Follow up the "remove duplicates",what if duplicates are allowed at most twice?思路一:使用变量numlength记录数组中相同数字出现不超过两次所得到的数组长度;code:class Solution {public: ...
分类:
其他好文 时间:
2014-09-30 23:01:00
阅读次数:
171
本文内容收集来自网络#triangle-up { width: 0; height: 0; border-left: 50px solid transparent; border-right: 50px solid transparent; border-bottom:...
分类:
Web程序 时间:
2014-09-30 18:51:59
阅读次数:
162
====================问题描述==================== 本人严格按照android官网的步骤导入android-support-v7-appcompat库项目,再新建了一个工程,引入这个库项目,编译没问题。但是一运行却报如下问题,java.lang.RuntimeE...
分类:
其他好文 时间:
2014-09-30 14:47:39
阅读次数:
104
实现一个与内容合二为一的ActionBar动画效果,让你的actionbar更生动。下面是效果图:
这种效果的好处是让actionbar也成为了内容的一部分,实际应用的效果比图片展示的效果要好,除了actionbar渐渐出现的效果外,背景图片还有一种称之为 Ken Burns effect 的动态效果。
下面讲解实现过程。
设置actionbar的样式,我们需要如下两点:
1....
分类:
其他好文 时间:
2014-09-30 12:34:39
阅读次数:
249
题目描述:Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the t...
分类:
其他好文 时间:
2014-09-30 00:24:31
阅读次数:
208
Populating Next Right Pointers in Each Node II
Total Accepted: 18934 Total
Submissions: 62031My Submissions
Follow up for problem "Populating Next Right Pointers in Each Node".
What if t...
分类:
其他好文 时间:
2014-09-29 23:45:01
阅读次数:
218
This tutorial is aimed at the Django user who wants to set up a production web server. It takes you through the steps required to set up Django so tha...
分类:
Web程序 时间:
2014-09-29 15:43:31
阅读次数:
241
坐标系
左图是左手坐标系 右图是右手坐标系
Direct3d用的是左手坐标系
顶点和法向
光栅化
变换
1世界变换
2观察变换
D3DXMATRIX out;
D3DXVECTOR3 eye(2,3,3);
D3DXVECTOR3 at(0,0,0);
D3DXVECTOR3 up(0,1,0);
D3DXMatrixL...
分类:
其他好文 时间:
2014-09-29 14:27:50
阅读次数:
150
最近在使用到侧滑栏的时候,使用到了v7包下的actionbar,结果折腾了好久才折腾好,其实很简单的,操作步骤如下:1. 在eclipse中导入v7包的工程2. 在自己的工程中打开properties选项,添加v7的作为library,另外,一定不能选择is library有人反应在选择添加libr...
分类:
移动开发 时间:
2014-09-29 01:47:26
阅读次数:
362