+ 1
How to different subsequence and substring
subsequence and substring both of them similar or not (these operator about java code string )
1 Resposta
+ 5
A subsequence is part of the string that does not appear in chronological order.
Example:
↓↓↓ ↓
string = "Sweet potato"
subseq = "weep"
A substring is a part of the string that appears in chronological order.
Example:
↓↓↓
string = "Sweet potato"
subseq = "pot"
Hth, cmiiw