摘要: { "latex-workshop.latex.tools": [ { "name": "latexmk", "command": "latexmk", "args": [ "-synctex=1", "-interaction=nonstopmode", "-file-line-error", / 阅读全文
posted @ 2023-04-22 16:56 Notomato 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 插件篇 中文文字 CRTL+左右 按词跳转 快捷键篇 ctrl + tab/1/2/3/4 切换当前栏打开的文件 alt + 1/2/3 切换栏 ctrl + ~/j 打开关闭终端 ctrl + b 打开关闭侧边栏 工具篇 git git commit -a -m 'add and commit' 阅读全文
posted @ 2022-11-29 18:15 Notomato 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 单例分为饿汉式和懒汉式 在初始化单例唯一指针的时候,就已经提前开辟好了一个对象,申请了内存。 饿汉式的好处是,不会出现线程并发创建,导致多个单例的出现,但是缺点是如果这个单例对象在业务逻辑没有被使用,也会客观的创建一块内存对象。那么与之对应的模式叫“懒汉式” 饿汉式需要加锁保证线程安全 单例模式的优 阅读全文
posted @ 2022-09-30 19:38 Notomato 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 参考链接 练习: 设计一个电脑主板架构,电脑包括(显卡,内存,CPU)3个固定的插口,显卡具有显示功能(display,功能实现只要打印出意义即可),内存具有存储功能(storage),cpu具有计算功能(calculate)。 现有Intel厂商,nvidia厂商,Kingston厂商,均会生产以 阅读全文
posted @ 2022-09-30 00:38 Notomato 阅读(51) 评论(0) 推荐(0) 编辑
摘要: 思路: 二分+递归 对k二分,分别比较a,b k/2位置的大小,小的那一部分就可以删除了,再更新k basecase是 k为1或者 其中一个数组删完了 package main import "fmt" func findKth(a, b []int, aleft, bleft, k int) in 阅读全文
posted @ 2022-09-17 15:08 Notomato 阅读(22) 评论(0) 推荐(0) 编辑
摘要: Golang代码 package main import ( "fmt" "strconv" "strings" ) type Treenode struct { Val int Left, Right *Treenode } func Serialization(node *Treenode) s 阅读全文
posted @ 2022-09-16 15:52 Notomato 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 可视化学习网站 阅读全文
posted @ 2022-09-15 13:10 Notomato 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 先开个帖。。 阅读全文
posted @ 2022-09-06 15:10 Notomato 阅读(3) 评论(0) 推荐(0) 编辑
摘要: Golang如何判断接口是否实现 package main type people interface { getage() int } type stu struct { Age int Name string } type staff struct { Age int Name string } 阅读全文
posted @ 2022-09-06 13:56 Notomato 阅读(103) 评论(0) 推荐(0) 编辑
摘要: Golang反射学习笔记 参考连接 package main import ( "fmt" "reflect" ) type common interface { Love(string) string } type people struct { Name string `json:"name"` 阅读全文
posted @ 2022-09-01 13:57 Notomato 阅读(21) 评论(0) 推荐(0) 编辑