✨findSolution()
JS ⟩ value ⟩ function ⟩ recursive ⟩ findSolution()
by starting from 1 and repeatedly either + 5 or * 3, an infinite set of numbers can be produced. given a number, tries to find a solution of such additions and multiplications that produces that number.
Last updated