~/lc-grind
#242 - Valid Anagram
Jul 4, 2025Check if two strings are valid anagrams by comparing their character frequencies—perfect for mastering hash tables, string manipulation, or sorting techniques!
#76 - Minimum Window Substring
Jul 3, 2025Find the smallest substring in `s` that contains all characters of `t` (including duplicates), or return an empty string if no such window exists—solved efficiently using a sliding window and hash table approach.
#424 - Longest Repeating Character Replacement
Jul 2, 2025Master the sliding window technique to solve this medium problem: find the longest substring with all identical characters by performing at most `k` replacements in the given string.
#3 - Longest Substring Without Repeating Characters
Jul 1, 2025Master the sliding window technique to efficiently find the length of the longest substring without repeating characters in a given string.
#79 - Word Search
Jun 30, 2025Solve the 'Word Search' problem by using backtracking and DFS to check if a given word can be formed from adjacent letters in an m x n grid without reusing cells.
#48 - Rotate Image
Jun 27, 2025Learn how to rotate an n x n matrix by 90 degrees clockwise in-place, without using extra space, by strategically swapping and transposing elements.
#54 - Spiral Matrix
Jun 26, 2025Traverse an `m x n` matrix in a clockwise spiral order, returning all elements as a single list—perfect for mastering matrix manipulation and boundary handling!
#73 - Set Matrix Zeroes
Jun 25, 2025Learn how to efficiently set entire rows and columns to zero in a matrix when encountering a zero element, with optimal space complexity solutions.
#143 - Reorder List
Jun 24, 2025Learn how to reorder a linked list by interleaving nodes from the beginning and end (L0 → Ln → L1 → Ln-1 → …) using two pointers, a stack, or recursion—a classic medium-difficulty problem!
#19 - Remove Nth Node From End of List
Jun 23, 2025Master the two-pointer technique to efficiently remove the nth node from the end of a linked list in a single pass—perfect for sharpening your linked list manipulation skills!