一些简单的算法与数据结构 稀疏数组 int chessArr1[][] = new int[11][11];//11*11的数组 int sum = 0; chessArr1[1][2] = 1;//设置两个值 chessArr1[2][3] = 2; //打印原数组 for(int[] row : ...
分类:
编程语言 时间:
2021-04-28 11:46:26
阅读次数:
0
C++(异常) int myDevide(int a, int b) { if (b == 0) { //throw - 1;//抛出int类型异常 throw 3.13; } return a / b; } void test01() { int a = 10; int b = 0; try { ...
分类:
编程语言 时间:
2021-04-27 14:40:23
阅读次数:
0
在程序设计中的两个列表组合很简单,只需双层循环就可以。 但在excel中的排列需要写函数,整体来说需要: G列:=IF(ROW()>COUNTA(B:B),INDEX(A:A,INT((ROW()-1)/COUNTA(B:B)+1)),$A$1) H列:=IF(MOD(ROW(),COUNTA(B: ...
分类:
其他好文 时间:
2021-04-27 14:35:20
阅读次数:
0
1:添加Nlog的组件 直接在NuGet里面搜索NLog.Web.AspNetCore 2:然后就是配置服务 public class Program { public static void Main(string[] args) { CreateHostBuilder(args).Build() ...
分类:
Web程序 时间:
2021-04-27 14:26:50
阅读次数:
0
最近发现我们系统导出excel文件时由于是导出百万级数据导出,速度过慢并且内存占用多,故进行了下面的一次优化。 我们使用apache的poi进行excel文件操作 主要耗时: 1、从数据库得到需要导出的结果集耗时 2、将数据写入excel耗时 优化前 public abstract class Ba ...
分类:
其他好文 时间:
2021-04-26 13:58:43
阅读次数:
0
wx-charts 微信小程序图表工具,charts for WeChat small app 基于canvas绘制,体积小巧 持续优化更新中,请保持关注~ 有任何问题欢迎在Issues中讨论,提出issue前请先阅读此须知 支持图表类型 饼图 pie 圆环图 ring 线图 line 柱状图 co ...
分类:
微信 时间:
2021-04-26 13:32:53
阅读次数:
0
Description: Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it can trap after ra ...
分类:
移动开发 时间:
2021-04-26 13:21:39
阅读次数:
0
满射 A mapping \(T: \mathbb{R}^{n} \rightarrow \mathbb{R}^{m}\) is said to be onto \(\mathbb{R}^{m}\) if each \(\mathbf{b}\) in \(\mathbb{R}^{m}\) is th ...
分类:
其他好文 时间:
2021-04-24 13:56:43
阅读次数:
0
## 198. House RobberYou are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only co ...
分类:
其他好文 时间:
2021-04-23 12:11:50
阅读次数:
0
适配器 GenericServlet * 适配器 (Adapter) - 适配器的作用? 1.我们目前所有的Servlet类都直接实现了javax.servlet.Servlet接口,但是该接口中有些方法是我们暂时不需要的,我们可能只需要编写service方法,直接实现Servlet接口的话,显得代 ...
分类:
编程语言 时间:
2021-04-22 15:19:02
阅读次数:
0