Let's test your knowledge. Could you figure out the right sequence for this list?
What could be the right order for the contiguous subarray sum algorithm?
Press the below buttons in the order in which they should occur. Click on them again to un-select.
Options:
- Otherwise, store the sum as a key in the hash
- At each step, calculate the running sum
- Iterate through the array
- Try to find the difference of the running sum and the target in the hash