is it correct for 35197? Im getting 5001 instead of inf.
I also get 5001.
10016 and 10081 have another valid answer: 1251 (besides 626). The problem should accept them or request the minimum exponent.
829 Solvers
707 Solvers
Given two strings, find the maximum overlap
461 Solvers
Find perfect placement of non-rotating dominoes (easier)
240 Solvers
Create Volcano (or Atoll) martix. It is an extension of Bullseye matrix problem.
91 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!