码迷,mamicode.com
首页 >  
搜索关键字:struct enum    ( 22969个结果
【YbtOJ#20081】树上排列
题目 题目链接:https://www.ybtoj.com.cn/contest/62/problem/3 思路 可以看做有多少个 $1\sim n$ 的排列满足对于一条路径 \(u\to v\),\(u\) 在序列中的位置一定在 \(v\) 在序列中的位置的前面。 设 \(f[x][i]\) 表示 ...
分类:其他好文   时间:2020-11-30 15:20:42    阅读次数:2
1、IdentityServer4
使用IdentityServer的起点! 安装 IdentityServer4 模板 dotnet new -i IdentityServer4.Template 1、IdentityServer4 创建IdentityServer4项目: dotnet new is4empty -n 项目名 定义 ...
分类:其他好文   时间:2020-11-27 11:16:39    阅读次数:7
LC 222. Count Complete Tree Nodes (二分查找)
link /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NUL ...
分类:其他好文   时间:2020-11-27 11:14:59    阅读次数:5
使用优先队列完成了一个Astar搜索算法的c++实现,有时间可以完整的完成一遍
#include<queue> #include<vector> #include<unordered_map> using namespace std; struct Node { int x; int y; double cost; int parent; Node(int ix, int iy ...
分类:编程语言   时间:2020-11-27 11:07:17    阅读次数:8
使用C语言实现用数组构建二叉树并遍历
#include <stdio.h> typedef struct Node { int data; struct Node* lchild; struct Node* rchild; }Node; typedef Node* BinTree; int array[] = {1,2,3,4,5,6, ...
分类:编程语言   时间:2020-11-27 10:52:16    阅读次数:17
Hadoop框架:MapReduce基本原理和入门案例
MapReduce既是一个编程模型,也是一个计算组件,处理的过程分为两个阶段,Map阶段:负责把任务分解为多个小任务,Reduce负责把多个小任务的处理结果进行汇总。其中Map阶段主要输入是一对Key-Value,经过map计算后输出一对Key-Value值;然后将相同Key合并,形成Key-Value集合;再将这个Key-Value集合转入Reduce阶段,经过计算输出最终Key-Value结果集。
分类:其他好文   时间:2020-11-26 14:53:23    阅读次数:6
102. 二叉树的层序遍历
/** * Definition for a binary tree node. * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * }; */ /** * Return an arr ...
分类:其他好文   时间:2020-11-26 14:41:52    阅读次数:8
Linux DIR,dirent,stat结构体
##1、DIR 定义 struct __dirstream { void *__fd; char *__data; int __entry_data; char *__ptr; int __entry_ptr; size_t __allocation; size_t __size; __libc_l ...
分类:系统相关   时间:2020-11-26 14:36:10    阅读次数:7
机器学习脉络梳理
参数参数分为两种:可学习得到的参数,和超参数。机器学习可以归结为学习一个映射函数f:x→y,将输入变量x映射为输出变量y。一般我们可以假设映射函数为y=f(x,θ)。其中θ即为函数的参数。参数可以通过学习算法进行学习。除了可学习的参数之外,还有一类参数是用来定义模型结构或训练策略的,这类参数叫做超参数(Hyper-Parameter)。超参数和可学习的参数不同,通常是按照人的经验设定,或者通过网格
分类:其他好文   时间:2020-11-26 14:22:46    阅读次数:6
【leetcode】设计有序流
typedef struct { int cur; int n; char** value; } OrderedStream; OrderedStream* orderedStreamCreate(int n) { OrderedStream* obj=(OrderedStream*)calloc( ...
分类:其他好文   时间:2020-11-25 13:04:34    阅读次数:17
22969条   上一页 1 ... 38 39 40 41 42 ... 2297 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!