首页 > 2014年04月25日 > 全部分享
基础数据结构算法总结
对本科使用的数据结构课本感情很深, 当初学的时候, 并不需要上机编程, 考试时只需写出伪代码即可. 而今, 实现的细节已经变得必须了, 所以, 再次拿出课本, 复习一下实现细节数据结构和算法1. 堆的实现(插入, 删除, 初始化, 以最大根为例)2. 快排的实现3. 归并排序的实现4. 数组实现队列...
分类:其他   时间:2014-04-25 07:36:32    收藏:0  评论:0  赞:0  阅读:572
Palindrome Partitioning
Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrome partitioning of s. For exampl...
分类:其他   时间:2014-04-25 07:41:58    收藏:0  评论:0  赞:0  阅读:478
Text Justification
Given an array of words and a length L, format the text such that each line has exactly L characters and is fully (left and right) justified. You sho....
分类:其他   时间:2014-04-25 07:45:16    收藏:0  评论:0  赞:0  阅读:520
Word Search
Given a 2D board and a word, find if the word exists in the grid. The word can be constructed from letters of sequentially adjacent cell, where "adjac...
分类:其他   时间:2014-04-25 07:47:29    收藏:0  评论:0  赞:0  阅读:511
PKU 3311 Hie with the Pie 状态DP
Floyd + 状态DPWatashi的板子#include #include #include #include using namespace std;const int INF = (int) 1e8;int dp[1= 0; S--) { for (int v = 0;...
分类:其他   时间:2014-04-25 07:48:11    收藏:0  评论:0  赞:0  阅读:547
CF 420B Online Meeting 模拟题
只是贴代码,这种模拟题一定要好好纪念下 TAT#include #include #include using namespace std;const int MAXN = (int) 1e5+10;bool is[MAXN];int msg[MAXN];int first_in[MAXN], la...
分类:其他   时间:2014-04-25 07:53:49    收藏:0  评论:0  赞:0  阅读:508
hdu2032
#includeint main(){ int n; int j,i; int a[100][100]={1}; for(i=0;i0&&n2) { for(i=2;i<n+1;i++) { for(j=1;j<i-1;j++) { a[i][j]=a[i...
分类:其他   时间:2014-04-25 07:57:58    收藏:0  评论:0  赞:0  阅读:570
Substring with Concatenation of All Words
You are given a string, S, and a list of words, L, that are all of the same length. Find all starting indices of substring(s) in S that is a concaten....
分类:其他   时间:2014-04-25 08:10:20    收藏:0  评论:0  赞:0  阅读:591
开发ProxyServer的时候如何在一台PC上调试
为了测试在真实的网络环境下你的ProxyServer性能如何,而你手头又只有一台电脑,怎么办?打开你的ProxyServer(我用java写的,因此ProxyServer的进程是javaw.exe)打开需要测试你ProxyServer的应用(我选择了Chrome、QQ、百度云管家,对应了常用的上网操...
分类:其他   时间:2014-04-25 08:11:40    收藏:0  评论:0  赞:0  阅读:556
hdu2042
#includeint main(){ int n; int j,i,sum=3; int a[100]; int p[100]; scanf("%d",&n); for(i=0;i<n;i++) scanf("%d",&a[i]); for(i=0;i<n;i++) { for(j=0;j<...
分类:其他   时间:2014-04-25 08:15:04    收藏:0  评论:0  赞:0  阅读:542
330条   上一页 1 ... 15 16 17
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!