堆排序 public class HeapSort { public static void main(String[] args) { int[] arr = {1, 3, 519, 2, 10, 8, 0, 998}; heapSort(arr); System.out.println(Arra ...
                            
                            
                                分类:
编程语言   时间:
2021-04-21 12:26:45   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    CodeForces-1178F1 Short Colorful Strip 区间DP 题意 给定$0-n$ 一共 $n+1$种颜色,现有$m$段初始时刻颜色都是0的纸,对这张纸的段进行操作,第$i$次操作会选择第$l$段到第$r$段纸进行区间染色,条件是这段此时必须为同种颜色,染为$i$。给出最终 ...
                            
                            
                                分类:
其他好文   时间:
2021-04-21 11:55:16   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    前言 在学习算法很美课程的时候,学习到了一些位运算的奇技淫巧,收录在此 判断奇偶数 判断奇数1 & x == 1 System.out.println((1991 & 1) == 1); 判断偶数1 & x == 0 System.out.println((1990 & 1) == 0); 获取二进 ...
                            
                            
                                分类:
编程语言   时间:
2021-04-20 15:43:24   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                Now our job as programmers changes from figuring out the rules, to determining the activities, to writing the code that matches the data to the labels ...
                            
                            
                                分类:
其他好文   时间:
2021-04-20 15:41:14   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    1.进程 定义:进程是运行中的程序,运行中的程序可以理解为内存中的代码指令和运行相关的数据被CPU读写并计算的过程。 有人会认为,要提升CPU的利用率,可以开多个进程,但是开多个进程的话,进程间通讯是个比较麻烦的事情(进程之间地址空间是独立的,需要通过其他方式,例如:管道来解决) 相反,线程之间是可 ...
                            
                            
                                分类:
编程语言   时间:
2021-04-20 15:30:44   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    简单实例: >存储过程,参数的传入! delimiter $ create procedure p1() begin declare i int default 10; select concat ('i的取值是:',i) as QuZhi; end $ delimiter $ create pro ...
                            
                            
                                分类:
数据库   时间:
2021-04-20 15:04:52   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    artisan是laravel提供的命令行接口,这里记录下常用的命令 ...
                            
                            
                                分类:
其他好文   时间:
2021-04-20 14:56:59   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                快速查看ES集群状态 GET _cluster/health { "cluster_name": "elasticsearch", "status": "yellow", "timed_out": false, "number_of_nodes": 1, "number_of_data_nodes" ...
                            
                            
                                分类:
其他好文   时间:
2021-04-20 14:54:42   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    IOC(inversion of control)控制反转,这是一种比较重要的解决面向对象设计耦合问题的方式,是Spring框架的核心之一,控制反转一般分为两大类型,一种是依赖注入(dependecy injection)简称DI,另一种是依赖查找(dependency lookup),依赖注入的应 ...
                            
                            
                                分类:
其他好文   时间:
2021-04-20 14:06:28   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    public class Main { public static void main(String[] args) { test test = new test(); test.xxx(new zi()); } } class fu{ public void x(){ System.out.pri ...
                            
                            
                                分类:
其他好文   时间:
2021-04-20 14:06:09   
                                阅读次数:
0