
Yao H. Wang
Tutorials and notes on algorithms, machine learning, and AI engineering, with a focus on mathematical clarity, efficient coding practices, and real-world implementation.
-
LeetCode 3: Longest Substring Without Repeating Characters – Solution Approaches
Problem Overview Given a string s, find the length of the longest substring without repeating characters. Digits are in normal order; we scan left-to-right. Solution 1: Brute Force (Worst)…
-
LeetCode 2: Add Two Numbers – Solution Approaches
Problem Overview You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order, and each node contains a single digit. Add the…
-
LeetCode 1: Two Sum – Solution Approaches
Problem Overview Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. Solution 1: Brute Force…
