#algorithms
Read more stories on Hashnode
Articles with this tag
Problem Problem_Link Problem Solving Approach To traverse a binary tree in in-order, we use depth-first search (DFS). The problem also requires us...
Problem Problem_Link Problem Solving Approach Traverse through all the numbers in the intervals and store their frequencies in a HashMap. Sort the...
Problem Problem_Link Problem Solving Approach Odd digit numbers have a pattern | 1 | 3 | 5 | 7 | 9 | | --- | --- | --- | --- | --- | | 11 | 13...
Definition of substring A sequence of consecutive characters within a larger string. In other words, it is a smaller string that is written without...
Problem Problem_Link Solution Given: a sorted array Condition: Convert to wave array, where the elements are sorted in wave-like order (higher,...