background picture of the home page

Hi,Friend

以技术为主流的博客系统

动态规划

动态规划 0.1背包 理论基础 二维表 行代表选取0-n 多少物品 列代表 最大容量 最后需要的是最后一个格子

thumbnail of the cover of the post

贪心算法

1、分发饼干 https://leetcode.cn/problems/assign-cookies/description/ class Solution { public int findContentChildren(int[] g, int[] s) { if(s.l

thumbnail of the cover of the post

C# DbHelper常用方法

一: 查询单个字段 DBUtility.DbHelperSQLP dbHelper = new DBUtility.DbHelperSQLP(PubConstant.GetDragonSourceConnectionString); SqlParameter[] paras

thumbnail of the cover of the post

回溯问题

回溯 1、组合 https://leetcode.cn/problems/combinations/description/ 回溯的返回值一般都是void,还有 注意for循环的开始值,不能每次都从集合的第一数值开始。 第二需要注意的是: 不能写成 result.add(list) 因为在 Java

thumbnail of the cover of the post

二叉树

二叉树 涉及到二叉树的构造,无论普通二叉树还是二叉搜索树一定前序,都是先构造中节点。 求普通二叉树的属性,一般是后序,一般要通过递归函数的返回值做计算。 求二叉搜索树的属性,一定是中序了,要不白瞎了有序性了 1、二叉树层序遍历 https://leetcode.cn/problems/binary-

thumbnail of the cover of the post

IIS -HTTP 错误 500.21 - Internal Server Error

1.数据库,sql 2016转到2008 首先想的是备份、还原。但是做的时候,低版本数据库还原高版本数据库出错,还原时,无法读取数据库! 后来,用的:任务——生成数据库脚本——设置脚本编写选项(服务器版脚本选择2008,要编写脚本的数据的类型选择:架构和数据),这样才能把表和数据全都写到脚本中 2.

thumbnail of the cover of the post

IIS-发布网站,报错404找不到文件或者目录

一般网上给了下面的几个方法:   首先基本设置中物理路径应该到网站文件中,比如你的网站文件夹是a,那么路径定义到\a   其次检查一下默认文档,默认文档第一个应该是你的首页的名字,比如index.asp。   最后检查一下是否权限问题,由于不是我主要说的,另外有点多,所以直接发了从网上找的链接:ht

thumbnail of the cover of the post