MSZ006's Cockpit

MSZ006's Blogs

数据结构

2024.4.15

第9章 查找

  • 动态查找表:在查找的同时对表进行修改操作(增删改)
  • 静态查找表:查找过程不涉及表的操作
    Read more »

计算机网络笔记与知识点

TCP/IP网络模型

  • 应用层(application layer):工作在操作系统中的用户态,应用软件都在应用层实现,包括HTTP,DNS,FTP协议
  • 传输层(transport layer):为应用层提供网络支持,传输协议TCP(Transmission Control Protocol)/UDP(User Datagram Protocol), 80端口通常是Web服务器,22端口是远程登录服务器用的,包括TCP,UDP协议
    Read more »

Go 笔记

2024.12.5

特点

  • 简洁
  • 并发

程序开头

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package main // 定义包名
import ( // 导入库
"fmt"
"math/cmplx"
)
func main(){
var num1 int;
fmt.Print("hello go")
fmt.Printf("print number: %d", num1)
// %d 数字,%c 字符,%f 浮点数,%s字符串
}
// go.mod 定义go的版本还有一些库
// go文件:main.go
// 编译运行:go run main.go

Read more »

Favorite problem list

  • 二分查找

    • 2861,1642,275, 300
    • 74,240 = 搜索二维数组,稍有不同
    • 33 = 搜索旋转数组
    • 注意lower_bound,upper_bound的写法,以及找数组中小于等于target/小于target的位置,详见nt_Time Based Key-Value Store.cpp及Leetcode算法笔记.md - 二分查找
      Read more »

MathMind: LLM-powered Math Helper – Scan & Solve Instantly

MathMind Document and Introduction

Project Overview

This project was developed as an undergraduate software design. By combining large language models and image recognition capabilities, it focuses on recognizing complex mathematical problem images in real life. The system can identify text and formulas in the images, convert them into LaTeX code, and then send the code to a large language model for reasoning and solving.

The project consists of server-side source code and client-side source code (Android), which will be gradually made available for learning and reference in the future.

Read more »

Java笔记

2024.12.28

基础数据结构

1
2
3
4
5
6
7
8
9
10
11
// Stack 栈
Stack<E> stack = new Stack<>();
// push(E item), pop(), peek() 查看栈顶元素,isEmpty() 栈是否为空

// Queue 队列
Queue<E> queue = new LinkedList<>();
// add(E e) / offer(E e), poll() 出队,返回并移除队首元素,peek() 查看队首元素

// Array 数组
int[] arr = new int[size];
// 长度arr.length, Arrays.sort(arr) 排序,Arrays.toString(arr) 转换为字符串
Read more »
0%