一、跨域问题 当通过一个地址去访问另一个地址的过程中,有三个地方的任何一个不一样就会存在跨域问题,前后端交互的项目经常遇到跨域问题。 协议 ip地址 端口号 本项目前端: http://localhost:9528/ ? 后端: http://localhost:8989/ 端口号不一致存在跨域问题 ...
分类:
其他好文 时间:
2021-02-15 12:12:12
阅读次数:
0
#include<bits/stdc++.h> using namespace std; const int maxn=1e5+100; const int inf=1e9; int n,m,x; int dep[maxn];//节点在第几层 int num[maxn];//每一层的节点个数 int ...
分类:
其他好文 时间:
2021-02-15 11:49:10
阅读次数:
0
Given the root of a binary tree, return the leftmost value in the last row of the tree. Example 1: Input: root = [2,1,3] Output: 1 Example 2: Input: r ...
分类:
其他好文 时间:
2021-02-10 12:54:11
阅读次数:
0
DFS层次遍历,设置层数n,在node中按层数创建该层的数组,dfs时每层加入该层对应数组。 /** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNo ...
分类:
其他好文 时间:
2021-02-09 12:27:15
阅读次数:
0
1.1、先序遍历 根结点-左子树-右子树 // 指针 void preorder(node* root) { if(root==NULL) return; //空树,递归边界 printf("%d\n",root->data); preoder(root->lchild); preoder(root ...
分类:
其他好文 时间:
2021-02-09 12:23:21
阅读次数:
0
通常情况下,input 输入框的绑定方式如下: <label class="col-form-label form-control-sm">@Value</label> 代码文件中: [Parameter] public string Value { get; set; } 一般通常用法: <div ...
分类:
其他好文 时间:
2021-02-09 11:57:38
阅读次数:
0
Team Name(2.5) Prime Game(2.6) XOR Sums(2.7) Another Tree with Number Theory Multiple Games Cell Shell Bash Matrix Dream and the Multiverse Cut the Ca ...
分类:
其他好文 时间:
2021-02-08 12:12:42
阅读次数:
0
超图(Hypergraph)是什么 原文链接:超图(Hypergraph)是什么 简单的来说,对于我们熟悉的图而言,它的一个边(edge)只能和****两个**顶点连接;而对于超图来讲,人们定义它的边(这里叫超边,hyperedge)可以和任意个数**的顶点连接。一个图和超图的示意图如下所示: 而对 ...
分类:
其他好文 时间:
2021-02-08 12:06:19
阅读次数:
0
默认centos, unbtan都已经安装了python3版本,可以通过 whereis python来检查已经安装的版本。 root@hecs-x-medium-2-linux-20200619090653:/usr/bin# whereis pythonpython: /usr/bin/pyth ...
分类:
编程语言 时间:
2021-02-08 12:04:26
阅读次数:
0
011 Error:Failed to resolve: com.android.support:recyclerview-v7:28.0.0解决方法 参考链接: https://blog.csdn.net/qq874455953/article/details/83025425 在使用Androi ...
分类:
移动开发 时间:
2021-02-08 11:57:56
阅读次数:
0