Test Suite has been corrected to NOT allow a vector Input to fill ALL with 2s.
Thank You for identifying this and also that invalid input would Win.
Extract leading non-zero digit
So many choices
vectorization in N
Insert zeros into vector
Mastermind I: Solve all 1296 cases
Prime Sequences: AP-k Minimum Final Value
GJam 2014 China Rd A: Read Phone Number
Solve Quadratic : No * - or key functions permitted
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office