边界条件思考

LeetCode Hot 100


为什么要系统性检查边界条件

边界条件的本质是:输入规模、窗口范围、索引合法性是否被完整覆盖。常见问题来自:

  • 空输入 / 空字符串
  • 单元素 / 最小窗口
  • 窗口刚好满足条件
  • 计数回退导致的 off-by-one
  • 排序 / 哈希 / 计数数组的索引越界
Read more

04_普通数组

LeetCode Hot 100


53. 最大子数组和

难度:中等 | LeetCode 链接

给定一个整数数组 nums,找到一个具有最大和的连续子数组,返回其最大和。

Read more

IELTS Study Log | Day 1

Target overall band: 6.5 (L 7 / R 7 / W 6.0 / S 6.0)

Done Today

  • Listening: Section 2 intensive practice (20 mins)
  • Reading: Passage 1 timed practice (20 mins)
  • Writing: Task 1 structure review (15 mins)
  • Speaking: Part 1 topic cards (10 mins)

Notes

  • Listening: slow response to paraphrases
  • Reading: first 5 minutes too slow for locating keywords
  • Writing: intro template needs trimming
  • Speaking: answers are long enough but lack examples
Read more

AWS DVA-C02 Study Guide

Goal: follow an actionable plan to pass AWS Certified Developer - Associate (DVA-C02).

Exam Overview

  • Duration: 130 minutes
  • Question types: multiple choice / multiple response
  • Focus areas: development, deployment, monitoring, identity and access, best practices

Domain Map

  1. Deployment
    • CodeDeploy / CodePipeline / CodeBuild
    • Blue/Green and rolling deployments
  2. Security
    • IAM policy boundaries, STS, role assumption
    • KMS, Secrets Manager, Parameter Store
  3. Development with AWS Services
    • Lambda / API Gateway / DynamoDB / SQS / SNS
    • SDK retries, signing, pagination
  4. Troubleshooting and Optimization
    • CloudWatch / X-Ray
    • Latency and error investigation patterns
Read more

Weekly Study Plan Template

A minimal template to reduce decision fatigue and keep rhythm.

This Week’s Goals

  1. Complete 3 notes
  2. Solve 10 problems
  3. Do 1 weekly review

Daily Schedule

Day Theme Notes
Mon Weekly review 30 mins
Tue Reading + notes 60 mins
Wed Practice 60 mins
Thu Project cleanup 45 mins
Fri Writing 60 mins
Sat Free study 60 mins
Sun Rest light review
Read more

Git Quick Notes

A compact reference for high-frequency Git commands.

Common Commands

1
2
3
4
5
git status
git add .
git commit -m "feat: add post"
git pull --rebase
git push

Branch Operations

1
2
3
git checkout -b feature/post
git switch main
git merge feature/post
Read more

IELTS 备考笔记 | 3月

3月单词、短语、句型积累


Week 1 | 教育 Education

核心词汇

单词 词性 释义 例句
curriculum n 课程体系 The school has updated its curriculum.
tuition n 学费;教学 Tuition fees have risen sharply.
literacy n 读写能力 Improving adult literacy is essential.
dropout n 辍学者 The dropout rate has decreased.
mixed-ability class n 混合班 Teaching a mixed-ability class is challenging.
compulsory schooling n 义务教育 Compulsory schooling lasts for 9 years.
compulsory subjects n 必修科目 Math and English are compulsory subjects.
value v 看重 Parents value education highly.
hard work n 勤奋 Success comes from hard work.
accuracy n 准确度 Accuracy is important in writing.
values n 价值观 Schools help shape students’ values.
optional adj 可选的 Art is an optional subject.
invaluable adj 极有价值的 The experience was invaluable.
parenting n 父母养育 Good parenting affects children’s development.
Read more

Hexo Quick Start

A minimal Hexo checklist to get started fast.

Install

1
npm install -g hexo-cli

Init

1
2
3
hexo init my-blog
cd my-blog
npm install
Read more