[Leetcode] two sum decorators

A decorator is just a callable that takes a function and returns a new one, often a wrapper, letting us extend behavior while keeping functions clean and following the Open–Closed Principle.

Coding

[Leetcode] two sum type annotation

Several examples are presented to clarify the definition and application of type annotations in Python.

Coding

[Leetcode] two sum

Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target.

Coding

无名树

院角那株不知名的树,自漫长阴雨时节便浸在阴翳里。我总在窗前半掩着帘,看它瘦削的枝桠将天色裁成淡墨的写意,恍若故纸堆里褪了色的水墨小品。

随想Reflections​

Self Adjoint Operators

We consider the radial differential operator for a fixed angular mode \(n\), \[ L_n=\frac{d^2}{d r^2}+\frac{1}{r} \frac{d}{d r}-\frac{n^2}{r^2}, \quad r \in(0, \infty) \]

Mathematics

[Kelvin Wedge] ingredients Bessel and Hankel function

Hankel–Bessel Ladder Identities Claim. For suitable \(f_m(r)\) and \(k>0\), \[ \mathscr{H}_{m+1}\!\left[\left(\partial_r-\frac{m}{r}\right) f_m\right](k) =-\,k\,\hat{f}_m(k). \tag{1} \] Here \(\hat f_m(k):=\mathscr H_m[f_m](k)=\displaystyle\int_0^\infty f_m(r)\,J_m(kr)\,r\,dr\).

fluid mechanics
12311