现实中打牌 接收到新牌后在已有的牌里面进行排序,然后找到属于自己的位置进行插入: 手中的牌永远是有序的 Code package kb.algorithm; public class InsertionSort { public static void main(String[] args) { i ...
分类:
编程语言 时间:
2021-05-24 12:38:02
阅读次数:
0
函数 函数定义的格式: 修饰符 返回值的类型 函数名(形参列表){ 需要封装的功能代码; } 修饰符:public static 返回值类型:函数执行完毕后,返回的结果的数据类型 函数名:函数名(),要符合变量名的命名规范 注意:有些函数是没有结果返回给调用者的,那么这个时候的返回值的类型是void ...
分类:
编程语言 时间:
2021-05-24 12:36:44
阅读次数:
0
public static void main(String args[]) { try { for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { i ...
分类:
编程语言 时间:
2021-05-24 12:36:02
阅读次数:
0
简介 接雨水. 简单思路 排序, 依次选择最高的柱子,所围城的池塘高度 code class Solution { public: struct zhuzi{ int height; int index; }; bool static cmp(const struct zhuzi &a, const ...
分类:
其他好文 时间:
2021-05-24 11:50:06
阅读次数:
0
import java.math.BigDecimal; public class Demo { public static void main(String[] args) { //这里尽量使用 BigDecimal(String str)的构造器 BigDecimal a = new BigDe ...
分类:
其他好文 时间:
2021-05-24 11:33:34
阅读次数:
0
Code package kb.algorithm; public class BubbleSort { public static void main(String[] args) { int[] a = new int[]{3, 6, 4, 9, 1, 7, 2, 5}; sort(a); St ...
分类:
编程语言 时间:
2021-05-24 11:14:04
阅读次数:
0
尝试做 ingress 实验,发现被畜生的墙拦住下载不了 mandatory.yaml & service-nodeport.yaml。 https://raw.githubusercontent.com/kubernetes/ingress-nginx/nginx-0.30.0/deploy/st ...
分类:
其他好文 时间:
2021-05-24 11:09:02
阅读次数:
0
ifdown br0 brctl delbr br0 rm ifcfg-br0 vim /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 ONBOOT=yes BOOTPROTO=static IPADDR=192.168.0.111 NET ...
分类:
其他好文 时间:
2021-05-24 10:45:19
阅读次数:
0
layout可以叠加效果 import java.awt.*; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; public class HomeWork { public static void mai ...
分类:
其他好文 时间:
2021-05-24 10:44:34
阅读次数:
0
小程序启动下载逻辑相关: https://game.weixin.qq.com/cgi-bin/h5/static/commlib/index.html 这个是实时的。 但是貌似本地也会存储,存储路径: /var/mobile/Containers/Data/Application/B1E7B553 ...
分类:
微信 时间:
2021-05-24 09:49:44
阅读次数:
0