Problem Link — https://www.hackerrank.com/contests/csindia14-er1/challenges/fill-the-tank
Given an array of positive integers, find whether a particular sum can be made using the array elements. There were Q queries, Q<=10^5.
How is this problem supposed to be solved?
Problem Link : https://www.hackerrank.com/contests/csindia14-er1/challenges/mice-v2 Hey Can you give a rough sketch on how to approach for problem Mice v2.?
Mice V2 editorial is here have a look.
Check out the editorial for fill the tank.
Create segment tree, then traverse it !?
The editorial was released for this problem, check it out.