2
I need a method/algorithm to find in array1
strings of array2
and create a new array (array3
) with all Stings separated from array2
.
For example
array1 = ['azxsdfghjkazxfgtfgt'];
To array2 would look that way:
array2 = ['azx', 'sdf', 'ghjk', 'fgt'];
Already the array3 would look that way:
array3 = ['azx','sdf','ghjk', 'azx', 'fgt', 'fgt'];
I don’t get it... you want to find array1 array2 strings and add them to array2, that’s it?
– Sergio
want to find array1 array2 strings and create a new array with all Stings separated from array2
– Adry
And when a piece is found it can be used for future match? or is removed from the algorithm?
– Sergio
when the piece is found, it has q be used for match, without removing anything from the algorithm
– Adry
My question is if letters from this previous match can be used if they match with others?
– Sergio
this, it can be used with other
– Adry