I think that’s not called “problem solved” in any serious company, Google included.

Even if you get this problem on some coding platform, your solution will fail on the performance part.

What would really help is to mention something like Boyer-Moore algorithm in the end, for example.

Solutions Architect @Depop, author of “Hands-on Design Patterns with Kotlin” book and “Web Development with Kotlin” course

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Alexey Soshin

Alexey Soshin

Solutions Architect @Depop, author of “Hands-on Design Patterns with Kotlin” book and “Web Development with Kotlin” course

More from Medium

✴️✴️ Strategic Partners ️✴️    👉The Coinpublic Ventures x Cardence

The Demon in the Attic

A monochrome engraving of the upper torso and head of a young woman of vintage origins shown looking to the right. The portrait is set within an ornate monochrome vintage frame, beneath which an attached plaque reads ‘The Demon in the Attic — Lifting the Veil.’

Alone and Doing Nothing