自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

星空的博客

世界的桎梏

  • 博客(18)
  • 收藏
  • 关注

转载 [LeetCode综述]二叉树-前中后序-非递归写法

神评 [★★★★☆] 一套带走 作者:sonp orz 链接:https://leetcode-cn.com/problems/binary-tree-postorder-traversal/solution/mo-fang-di-gui-zhi-bian-yi-xing-by-sonp/ 来源:力扣(LeetCode) 著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。 vector<int> preorderTraversal(TreeNode* root) {

2020-08-01 17:15:08 188

转载 springboot中同时引入jdbc和jpa报错问题解决(The bean ‘userRepository‘, defined in null, could not be registered..)

1.在springboot中同时使用jdbcTemplate和Jpa的时候,项目启动报错,错误信息为: (The bean ‘userRepository’, defined in null, could not be registered. A bean with that name has already been defined in null and overriding is disabled.) 2.截图如下: 3.网上搜索多种办法未能解决,最后仔细阅读pom.xml,发现,jdbc依赖引起的

2020-07-24 16:47:38 1303

原创 echarts叠加柱状图

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <script src="lib/echarts.js"></script> <script src="lib/jquery-3.4.1.js"></script> </head> <body> <div id="main" style="width: .

2020-06-16 17:47:31 1132

原创 python代码加密,打包pyd文件在C#中调用

代码加密 为什么选择pyd、dll https://zhuanlan.zhihu.com/p/54296517 1. python->pyd cython a. 安装cython pip install cython b. 准备自己的python文件,如test.py def test(): print "Hello World!" c. 创建setup.py from distutils.core import setup from Cython.Build import cytho

2020-06-05 15:10:50 3165

原创 Angular9 使用FormData同时上传文件和其他参数

Angular怎么把文件上传给后端接口 没有感情的 stackoverflow 搬运工 重点来了!!,如果你想要同时上传文件和一些文本,不要自己设置Content-Type headers:{ "Content-Type":"multipart/form-data" //把这个去掉!!! }, 另外,把自己的文本参数转成json字符串JSON.stringify(),不然400 Bad ...

2020-03-28 20:13:18 1883

转载 #include "Python.h" - compilation terminated on Linux Mint

running install running build running config running build_py running build_ext building 'Ft.Lib.number' extension x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Ws...

2020-03-16 18:40:18 2444

原创 Uncaught SyntaxError: Invalid regular expression: /^(?:[-()\/a-zA-Z0-9ã‚: Range out of order in char

错误:Uncaught SyntaxError: Invalid regular expression:/^(?:[-()\/a-zA-Z0-9ã‚¡-ヺー-ヾヲ-゚ーï¼-9A-Zï½-zã-ã‚–ã‚™-ゞー々ã-ã‚“ã‚¡-ヾ一-\u9FEFã€-䶵﨎ï¨ï¨‘﨓﨔﨟﨡﨣﨤﨧-﨩]|[\ud...

2019-04-25 14:20:18 9475

原创 linux环境变量及其配置文件(未完成)

用户配置文件级别的:~/.profile ~/.profile: executed by the command interpreter for login shells. This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login exists. see /usr/share/doc/bash/examples/...

2018-10-18 09:59:24 177

原创 An API incompatibility was encountered while executing org.apache.maven.plugins:maven-site-plugin

出现了这个异常 An API incompatibility was encountered while executing org.apache.maven.plugins:maven-site-plugin:3.4:jar 可以考虑一下是不是eclipse没有配置好maven环境。。eclipse->Windows->preference->maven配置。 inst...

2018-10-11 15:57:16 6141

原创 归并排序递归、非递归实现

#include <cstdio> #define min(a, b) a < b ? a : b void print(int arr[], int n) { for (int i = 0; i < n; i++) printf("%d ", arr[i]); putchar(10); } void swap(int arr[], int x, int y) {...

2018-05-13 19:57:29 369

原创 洛谷P1177 快速排序模板

这题真是天坑,我照着书上写的算法直接交TLE,第四五个样例总是过不了,但样例又太大了几十万的数据点,不知道该怎么找问题。不是研究算法的,直接记住怎么写算了。 #include <iostream> #include <cstdio> using namespace std; const int MAX = 100000; int arr[MAX]; int partit...

2018-04-12 15:19:13 402

原创 POJ1182食物链

都是坑啊,谁说的一定要自己想怎么写,不要一上来就看答案的,我脑子抽筋写了一下午这个题,看书上解答有一种浪费了十年寿命的快感。 这是后来分析解答时的笔记: 同一行代表同一种生物,上一行吃下一行的 1 2 3 xy(xa_ya xb_yb xc_yc), x-z(xa-zb, xb-zc, xc-za), =[xa_ya_zb, xb_yb_zc, xc_yc_za]//卧槽厉害,这样就已经把1...

2017-09-01 22:57:59 199

原创 挑战程序设计竞赛笔记_计数DP_P68

#include const int MAX = 1000; int n, m, M, a[MAX], dp[MAX + 1][MAX + 1]; void print(int row, int col) { printf("i/j |"); for (int i = 0; i <= col; i++) printf("%4d", i); p...

2017-08-19 18:48:13 267

原创 挑战程序设计竞赛笔记_计数DP划分数_P67

( ╯□╰ ),菜鸡看了一上午才看懂orz 1.学了这么多天DP,对递推关系也有了一些认识:在想这个递推关系的时候先不要顾及边界,只想递推关系中的一个节点和之前的节点之间的关系就好,递推的初始状态之后再另外想。 2.划分数这个题,(0,0,2)也是一种正确的划分。这个在后面的推导过程中是可以看出来的。 3.可以先看一下这个链接上的讲解:点击打开链接 开始敲黑板了!!! 4.一定要结合实例...

2017-08-19 13:14:52 269

原创 挑战程序设计竞赛笔记_P55

//理解的时候一定要看打出来的表理解!!! #include<cstdio> #include<cstdlib> #define max(a, b) a > b ? a : b const int MAX_N = 100; const int MAX_W = 10000; int n, W, w[MAX_W], v[MAX_N], dp[MAX_N + ...

2017-08-16 19:19:31 214

原创 [leetcode]Median of Two Sorted Arrays

待更新:还没有看discuss区。 题解还是discuss区的好,翻了一遍博客发现代码基本都是来源于discuss区的,以后就不经常翻博客了。偶尔可以翻下博客看看不同的见解,我这里只是记录一下我的学习。递归求解:点击打开链接 <a data-cke-saved-href="http://blog.csdn.net/zxzxy1988/article/details/8...

2017-08-12 15:18:19 180

原创 PAT_02-线性结构2 一元多项式的乘法与加法运算 (20分)

02-线性结构2一元多项式的乘法与加法运算(20分) 设计函数分别求两个一元多项式的乘积与和。 输入格式: 输入分2行,每行分别先给出多项式非零项的个数,再以指数递降方式输入一个多项式非零项系数和指数(绝对值均为不超过1000的整数)。数字间以空格分隔。 输出格式: 输出分2行,分别以指数递降方式输出乘积多项式以及和多项式非零项的系数和指数。数字间以空格分隔,但结尾不能有多余空格...

2016-10-29 14:55:21 1309

原创 PTA_01-复杂度2 Maximum Subsequence Sum

Given a sequence ofKKintegers {N_1N​1​​,N_2N​2​​, ...,N_KN​K​​}. A continuous subsequence is defined to be {N_iN​i​​,N_{i+1}N​i+1​​, ...,N_jN​j​​} where1 \le i \le j \le K1≤i≤j≤K. The Maxim...

2016-09-01 23:11:20 716

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除