Consider the sequence formed by the multiples of 19:
19, 38, 57, 76, 95, 114, 133, 152, 171, 190, 209, 228,…
A new sequence can be constructed by concatenating the digit to the left of the comma and the digit to the right of the comma:
93, 85, 77, 69, 51, 41, 31, 21, 11, 2, 92,…
Notice that leading zeros are omitted.
Write a function to apply this operation, known as the comma transform, to a sequence.
Solution Stats
Solution Comments
Show comments
Loading...
Problem Recent Solvers4
Suggested Problems
More from this Author329
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!