🧩LeetcodeAdd Two Numbers - References in Python (with C++ Comparisons)Python variables do not store raw values directly but instead hold references to objects on the heap. This note builds a practical mental model for how references work, how they…2025-12-10Coding
🧩Leetcodetwo sum decoratorsA 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…2025-11-13Coding
🧩Leetcodetwo sum type annotationSeveral examples are presented to clarify the definition and application of type annotations in Python.2025-11-10Coding
🧩Leetcodetwo sumGiven an array of integers nums and an integer target, return indices of the two numbers such that they add up to target.2025-11-07Coding
🧩note for python ILambda function Lambda functions in Python are small, anonymous functions defined with the lambda keyword rather than with the standard def statement. They allow you to write…2025-04-14Coding