#algorithms
Read more stories on Hashnode
Articles with this tag
Two dynamic programming techniques to solve Leetcode 120. Triangle. One has space complexity O(n^2). The other is O(n). · Problem statement You're...
An example of using a sliding window approach and an unordered map to track character positions · Problem statement Given a string s, find the length of...
A simple C++ solution to Leetcode 1695. Maximum Erasure Value using a sliding window approach and prefix sums. · Problem statement You are given an array...
A step-by-step approach to effectively solve coding challenges, prepare for coding interviews, and land dev jobs. · In the programming world, coding...
An example of dynamic programming · Problem statement You're given an m x n grid represented as an integer array called grid. In this grid, there is a...
How to generate the power set · Problem Statement Given an integer array nums of unique elements, return all possible subsets (the power set). The...