题目 给定一个序列,给出最大子序列的和。 解答 public class maxSubSum { public static int maxSubSum1(int [] a){ int maxSum = 0; for (int i = 0; i < a.length; i++) { for(int ...
分类:
编程语言 时间:
2021-05-24 14:09:52
阅读次数:
0
servlet中get和post请求的分发处理 package LWB; import javax.servlet.*; import javax.servlet.http.HttpServletRequest; import java.io.IOException; public class He ...
分类:
其他好文 时间:
2021-05-24 14:07:53
阅读次数:
0
Hello,world Java代码: public class Hello{ public static void main(String[] args){ System.out.print("Hello,world!"); }} 编译: javac Hello.java //编译生成class文 ...
分类:
其他好文 时间:
2021-05-24 14:06:34
阅读次数:
0
简介 使用了C++自带的实现deque 和 unordered_map code class LRUCache { public: unordered_map<int, bool> map; unordered_map<int, int> mapV; deque<int> q; int capaci ...
分类:
其他好文 时间:
2021-05-24 13:58:51
阅读次数:
0
Linux apt命令 1. apt简介 apt(Advanced Packaging Tool)是一个在 Debian 和 Ubuntu 中的 Shell 前端软件包管理器。 apt 命令提供了查找、安装、升级、删除某一个、一组甚至全部软件包的命令,而且命令简洁而又好记。 apt 命令执行需要超级 ...
分类:
系统相关 时间:
2021-05-24 13:45:06
阅读次数:
0
写公钥 ssh-keygen -t rsa # 生成key (echo -e "\n\n"; cat id_rsa.pub; echo -e "\n\n") > /tmp/key.txt # 前后加换行 cat /tmp/key.txt | redis-cli -h 59.xx.xx.157 -x ...
分类:
其他好文 时间:
2021-05-24 13:41:02
阅读次数:
0
<?php class One{ private static $_one; private function __construct(){} private function __clone(){} public static function getOne(){ if(!self::$_one ...
分类:
Web程序 时间:
2021-05-24 13:36:59
阅读次数:
0
countDownLatch这个类使一个线程等待其他线程各自执行完毕后再执行。 public class CountDownLatchDemo { public static void main(String[] args) throws InterruptedException{ /** * * ...
分类:
其他好文 时间:
2021-05-24 13:31:31
阅读次数:
0
<el-tree :data="data" node-key="id" ref="tree" icon-class="el-icon-share" :props="defaultProps"> <template #default="scope"> <div class="custom-node"> ...
分类:
其他好文 时间:
2021-05-24 13:29:53
阅读次数:
0
简介 使用队列实现队列哈哈. code class MyQueue { public: queue<int> q; public: /** Initialize your data structure here. */ MyQueue() { } /** Push element x to the ...
分类:
其他好文 时间:
2021-05-24 13:17:52
阅读次数:
0