How Many Edges Does an N × M Grid Really Have?While studying BFS/DFS on grids, I came across a question that initially looked trivial: If every cell in an N × M grid is a vertex, and every shared boundary between two cells is an edge, how many e5 min read·prakhargupta.hashnode.devAug 30
DP on Strings: A Competitive Programmer's GuideMaster String DP for Competitive Programming with LCS, Edit Distance, Wildcards, intuition, patterns, and practice problems.33 min read·prakhargupta.hashnode.devJul 9