package leetcode; import java.util.ArrayList; import java.util.List; public class demo_22 { public List<String> generateParenthesis(int n) { List<Stri ...
分类:
其他好文 时间:
2021-06-02 14:38:15
阅读次数:
0
Tick的三种方式 包括 默认 Tick (Actor、Component、UMG) TimerManager 定时器 FTickableGameObject 可以写原生 Object 也可以继承UObject 使用 下面利用 AActor 直接实现三种 Tick class FTickableOb ...
分类:
编程语言 时间:
2021-06-02 14:18:53
阅读次数:
0
本文以Java示例展示如何将Excel文档转为SVG格式。通过本文中的方法,在将Excel转为SVG时,如果sheet工作表中手动设置了分页,则将每个分页的内容单独保存为一个svg文件,如果sheet工作表中没有设置分页,则将Excel sheet表格中默认的分页范围保存为svg。即,转换时,按工作 ...
分类:
编程语言 时间:
2021-06-02 14:18:36
阅读次数:
0
title: libevent学习-reactor设计模式及代码示例 date: 2021-01-22 11:39:35 tags: libevent categories: libevent学习 Reactor Design Pattern Reactor设计模式包含句柄(Handle)、Reac ...
分类:
其他好文 时间:
2021-06-02 13:32:16
阅读次数:
0
1、定义一个执行器抽象类 public abstract class AbstractExecutor<T> { /** * 执行业务逻辑 */ public void doExecute(T t) { try { // 初始化 this.init(t); // 执行逻辑 this.process( ...
分类:
其他好文 时间:
2021-06-02 13:14:08
阅读次数:
0
手机端的安装预配置 下载链接: https://hyb1996.github.io/AutoJs-Docs/#/ 安装以后 打开无障碍服务,然后连接电脑 这里输入同一网络下的电脑ip 2. 电脑下载vscode 并安装autojs插件 注意 连接以前一定要开启Autojs服务 Ctrl + Shif ...
分类:
Web程序 时间:
2021-06-02 12:59:12
阅读次数:
0
简介 简单工厂模式还是得修改factory类来构建出新的对象. 工厂方法模式将factory也抽象成一个抽象接口 code public interface Car { void name(); } public interface CarFactory { Car getCar(); } publ ...
分类:
其他好文 时间:
2021-06-02 12:58:35
阅读次数:
0
1、 #include <stdio.h> #define NUMBER 5 int main(void) { char str[NUMBER][128]; int i; for(i = 0; i < NUMBER; i++) { printf("str[%d] = ", i); scanf("%s ...
分类:
编程语言 时间:
2021-06-02 12:43:03
阅读次数:
0
#include <stdio.h> #include <stdlib.h> #include <time.h> #define max(a, b) ((a) > (b) ? (a) : (b)) typedef struct Node { int key, height; struct Node ...
分类:
其他好文 时间:
2021-06-02 12:24:05
阅读次数:
0
考虑先做一个$O(n^2) 的 dp$ $f[i][j]$表示在$i$的子树中,距离当前点为$j$的点数 $g[i][j]$表示在$i$的子树中,两个点$lca$的距离为$d$,他们的$lca$到$i$距离为$d - j$的点对数。 那么怎么转移? \(ans += g[i][0],ans += g ...
分类:
其他好文 时间:
2021-06-02 12:14:22
阅读次数:
0