NOTE & BLOG - All published posts

ALL POSTS

TypeScript Type-Exercises-3

10 January, 2024
TYPESCRIPT

TypeScript Type-Exercises 2

There are some type exercise about string literal type.

4 January, 2024
TYPESCRIPT

TypeScript Type-Exercises 1

3 January, 2024
TYPESCRIPT

财新社评:重温「实事求是」的思想路线

本文刊发于 2023 年 12 月 25 日出版的《财新周刊》第 50 期

中国改革开放 45 周年之际,《财新周刊》星期一(12 月 25 日)刊出题为《重温实事求是思想路线》的社论,呼吁在民营经济增长乏力当下,继续坚持实事求是,“直面真问题,方能解决真问题”。该篇社论引发中国内外网络平台广泛讨论,在发布当天即被删除。

1 January, 2024
中文博客
防夹收藏

就任北京大学校长之演说

《就任北京大学校长之演说》是近代教育家蔡元培的演说作品,是蔡元培在 1917 年就任北京大学校长时发表的。这篇就任北京大学校长的就职演讲,开宗明义地对青年学子提出了三点要求:一是抱定宗旨;二是砥砺德行;三是敬爱师友。明确求学目的及办学宗旨,望学子们以身作则,匡正流俗,为天下人之道德楷模。

31 December, 2023
中文博客
文史哲艺

The Master Theorem For Time Complexity

In this article, we will model the time complexity of divide and conquer using mathematical methods, analyze its asymptotic properties, and provide three methods of calculation.

18 December, 2023
ALGORITHM
MATHEMATICS
COMPUTATION

The Bash Game

A pile of stones, two people take turns to take at least 1 stone and at most 2 stones. Whoever gets the last stone loses.

14 December, 2023
ALGORITHM

fast inverse square root

Magic Number - 0x5f3759df

The article introduces an algorithm called Fast Inverse Square Root, which is used to quickly calculate the inverse square root of a floating point number.

8 December, 2023
MATHEMATICS
ALGORITHM

how do computer calculate the log-function

Take the glibc's mindset for example
7 December, 2023
ALGORITHM
MATHEMATICS

Moore's Voting Algorithm for Finding Majority Element

Moore's Voting Algorithm is an algorithm used to find the element that appears more than half the time in an array.

2 December, 2023
ALGORITHM