Introduction
Imagine you want to quickly find if a word or pattern appears inside a long text. Searching every time from the start can be slow. Suffix arrays help solve this by organizing all possible endings of the text in a way that makes searching fast and easy.