java_inerview java面试笔记 Redis 缓存穿透 查询一个不存在的数据,mysql查不到也不会写缓存,导致每次请求都查数据库 解决方法:布隆过滤器 2025-04-23 interview #java #redis #mysql #spring
Java_note Java Note 输入输出 普通输入输出 nextInt()和next()都会自动跳过前面遗留的结束符(空格键、Tab键或Enter键) 而nextLine()会读取遗留的结束符 单变量 123456789101112131415import java.util.Scanner public class Main { public static void mai 2024-10-11 programing language #java
动态规划 动态规划 0-1背包 二维dp 先遍历物品还是先遍历背包重量都可以 image-20240910092836809 一维dp 背包容量必须倒序遍历,保证物品i只被放入一次 123456for(int i = 0; i < weight.size(); i++) { // 遍历物品 for(int j = bagWeight; j &g 2024-09-10 算法 #Dynamic Programming
IELTS_Writing Task 1 4 paragraphs 1. introduction paraphrase the question 2. overview the main, general things 2 sentences, 2 points 3. details 4. details no conclusion! 4 similar chart line gr 2024-08-13 IELTS #IELTS #writing
IELTS_Speaking 年轻人的偶像,比赛赢家,鼓励你达成目标的人,好消息,别人做的好决定 I’d like to talk about a cyclist, Mark Cavendish, born in 1985 on the Isle of Man in the UK, known as the "Manx Missile" for his incredible sprinting speed. He joi 2024-08-13 IELTS #IELTS #speaking
c_note 字符串 字符串(字符数组)的输入输出 gets()遇到enter结束 1234#include <string.h> //gets() 、puts()需string.hchar ch1[20];//字符数组gets(ch1);puts(ch1); scanf()遇到space/enter结束 1234char ch2[20];//字符数组scanf("%s&qu 2024-06-30 programing language #c
cpp_note String string = vector vector的函数string都可以用 字符串(字符数组)的输入输出 cin遇到space/enter结束 1234567char line[10];cin >> line; //输入 "123 456"cout << line << endl; //只能输出 &qu 2024-06-30 programing language #c++
python_note global(全局) nonlocal(嵌套函数) IO 123456789101112131415161718192021# 循环读取到文件末尾try: while True: s = input()except: pass# 读取n,m,再读取n个数,m行n, m = (int(_) for _ in input().strip().split(" & 2024-06-30 programing language #python
hexo publish article How to create a new article and publish it to hexo blog? 生成文章 1hexo new <title> 执行该命令,Hexo会在/source/_posts目录下创建一篇新的文章: 文章开头配置项: 配置项 意义 title 网页文章标题 date 文章创建如期 2024-06-30 hexo #hexo #blog
Data Base 2 Review 五、规范化设计 函数依赖 数据库的规范化设计理论:数据依赖、范式、模式设计 核心作用:数据依赖 设计标准:范式 泛关系模式存在的问题: 数据冗余 修改/插入/删除异常 1NF,2NF,3NF,BCNF 无损分解 模式设计方法原则 表达性、分离性、最小冗余性 七、数据库设计 规划 输出:可行性分析报告+数据库系统规划纲要 需求分析 2024-05-27 课程笔记 #database2