Interview Questions
Interview Guides
Experiences
Explore
Get started
Sign in
Interview Guides
Target Sum Subarray | Dataford Interview Questions
All questions
/
Coding
Asked 1mo ago
|
Saviynt
Target Sum Subarray
Medium
Asked at 1 company
Hash Tables
Arrays
Sliding Window
Problem
Given an array of integers, find the longest contiguous subarray with a sum equal to a target value.
Question
Answer
Problem
Given an array of integers, find the longest contiguous subarray with a sum equal to a target value.
Your answer
Edit
Preview
Try one AI text evaluation on us
Get structured feedback, scored against a 4-axis rubric. Premium unlocks unlimited.
0 words
target ~200
Try a free preview
Stuck? Get a hint
Past attempts
Up next
Longest Subarray With Target Sum
Medium
Longest Subarray Sum Target
Hard
Longest Subarray Equals Target
Medium
Next question