前言
你是否觉得自己从学校毕业的时候只做过小玩具一样的程序?走入职场后哪怕没有什么经验也可以把以下这些课外练习走一遍(朋友的抱怨:学校课程总是从理论出发,作业项目都看不出有什么实际作用,不如从工作中的需求出发)
建议:
不要乱买书,不要乱追新技术新名词,基础的东西经过很长时间积累而且还会在未来至少10年通用。
回顾一下历史,看看历史上时间线上技术的发展,你才能明白明天会是什么样。
一...
分类:
其他好文 时间:
2015-08-20 13:11:26
阅读次数:
232
DZY has a hash table with p buckets, numbered from
0 to p?-?1. He wants to insert
n numbers, in the order they are given, into the hash table. For the
i-th number xi, DZY will put it into the bucke...
分类:
其他好文 时间:
2015-08-20 13:10:01
阅读次数:
92
[Author]: kwu --- 创建hive整合hbase的表总结,如下两种方式:...
分类:
其他好文 时间:
2015-08-20 13:10:41
阅读次数:
109
题目大意:
给定M种颜色的珠子,每种颜色珠子的个数均不限,将这些珠子做成长度为N的项链。
问能做成多少种不重复的项链,最后的结果不会超过int类型数据的表示范围。并且两
条项链相同,当且仅当两条项链通过旋转或是翻转后能重合在一起,且对应珠子的颜
色相同。
解题思路:
Polya定理的应用。先来看Polya定理。
Polya定理:设 G = {a1,a2,…,ag}是 N 个对象的置换群,用 M 种颜色给这 N 个
对象着色,则不同的着色 方案数为:
|G|^(-1) *...
分类:
其他好文 时间:
2015-08-20 13:08:48
阅读次数:
150
http://poj.org/problem?id=1904
Description
Once upon a time there lived a king and he had N sons. And there were N beautiful girls in the kingdom and the king knew about each of his sons which o...
分类:
其他好文 时间:
2015-08-20 13:08:29
阅读次数:
141
http://pointclouds.org/documentation/tutorials/
http://wg-perception.github.io/object_recognition_core/install.html#install
http://www.jeffdelmerico.com/wp-content/uploads/2014/03/pcl_tutorial.pdf
...
分类:
其他好文 时间:
2015-08-20 13:08:10
阅读次数:
146
#include
#include
using namespace std;
int ans[6];
int n;
void dfs(int cnt)
{
int i,j;
for(i=0;i<cnt;i++) cout<<ans[i]<<" ";
if(cnt) cout<<endl;
int s=cnt?ans[cnt-1]+1:0;
for(i=s;i<n;i++) {
an...
分类:
其他好文 时间:
2015-08-20 13:09:48
阅读次数:
133
源代码如下:
#include
#include
//#define Key int
#define hl h->l
#define hr h->r
#define hlr h->l->r
#define hll h->l->l
#define hrr h->r->r
#define hrl h->r->l
typedef int Key;
struct Item{
Key key;
c...
分类:
其他好文 时间:
2015-08-20 13:07:34
阅读次数:
166
题目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, return 1->2->3.分析删除链表中重复元素结点。
该题目本质很简单,只需一次遍...
分类:
其他好文 时间:
2015-08-20 13:09:25
阅读次数:
144
跳表(SkipList)简介:
给你一个有序数组,如果现在需要查找某一个数字,你可能会用二分法。
但是如果给你的是一个有序链表,那就用不上二分法了,你能想到什么方法?
跳表是一种很好的选择,理解和实现出来也相对比较容易。
跳表的查询:
例如给出链表: 30 → 40 → 50 → 60 → 70 → 90
现在要插入一个 80 ,如果是用普通方法从头到尾逐个搜索的...
分类:
其他好文 时间:
2015-08-20 13:08:48
阅读次数:
131
世界上有两个真理:人一定会死,程序一定会有bug
嫁人就嫁程序员,钱多话少死得早
正如美女都不在大街上逛一样,高手根本不在群里混。美女去哪里了?多半在私家车里,高手去哪里了?多半在写程序。
我就是看不惯你那读书人的样,经常做出一副搞技术天底下最大的样子。技术再好又如何啊?归根到底还不是要到市场上来,这就是所谓的“科学技术转化为生产力”
...
分类:
其他好文 时间:
2015-08-20 13:07:37
阅读次数:
134
1.bootstrap的插件都依赖于jquery,所有jquery要在bootstrap前加载。 //html 5
//bootstrap不支持ie的兼容模式,所以这行代码是让ie运行最新的渲染模式
<meta http-equiv="X-UA-Co...
分类:
其他好文 时间:
2015-08-20 13:07:12
阅读次数:
233
一,题意:
给你一个全为0的N * N的矩阵,对这个矩阵有两个操作(对于矩阵只有两个状态0,1)
(1):“C x1,y1,x2,y2” 就是将左上角为x1,y1,右下角为x2,y2,的这个矩阵内的数字全部翻转。
(2):“Q x1 y1” 输出a[x1][y1]的值。
二,解析:
该我主要应用令二位的树状数组,一个是行,一个是列。
三,代码:
#include
#inclu...
分类:
其他好文 时间:
2015-08-20 13:07:48
阅读次数:
104
??
当一个Activity被加载创建的时候经历一下三个步骤
onCreate
onStart
onResume
当一个界面对用户可见,但是不能进行相关操作时,这个界面就处在 onPause的状态
当一个界面处在对用户完全不可见的状态,该界面就处于onStop的状态 onPause -->onStop
onCreate()onDestroy()
onStart()onStop()
...
分类:
其他好文 时间:
2015-08-20 13:06:13
阅读次数:
97
#include
#include
#include
using namespace std;
int ans[6],n;
void dfs(int cnt)
{
int i,j;
if(cnt==n) {
for(i=0;i<n;i++) if(ans[i]) cout<<i<<" ";
cout<<endl;
return ;
}
ans[cnt]=1;
dfs(cnt...
分类:
其他好文 时间:
2015-08-20 13:05:49
阅读次数:
149
http://poj.org/problem?id=3259
Description
While exploring his many farms, Farmer John has discovered a number of amazing wormholes. A wormhole is very peculiar because it is a one-way path that...
分类:
其他好文 时间:
2015-08-20 13:04:08
阅读次数:
123
1、木马控制及通信方法包括:双管道,端口重用,反弹技术,Hook技术,今天重点引用介绍一下hook的用法,hook信息后可以将结果发送到hacker邮箱等,实现攻击的目的。
转自:http://hi.baidu.com/mousetopshow/item/a951102d679f6e8f9c63d1b0
钩子能截获系统并得理发送给其它应用程序的消息,能完成一般程序无法完成的功能。掌...
分类:
其他好文 时间:
2015-08-20 13:05:19
阅读次数:
115