Major League Baseball (MLB) Interview Question: Write a program that prints a... | Glassdoor

Interview Question

Software Engineer Interview New York, NY

Write a program that prints all the ways to make $1 from a

  penny, nickel, dime, and quarter.

Interview Answer

1 Answer


depth first search is the only solution here it seems

if they ask about the number of ways, i would approach use dynamic programming

Anonymous on Mar 29, 2018

Add Answers or Comments

To comment on this, Sign In or Sign Up.