← Google questions

Partition string into K substrings with digit constraints

Filed under Google

Given a string of digits of length N, partition it into K substrings where each substring starts with an even digit, ends with an odd digit, and has a minimum length of M. Count the number of valid…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Google questions

Collected from public candidate posts and coding forums. Updated Nov 2026.