Leetcode
New problems
4. Median of Two Sorted Arrays
Concepts: Binary Search, Array
Pretty hard problem, had to look up the solution. Solution was understandable but my no means easy to read.
1526. Minimum Number of Increments on Subarrays to Form a Target Array
Concepts: Array
Easy problem, not sure why this was tagged as hard, unless I'm missing something.
995. Minimum Number of K Consecutive Bit Flips
Concepts: Array, Bit Manipulation, Sliding Window
Managed to find a linear time solution but used linear space as well. Wasn't far from the constant space solution, but didn't think to reuse the argument list as space.
Revisited problems
380. Insert Delete GetRandom O(1)
Concepts: Hash Table, Array, Array Compaction
Array compaction is important for memory management and garbage collection, so important problem to solve.
Concepts: Stack, DP, Two Pointers
Different techniques can be used, but had a hard time getting an exact solution for the two pointer solution. LLMs seem to have a hard time giving a good answer.
1552. Magnetic Force Between Two Balls
Concepts: Array, Binary Search, Two Pointers
Highly recommended problem.
1404. Number of Steps to Reduce a Number in Binary Representation to One
Concepts: Bit Manipulation, String
1823. Find the Winner of the Circular Game
Concepts: Dynamic Programming
Hard dynamic programming problem, important to solve.