interviews

Everything you need to know to get the job.

23 articles 64.9k View on GitHub ↗
23 articles
How to Achieve O(1) Insert, Delete, and GetRandom Operations in a Collection

Learn how to achieve O(1) insert, delete, and getRandom operations using a HashMap and ArrayList with the swap-with-last technique. Optimize your collection performance.

algorithm
Mar 4, 2026
Backtracking and Bit Manipulation Approaches for Generating Subsets

Explore backtracking and bit manipulation methods to generate all subsets of an array. Learn efficient recursive and iterative techniques for subset generation.

deep-dive
Mar 4, 2026
How to Solve the Paint House II Problem Using Dynamic Programming

Solve the Paint House II problem efficiently with dynamic programming. Discover the O(nk) time and O(1) space solution by tracking minimum costs. Learn the optimal approach now.

tutorial
Mar 4, 2026
Dynamic Programming Solution for the Decode Ways Problem: A Complete Guide

Learn the dynamic programming solution for the Decode Ways problem. Efficiently count valid letter interpretations of numeric strings in O(n) time using tabulation and a clear guide.

how-to-guide
Mar 4, 2026
How to Implement Wildcard Pattern Matching for Strings in Java

Learn to implement wildcard pattern matching for strings in Java. Explore Trie and Dynamic Programming solutions for single-character and regex patterns from the kdn251/interviews repo.

how-to-guide
Mar 4, 2026
Product of Array Except Self Without Using Division: O(n) Java Solution

Calculate product of array except self in O(n) time and O(1) space using a two-pass algorithm without division. Learn the efficient Java solution.

how-to-guide
Mar 4, 2026
Algorithm for Merging Overlapping Intervals: Greedy Implementation Guide

Master the algorithm for merging overlapping intervals with this greedy implementation guide. Achieve O(N log N) efficiency by sorting and combining.

how-to-guide
Mar 4, 2026
How to Implement an LRU Cache with O(1) Time Complexity in Java

Implement an LRU Cache in Java with O(1) time complexity. Combine HashMap and doubly-linked list for efficient get, put, and eviction operations. Master cache implementation.

how-to-guide
Mar 4, 2026
How to Find the Number of Islands in a 2D Grid Using DFS or BFS

Learn to find the number of islands in a 2D grid using DFS or BFS. Discover efficient graph traversal techniques to count connected land components and avoid double counting.

how-to-guide
Mar 4, 2026
How to Solve the Word Break Problem Efficiently Using DP and Trie

Learn to solve the Word Break problem efficiently using DP and Trie. Achieve O(n·L) time complexity for faster solutions.

how-to-guide
Mar 4, 2026
How to Implement Regular Expression Matching Using Dynamic Programming: A Complete Java Guide

Master regular expression matching with dynamic programming in Java. Build an O(m x n) DP table to handle . and * efficiently. A complete guide for interviews.

how-to-guide
Mar 4, 2026
Dynamic Programming Solution for the House Robber Problem: Complete Guide

Learn the dynamic programming solution for the House Robber problem. Discover how to maximize loot without robbing adjacent houses using a bottom-up approach and recurrence relation.

deep-dive
Mar 4, 2026

Have a question about this repo?

These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:

Share the following with your agent to get started:
curl -s "https://instagit.com/install.md"

Works with
Claude Codex Cursor VS Code OpenClaw Any MCP Client

Maintain an open-source project? Get it listed too →