Problem | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Problem

How An array of characters including letters and numbers, and a number in the output of the numbers below Example: Input-> asda45sadart8942sdfger11sdf0 Output -> 45 8942 11 0

27th Dec 2018, 5:59 PM
alireza
alireza - avatar
3 Answers
+ 1
It is easy, you only need to detect all array items, that are digits, "0", "1", "2",..."9", take them away from the array and put them in to a new array.
27th Dec 2018, 10:26 PM
Seb TheS
Seb TheS - avatar
0
Language?
27th Dec 2018, 6:17 PM
HonFu
HonFu - avatar
0
c++
27th Dec 2018, 6:19 PM
alireza
alireza - avatar