Tag
array
15 posts tagged with array.
-
Finding the contiguous subarray with the largest product using dynamic programming tracking both min and max in Python
-
A Python matrix simulation using direction vectors and in-place visit markers
-
An O(n²) Python DP solution that tracks the longest increasing subsequence ending at each index
-
A Python two-pointer solution that moves the height limiting the current area
-
Grouping anagram strings by using each sorted string as the hash map key
-
A one-pass Python solution that tracks the lowest earlier price to calculate maximum profit
-
A Python binary search solution for the minimum value in a rotated sorted array
-
A Python solution using Kadane's algorithm to find the maximum sum of a contiguous subarray
-
A Python backtracking solution to Combination Sum using a start index and pruning
-
A 3Sum solution using sorting and a two-sum-style hash map approach.
-
A left-product and right-product solution for Product of Array Except Self.
-
Using a set to count each consecutive sequence only from its starting point
-
Using frequency counting and bucket arrays to return the top k frequent elements
-
Comparing brute force, two-pass hash map, and one-pass hash map approaches for Two Sum
-
Comparing brute force, sorting, and hash set approaches for duplicate detection