码迷,mamicode.com
首页 >  
搜索关键字:sliding    ( 270个结果
poj 2823 Sliding Window
题目连接http://poj.org/problem?id=2823 Sliding WindowDescriptionAn array of sizen≤ 106is given to you. There is a sliding window of sizekwhich is movi...
分类:Windows程序   时间:2015-05-29 21:39:13    阅读次数:159
POJ2823.Sliding Window——单调队列
http://poj.org/problem?id=2823求长度为k的子序列里面的最大值,最小值#include #include #include #include #include #define pk push_back const int INF = 0x3f3f3f3f; const i...
分类:Windows程序   时间:2015-05-28 18:08:57    阅读次数:278
poj2823 Sliding Window
Description An array of size n ≤ 106 is given to you. There is a sliding window of size k which is moving from the very left of the array to the very right. You can only see the k numbers in the wi...
分类:Windows程序   时间:2015-05-15 13:44:02    阅读次数:214
sliding windows (poj 2823) 题解
【问题描述】给你一个长度为N的数组,一个长为K的滑动的窗体从最左移至最右端,你只能见到窗口的K个数,每次窗体向右移动一位,如下表:【样例输入】 8 3 1 3 -1 -3 5 3 6 7【样例输出】 -1 -3 -3 -3 3 3 3 3 5 5 6 7【解题思路】 首先,不难想到用枚举的办...
分类:Windows程序   时间:2015-05-13 21:16:26    阅读次数:189
LeetCode "Mininum Size Subarray Sum"
O(n): Sliding window:class Solution {public: int minSubArrayLen(int s, vector& nums) { int len = nums.size(); if (len == 0) return...
分类:其他好文   时间:2015-05-13 16:06:43    阅读次数:123
Android onTouchEvent事件
根据用户的触摸判断滑动方向,选择弹出popupWindow 或者dialog ,也可以切换界面,定义切换动画 定义接口: /** * According to the Angle of the sliding range sliding direction * @author LanYan * */ public interface OnEventListener { /*...
分类:移动开发   时间:2015-05-08 18:20:26    阅读次数:140
UESTC_Sliding Window 2015 UESTC Training for Data Structures<Problem K>
2015 UESTC Training for Data Structures
分类:Windows程序   时间:2015-05-01 07:04:49    阅读次数:210
POJ 2823 Sliding Window (线段树区间查询)
题目大意:解题思路:代码: 1 # include 2 # include 3 4 using namespace std; 5 6 # define inf 99999999 7 # define MAX 1000010 8 9 struct Segtree 10 { 11...
分类:Windows程序   时间:2015-04-24 06:40:25    阅读次数:250
POJ 2823 Sliding Window (单调队列)
Sliding Window Time Limit: 12000MS   Memory Limit: 65536K Total Submissions: 42278   Accepted: 12479 Case Time Limit: 5000MS Description An array of size n ≤ 106 i...
分类:Windows程序   时间:2015-04-14 19:51:26    阅读次数:172
Machine Learning - XVIII. Application Example Photo OCR应用实例-照片OCR(Week10)
机器学习Machine Learning - Andrew NG courses学习笔记 Application Example Photo OCR应用实例照片 OCR(Optical Character Recognition)光学文字辨识 Problem Description and Pipeline问题描述和管道 Sliding Windows滑窗...
分类:移动开发   时间:2015-04-11 22:37:08    阅读次数:267
270条   上一页 1 ... 20 21 22 23 24 ... 27 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!