🌐 AI搜索 & 代理 主页
Skip to content

Day 162 #335

@vaskoz

Description

@vaskoz

Good morning! Here's your coding interview problem for today.

This problem was asked by Square.

Given a list of words, return the shortest unique prefix of each word. For example, given the list:

* dog
* cat
* apple
* apricot
* fish

Return the list:

* d
* c
* app
* apr
* f

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions