Tagged in

Algorithms

Leetcode Patterns
Leetcode Patterns
The motive of the articles published here would be to decode common patterns used to solve algorithm problems and gain a clear intuition to how these work.
More information
Followers
5.4K
Elsewhere
More, on Medium

Leetcode Pattern 2 | Sliding Windows for Strings

A fellow redditor from /r/cscareerquestions pointed me to this awesome thread on leetcode discuss which reveals the sliding window pattern for solving multiple string (substring) problems. Today we’ll explore the intuition behind this powerful…


Leetcode Pattern 1 | BFS + DFS == 25% of the problems — part 1

It is amazing how many graph, tree and string problems simply boil down to a DFS (Depth-first search) / BFS (Breadth-first search). Today we are going to explore this basic pattern in a novel way and apply the intuition…