自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(26)
  • 收藏
  • 关注

原创 1000 of 1MB files vs one 1000MB file?

proportionseekeach file。

2025-11-04 20:10:48 828

原创 TS vs JS

​TypeScript 最大的优势就是通过静态类型将运行时错误转化为编译时错误,这带来了:​更早发现错误​ - 在编码阶段而非用户使用时​更好的开发体验​ - 智能提示、自动补全​更高的代码质量​ - 明确的接口契约​更强的可维护性​ - 安全的重构和修改这正是为什么 TypeScript 在现代前端开发中如此受欢迎的原因!🎯。

2025-11-03 10:13:11 139

原创 what is the difference between innerHTML and innerText and textContent

【代码】what is the difference between innerHTML and innerText and textContent。

2025-10-30 16:23:26 570

原创 String(x) and x.toString()

There are some important differences between and in JavaScript.​String()​​ is a function that converts any value to a string:- Object Method​toString()​​ is a method that objects call on themselves:Key Differences1. ​Handling and ​2. ​Primit

2025-10-30 16:21:50 393

原创 Why is it called “callback function“

func(arg)

2025-10-24 17:30:06 340

原创 How to initialize Multi-Dimensional cache in TS

【代码】How to initialize Multi-Dimensional cache in TS。

2025-10-19 18:27:37 247

原创 Expressions vs. Functions

【代码】Expressions vs. Functions。

2025-10-16 16:35:38 237

原创 Why not always explicitly return null?

No, it's generally ​not​ a good practice to always explicitly return instead of letting functions return implicitly in TypeScript. Here's why:2. ​Fights Language Semantics​When to Use EachUse for: ​Missing/Optional Values​​Function Parameter

2025-10-16 14:25:54 419

原创 Photoshop混合模式

文章摘要: 本文系统介绍了Photoshop混合模式的分类及特性,将28种模式分为基础型、变暗型、变亮型、对比型、比较型和色彩型6大类。基础型如"正常"和"溶解"实现基本覆盖效果;变暗型(如"正片叠底")通过算法保留暗部;变亮型(如"滤色")则突出亮部;对比型(如"叠加")增强图像层次;比较型(如"差值")产生反相效果;色彩型(如"色相")控制特定色彩属性。每种模式均标

2025-10-16 11:14:17 330

原创 Typescript return type

简单来说,记住这三条规律:​​字符串​​:所有方法都​​安全无副作用​​,返回新字符串。​​数组​​:方法名听起来像“动作”的(如pushsort)通常​​会修改​​原数组;方法名听起来像“查询”或“创建”的(如mapslice)通常​​返回新数组​​。​​Map​setdeleteclear会修改原 Map,其他查询方法则不会。

2025-10-06 12:13:17 299

原创 编程竞赛中的“魔法数字”:为什么总是对 10^9+7 取模?

编程竞赛中常见的模数10^9+7并非随意选择,而是基于数学与工程考量的黄金标准。作为大素数,它支持模逆元运算,满足组合数学和数论定理的需求;其数值大小(约2^30)完美适配32/64位整数计算,避免溢出风险。变体如合数10^9+5常被用作"陷阱",考察选手是否真正理解模运算原理。特殊素数998244353则适用于需要数论变换的题目。这一设计完美平衡了数学严谨性、计算效率与出题意图,是计算机科学实践智慧的结晶。

2025-09-16 17:04:36 503

原创 编程竞赛中的“魔法数字”:为什么总是对 10^9+7 取模?

编程竞赛中常见的模数10^9+7是精心设计的黄金标准:作为大素数,它支持模逆元运算,满足组合数学等计算需求;其数值大小恰好匹配32/64位整数的存储范围,避免溢出;变体如10^9+5可能提示解法无需逆元,998244353则适用于数论变换。这个数字完美结合了数学严谨性与工程实用性,是算法竞赛中的重要工具。

2025-09-16 17:02:02 876

原创 贪心?DP?

问题可以通过。

2025-03-31 21:18:01 1010

原创 贪心和DP的区别是什么?

贪心算法可以看作DP在“局部最优性恒成立”时的特例,但大多数情况下,贪心策略无法保证全局最优(如非贪心选择性问题)。贪心是“短视但高效”的单向选择,DP是“全面但复杂”的系统穷举。:DP会系统地遍历所有可能的子问题(如通过状态转移方程),而贪心只选“当前最优”。:DP的状态转移可能依赖多个前驱状态(如背包问题),而贪心的选择是单向的。:贪心确实是局部最优推进,DP确实依赖子问题解(DAC+记忆化)。:通过递归分解问题,记录子问题的解(记忆化),避免重复计算。:DP能解决的问题更广泛,尤其是当问题需要。

2025-03-31 19:06:43 626

原创 LeetCode Top Interview 150 - Linked List

Alinkedlistisalineardatastructureconsistingofaseriesofnodes,whereeachnodecontainsdataandapointertothenextnode(inasinglylinkedlist)orbothpointerstothenextnodeandthepreviousnode(inadoublylinkedlist).

2025-01-18 17:52:34 1213

原创 LeetCode Top Interview 150 - Stack

Whenever you encounter problems that involve nested structures, require backtracking, or need to maintain a specific order of operations, consider using a stack as your primary data structure.

2025-01-13 20:19:56 1130

原创 LeetCode Top Interview 150 - Intervals

When tackling interval problems, several techniques can be particularly effective.

2025-01-10 14:06:19 1125

原创 LeetCode Top Interview 150 - Hashmap

In this chapter, there are several problems that are rather straightforward and possess numerous approaches. As a result, those questions have been omitted herein.

2025-01-09 20:58:04 575

原创 LeetCode Top Interview 150 - Matrix

This is merely my personal review of all the typical problems that constitute the mindset for Data Structures and Algorithms (DSA). python solution provided

2025-01-08 21:01:27 678

原创 Best open-source softwares on Windows platform

These are my favorite open-source softwares on the Windows platform.

2025-01-07 20:46:56 763

原创 LeetCode Top Interview 150 - Sliding Window

This is merely my personal review of all the typical problems that constitute the mindset for Data Structures and Algorithms (DSA). python solution provided

2025-01-07 15:10:22 910

原创 LeetCode Top Interview 150 - Two Pointers

This is merely my personal review of all the typical problems that constitute the mindset for Data Structures and Algorithms (DSA). python solution provided

2025-01-06 11:26:58 1011

原创 LeetCode Top Interview 150 - Array and String

This is merely my personal review of all the typical problems that constitute the mindset for Data Structures and Algorithms (DSA). python solution provided

2025-01-04 10:10:24 1213

原创 Why Learning Data Structures and Algorithms

I am a Double Degree Engineer in Architecture and Civil Engineering. I possess a proficient level of proficiency in using Grasshopper, which is a highly advanced and cutting-edge tool in the fields of Visual Design and parametric modeling.During my postgra

2025-01-01 21:15:51 813

原创 Projects 2023

This is my personal archive for the projects I've done during 2023

2025-01-01 20:28:35 344

原创 Projects 2024

This is my personal archive for the projects I've done during 2024.

2025-01-01 20:20:45 348

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除