Skip to content

Interview: Common prefix in string list #302

Open
@aarexer

Description

Расположить в interview/algorithms/easy/common_prefix.md

Дан массив/список строк. Необходимо найти их общий префикс.

Пример:
"flower","flow", "flight". Результат: "fl"
"disappear", "disagreeable", "disbar", "dissect". Результат: "dis"
"intersect", "interstellar", "intervene". Результат: "inter"
"co-pilot", "co-worker", "co-author". Результат: "co-"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    interviewAbout interview tasks

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions