An interesting follow-up problem would be multi-digit values for K.
Test suite needs abs.
thank you!
2183 Solvers
Determine if a Given Number is a Triangle Number
322 Solvers
Choose the best fitting dominoes
171 Solvers
Generate a string like abbcccddddeeeee
234 Solvers
Find the position of first minimum value in an integer array with numbers
116 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!