~/lc-grind
#66 - Plus One
Jan 7, 2026Increment a large integer represented as an array of digits by one, handling the edge case of carry-overs when a digit is nine.
#9 - Palindrome Number
Jan 6, 2026Determine if an integer reads the same forwards and backwards without converting it to a string.
#201 - Bitwise AND of Numbers Range
Jan 5, 2026Discover the clever bit manipulation trick to efficiently compute the bitwise AND of all numbers in a given range without iterating through every value.
#137 - Single Number II
Jan 2, 2026Find the unique number in an array where every other element appears three times, using linear time and constant space with clever bit manipulation.
#136 - Single Number
Dec 31, 2025Find the unique number in an array where every other element appears twice, using a clever bitwise XOR trick for optimal linear time and constant space.
#67 - Add Binary
Dec 30, 2025Learn how to add two binary strings step-by-step, handling carries just like decimal addition, to return their sum as a binary string.
#373 - Find K Pairs with Smallest Sums
Dec 29, 2025Efficiently find the k smallest sum pairs from two sorted arrays using a min-heap to explore combinations without brute force.
#502 - IPO
Dec 26, 2025Maximize your startup's final capital by strategically selecting up to k projects, using a greedy approach with a priority queue to always pick the highest-profit project you can currently afford.
#215 - Kth Largest Element in an Array
Dec 25, 2025Find the kth largest element in an unsorted array efficiently using a heap or quickselect, without fully sorting the list.
#4 - Median of Two Sorted Arrays
Dec 24, 2025Master the classic "Median of Two Sorted Arrays" problem with an efficient O(log(m+n)) solution using binary search to find the median without merging the arrays.