LINK TO PROBLEM :http://www.spoj.com/problems/EGYPIZZA/
i have solved above problem using frequency array but i read in comments other approaches using set,map,greedy. What are different solution to this problem?
LINK TO PROBLEM :http://www.spoj.com/problems/EGYPIZZA/
i have solved above problem using frequency array but i read in comments other approaches using set,map,greedy. What are different solution to this problem?