Why Hashing? To get O(1) insertion and O(1) search. You take a set of elements that are sparsely populated across large domains and you use a...

If you are given an array A with elements [-2,6,4,1,8] and you need to find the sum of subarray. How will you find? Let's say you need to find the...