1p3a_oj Question

Minimum Copies of a String

Question Details

Given a string a, return the minimum number of copies needed to build string b. You are allowed to 1) either copy the whole string a, or 2) delete a single letter. Implement the optimal solution in te

Full Details

🔒

Unlock all Pinterest questions

Full insider details, leaked discussions, and candidate experiences.

or every company, $100/year →

About This Question

This is a reported interview question from a pinterest interview for a swe role during the coding round.

It covers the following topics: Strings .

Topics