C语言 #include "stdbool.h" #define NULL ((void *)0) //Definition for a binary tree node. struct TreeNode { int val; struct TreeNode *left; struct TreeNo ...
分类:
编程语言 时间:
2021-05-25 17:51:01
阅读次数:
0
public class ForDemo2 { public static void main(String[] args) { for (int i = 1; i <= 9; i++) { for (int j = 1; j <= i; j++) { System.out.print(i+ "*" ...
分类:
其他好文 时间:
2021-05-25 17:50:06
阅读次数:
0
第一节 数据完整性 作用:保证用户输入的数据保存到数据库中是正确的。 确保数据的完整性=在创建表时给表中添加约束 完整性的分类: 实体完整性:行 域完整性:列 引用完整性:学生表(学号,姓名) 成绩表(学号,科目,成绩) 科目表(科目编号,科目名称) 实体完整性:表示数据表中的数据要保证唯一性、不重 ...
分类:
其他好文 时间:
2021-05-25 17:45:08
阅读次数:
0
437. 路径总和 III class Solution: def pathSum(self, root: TreeNode, sum: int) -> int: dp = {} def search(root: TreeNode): if root: search(root.left) searc ...
分类:
编程语言 时间:
2021-05-24 17:23:14
阅读次数:
0
for i in `ps -AL |grep Worker | awk '{print $2}'`; do \ echo $i ; \ gdb --q --n --ex bt --batch --pid $i; \ done 2>&1 |tee /var/stacks.txt CPU使用率较低但负载 ...
分类:
数据库 时间:
2021-05-24 17:19:34
阅读次数:
0
package cn.rushangw.lesson02;import java.awt.*;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;public class TestActonEvent2 { p ...
分类:
其他好文 时间:
2021-05-24 17:18:26
阅读次数:
0
题目: 思路:一道经典的快慢指针问题,快指针先走n步,然后一起走,快指针走到最后一个节点,慢指针就到了要被删除的节点的前一个节点。 # Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, n ...
分类:
其他好文 时间:
2021-05-24 17:18:01
阅读次数:
0
变量 Go语言是静态强类型语言,所以变量是有明确类型的。变量实质上就是在内存中的一小块空间,用来存储特定类型的可变数据。如果没有变量我们的程序只能将数值写死都是静态的数据,无法更改,变量可以让我们进行动态的操作。在数学概念中变量表示没有固定的值,可以随时改变的数。例如:除数、减数与被减数。 类型 变 ...
分类:
其他好文 时间:
2021-05-24 17:07:52
阅读次数:
0
import com.google.common.collect.Lists; import lombok.extern.slf4j.Slf4j; import org.springframework.core.io.Resource; import org.springframework.core ...
分类:
编程语言 时间:
2021-05-24 17:06:24
阅读次数:
0
String类概述 String表示字符串,所有的字符串字面值都是常量(如"abc","hello"),也是字符串的对象。 字符串对象有两种形式 String s1="abc" 这就是一个字符串对象 String s2=new String("abc") 这也是一个字符串对象 两种创建对象的区别 1 ...
分类:
编程语言 时间:
2021-05-24 17:06:04
阅读次数:
0