Continuous/ranged coin change problem modified version

Comment hidden because of low score. Click to expand.
of 0 vote

by inspecting the data the possible continuous intervals that can be generated
using exactly 1 button press:
(1):[300,310] (2):[400,420] (3):[500,515]
using exactly 2 presses:
(1+2):[700,730] (1+3):[800,825] (2+3):[900,935]
and with 3 presses:
for a given [min,max] interval you have to tell if it is a subset of the above intervals. (which can be amenable by a simple linear search)

- asa czylabson November 07, 2016 | Flag Reply

Add a Comment

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.


is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More


CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More