Longest Subarray With Sum K
Problem Statement
Given an array and a sum k, we need to print the length of the longest subarray that sums to k. (link)
Note all elements are positive.
Brute Force Approach
To identify the longest subarray with a sum of k, we can systematically gene...
chetan77.hashnode.dev3 min read