当前位置:编程学习 > C/C++ > >>
站长资源库提供C/C++编程学习、疑难处理、技术方案,当前第19页

Longest Palindromic Substring (最长回文串)

题目:Given a string S, find the longest palindromic substring in S You may assume that the maximum length of S is 1000, a

HDU4741

include <iostream> include <math h> include <iomanip> include <algorithm> define eps 1e-8 defin

HDU Good Numbers (热身赛2)

分析:一道水题、找下规律就OK了、不过要注意特判一下0、因为0也是good number、这个把我坑惨了= =|||#include<iostream> #include<cstdio> #include<

codeforces 19D Points

思路: 线段树+单点更新分析:1 题目的意思是给定一些点和n个操作,这些点都是在原点(0 , 0)的右边,现在给定三种操作 add x y 是把(x , y)这个点加入 remove x y 是把(x , y)这个点删除 find x...

C++设计模式Visitor+Iterator简单实现

#include<stdio.h>#include<string.h>#include<ctype.h>class ElementA;class CompositeElement;template<

裸指针和智能指针的性能对比

本文比较了裸指针和智能指针的性能1.unique_ptr与queue连用,unique_ptr的使用特点:不能使用拷贝构造函数,拷贝赋值函数,但是可以使用move构造函数和move赋值函数。2.std::move的使用,可以将左值表达式强制

poj 1741 Tree 树的分治

解法论文中有,就是把路径分成经过树根,和不经过树根两类,每次处理经过树根的,然后剩下的子树部分可以递归处理,如果每次选取树的重心,那么可以保证最多递归logn层。经过树根的先排序,然后O(n)的复杂度就能...

uvc摄像头代码解析7

13.uvc视频初始化13.1 uvc数据流控制[cppstruct uvc_streaming_control { __u16 bmHint; __u8 bFormatIndex; //视频格式索引 __u8 bFrameIn

uvc摄像头代码解析6

10.扫描视频设备链和注册视频设备10.1 uvc视频链[cpp] struct uvc_video_chain { //uvc视频链 struct uvc_device *dev; //uvc设备 struct list

uvc摄像头代码解析5

8.初始化uvc控制8.1 重要结构体[cpp]struct uvc_control { //uvc控制 struct uvc_entity *entity; //uvc实体 struct uvc_control_info inf

uvc摄像头代码解析4

7.uvc_parse_format7.1 uvc格式描述符[cpp] struct uvc_format_desc { //uvc格式描述符 char *name; //uvc格式描述符名字 __u8 guid[16];//全局唯一ID

uvc摄像头代码解析3

6.uvc解析uvc视频流6.1 重要结构体6.1.1 uvc数据流[cpp] struct uvc_streaming { struct list_head list; //uvc视频流链表头 struct uvc_device
首页上一页1...151617181920下一页尾页转到页跳至
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,