Logistic Regression: When the Output Must Be a ProbabilityBinary classification4 min read·kaushalml.hashnode.devApr 12
Multivariate Linear Regression — From Intuition to AssumptionsIn the previous article, we explored Simple Linear Regression, where a model used one feature to predict an output. But real-world problems rarely depend on a single variable. For example, the price o5 min read·kaushalml.hashnode.devMar 11
From Zero to Gradient Descent: A Deep Dive into Simple Linear RegressionFrom Zero to Gradient Descent5 min read·kaushalml.hashnode.devFeb 26
Top K Frequent Elements — When HashMaps Start Earning Their SalaryGiven an integer array nums and an integer k, return the k most frequent elements within the array. The test cases are generated such that the answer is always unique. Example 1: Input: nums = [1,2,2,2 min read·kaushalm.hashnode.devFeb 26
Scoring a String: Or How I Accidentally Did ASCII Math AgainEver looked at a string and thought: “Yes, today I will subtract characters from each other.” No?Well, LeetCode did. Today’s problem is deceptively simple, which makes it dangerous — because you either: overthink it, or feel suspicious about how ...2 min read·kaushalm.hashnode.devJan 21