Posts
All the articles I've posted.
-
Adapter Design Pattern
The adapter pattern is a design pattern used to bridge two incompatible interfaces, allowing an existing class interface to be used as another. This article provides an example of using the adapter pattern.
-
Identifying cycle in directed graph
Identifying cycle in directed graph with BFS and DFS
-
Find neighbours in 2D grid
A comprehensive guide to finding neighboring cells in 2D grids using JavaScript, covering both cardinal (4-way) and diagonal (8-way) neighbors. Learn efficient algorithms with clear examples for traditional 2D arrays and optimized 1D array representations.
-
Representing 2D array as 1D array
Representing 2D array as 1D array