摘要: [TOC] 问题 最近写博文的时候发现图片都不显示了: 博文用到的图片一直是用github做图床,果然github里的图片也不显示了: 报错: 这样很影响博文内容的理解啊,在网上搜了一下找到解决方案,记录一下。 以下解放方法参照博主 "Antrn" 的这篇博文: "【最新】解决github图片不显示 阅读全文
posted @ 2019-10-31 12:34 维夏十四 阅读(1018) 评论(0) 推荐(0) 编辑
摘要: [TOC] 问题描述 0 1背包问题:给定$n$种物品和一背包。物品i的重量是$w_i$,其价值为$v_i$,背包的容量为$C$。问:应该如何选择装入背包的物品,使得装人背包中物品的总价值最大? 在选择装人背包的物品时,对每种物品$i$只有两种选择,即装人背包或不装入背包。不能将物品$i$装入背包多 阅读全文
posted @ 2019-10-31 00:47 维夏十四 阅读(2359) 评论(1) 推荐(1) 编辑
摘要: 上下标 $R^2$: R^2 $R_1$: R_1 $R_1^2$: R_1^2 或者 R^2_1 ${^2_1}R$: (^2_1)R 分数 $\frac{a}{2}$: a/2 : a/(b+c) \sdiv(d/e +f) : (a/(b+c)) \ldiv (d/e+f) 矩阵 $\cdot 阅读全文
posted @ 2019-10-26 19:56 维夏十四 阅读(684) 评论(0) 推荐(0) 编辑
摘要: 记录Java_taotao shop项目遇到的问题 ecplise mars2 与 jdk 位数匹配问题 下载了64位的ecplise,但是jdk1.8用的是32位的,运行会一直提示“Failed to load the JNI shared library “XX/Java/JDK6/bin/.. 阅读全文
posted @ 2019-10-06 20:55 维夏十四 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 总结 相关概念 稳定 :如果a原本在b前面,而a=b,排序之后a仍然在b的前面。 不稳定 :如果a原本在b的前面,而a=b,排序之后 a 可能会出现在 b 的后面。 时间复杂度 :对排序数据的总的操作次数。反映当n变化时,操作次数呈现的规律。 空间复杂度 :是指算法在计算机内执行时所需存储空间的度量 阅读全文
posted @ 2019-09-14 18:59 维夏十四 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 题目 x 的平方根 【英文版】https://leetcode.com/problems/sqrtx/ 【中文版】https://leetcode cn.com/problems/sqrtx/ 实现 函数。计算并返回 x 的平方根,其中 x 是非负整数。由于返回类型是整数,结果只保留整数的部分,小数 阅读全文
posted @ 2019-08-25 16:37 维夏十四 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 题目 搜索插入位置 【英文版】https://leetcode.com/problems/search insert position/ 【中文版】https://leetcode cn.com/problems/search insert position/ 给定一个排序数组和一个目标值,在数组中 阅读全文
posted @ 2019-08-25 15:39 维夏十四 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 题目 移除元素 【英文版】https://leetcode.com/problems/remove element/ 【中文版】https://leetcode cn.com/problems/remove element/ 给定一个数组 和一个值 ,你需要 原地 [^in place cn]移除所 阅读全文
posted @ 2019-08-23 23:23 维夏十四 阅读(202) 评论(1) 推荐(1) 编辑
摘要: 题目 删除排序数组中的重复项 【英文版】https://leetcode.com/problems/remove duplicates from sorted array/ 【中文版】https://leetcode cn.com/problems/remove duplicates from so 阅读全文
posted @ 2019-08-19 22:58 维夏十四 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 题目 两数相加 【英文版】https://leetcode.com/problems/add two numbers/ 【中文版】https://leetcode cn.com/problems/add two numbers/ 给出两个 非空 的链表用来表示两个非负的整数。其中,它们各自的位数是按 阅读全文
posted @ 2019-08-19 12:36 维夏十四 阅读(144) 评论(0) 推荐(1) 编辑