码迷,mamicode.com
首页 >  
搜索关键字:generic algorithm    ( 18934个结果
面试题32:从上到下打印二叉树
从上到下打印二叉树,引用辅助队列。 C++版本 #include <iostream> #include <vector> #include <stack> #include <cstring> #include <queue> #include <algorithm> using namespac ...
分类:其他好文   时间:2020-07-28 10:00:15    阅读次数:73
COMP9313 Week9a-0
https://drive.google.com/drive/folders/13_vsxSIEU9TDg1TCjYEwOidh0x3dU6es https://www.cse.unsw.edu.au/~cs9313/20T2/slides/L8.pdf Mining Data Streams 1. ...
分类:其他好文   时间:2020-07-28 10:00:01    阅读次数:68
[模板]kd-tree
//It is made by jump~ #include <iostream> #include <cstdlib> #include <cstring> #include <cstdio> #include <cmath> #include <algorithm> #include <ctim ...
分类:其他好文   时间:2020-07-27 17:46:04    阅读次数:68
面试题29:顺时针打印矩阵
本体考察数组的使用。注意本体使用vector的指针形式。 C++版 #include <iostream> #include <vector> #include <algorithm> using namespace std; void printMatrixInCircle(vector<vect ...
分类:其他好文   时间:2020-07-27 13:53:20    阅读次数:79
Luogu P3387 【模板】缩点
###思路 这个题不难,就是先Trajan缩点减小点数和边数的规模,然后在缩完点的图上跑DP即可。注意要用toposort解决DP后效性(或者是使用记忆化搜索)。 Code #include<iostream> #include<cstdio> #include<algorithm> #includ ...
分类:其他好文   时间:2020-07-26 23:07:29    阅读次数:56
C#.netmvc单文件上传 ajax上传文件
写到到数据库的模型 using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Web; namespace ...
分类:Windows程序   时间:2020-07-26 22:58:41    阅读次数:95
君仙小一时的第二周温习
我是先写的Model的表: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Compone ...
分类:其他好文   时间:2020-07-26 22:51:44    阅读次数:79
滑动窗口【单调队列入门题】
给定一个大小为n≤106<?XML:NAMESPACE PREFIX = "[default] http://www.w3.org/1998/Math/MathML" NS = "http://www.w3.org/1998/Math/MathML" />n≤106的数组。有一个大小为k的滑动窗口, ...
分类:其他好文   时间:2020-07-26 19:28:57    阅读次数:56
CF888G Xor-MST 异或MST
#include<algorithm> #include<iostream> #include<cstdlib> #include<cstring> #include<cctype> #include<cstdio> #include<vector> #include<string> #includ ...
分类:其他好文   时间:2020-07-26 19:19:47    阅读次数:69
面试题28:对称的二叉树
考察二叉树的遍历。判断前序遍历,与新增的前->右->左遍历结果是否一致。 C++版 #include <iostream> #include <algorithm> using namespace std; // 定义二叉树 struct TreeNode{ int val; struct Tree ...
分类:其他好文   时间:2020-07-26 01:57:55    阅读次数:63
18934条   上一页 1 ... 34 35 36 37 38 ... 1894 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!