- Algorithm Review - Prefix Sum and Difference Array
Review of 1D/2D prefix sums and difference arrays for range sum queries and range updates.
3 min read en - XOR Array - Codeforces Solution
Construct a positive integer array where exactly the specified subarrays have XOR value zero, using prefix XOR with unique repetition.
4 min read en - CS229 Machine Learning - Introduction and Overview
Stanford CS229 Machine Learning course notes covering supervised learning, unsupervised learning, and reinforcement learning.
3 min read en - CS229 Machine Learning - Linear Regression
Introduction to linear regression: variable definitions, probabilistic interpretation, LMS algorithm (gradient descent), and locally weighted regression.
4 min read en - CS229 Machine Learning - Logistic Regression
From regression to classification: logistic regression model, sigmoid function, and multi-class classification.
1 min read en - CS229 Machine Learning - Generalized Linear Models
Introduction to exponential family distributions and generalized linear models, unifying linear regression and logistic regression.
1 min read en - The Curse of the Frog - Codeforces Solution
A frog jumps on a number line with max distance and periodic penalty per jump type. Find the minimum penalty count to reach the target.
5 min read en - MEX Reordering - Codeforces Solution
Rearrange an array so that no prefix and suffix share the same MEX value. Key insight: analyze occurrences of zero and one.
5 min read en
Blog
Page 2 - Showing 8 of 17 posts
View all posts by years →