Skip to main content

Знайти рядки з підрядком

JUNIOR
EPAM

Дано масив рядків та підрядок, поверніть всі рядки, які містять цей підрядок.

Пошук має бути чутливим до регістру.

Examples:

Input 1:{"arr":["hello","world","help","hi"],"substring":"he"}
Output 1:["hello","help"]
Input 2:{"arr":["test","best","rest"],"substring":"est"}
Output 2:["test","best","rest"]

Loading editor...

Run your code to see results

Click the Run button above