Content deleted Content added
→top: prefix (computer science) would be the most appropriate link, but it redirects here; likewise for suffix (computer science) |
added explanation for "" substring Tags: Mobile edit Mobile app edit iOS app edit |
||
Line 6:
'''Prefixes''' and '''suffixes''' are special cases of substrings. A prefix of a string <math>S</math> is a substring of <math>S</math> that occurs at the beginning of <math>S</math>; likewise, a suffix of a string <math>S</math> is a substring that occurs at the end of <math>S</math>.
The list of all substrings of the string "''apple''" would be "''apple''", "''appl''", "''pple''", "''app''", "''ppl''", "''ple''", "''ap''", "''pp''", "''pl''", "''le''", "''a''", "''p''", "''l''", "''e''", "" (note the [[empty string]] at the end).
== Substring ==
|