Sde Interview Questions

16,587 sde interview questions shared by candidates

You are given a string S of length N consisting of digits from ‘0’ to ‘9’. You need to partition the string in ‘K’ substrings such that each substring starts with an even digit and ends with an odd digit. Each substring must be of Length at least equal to ‘M’. Determine the total number of ways in which you can partition the string into ‘K’ substrings. Give answer modulo 1e9+7. Sample: N=9, M=2, K=3, S=’454569421′
avatar

Software Development Engineer (SDE)

Interviewed at Google

4.4
Feb 11, 2024

You are given a string S of length N consisting of digits from ‘0’ to ‘9’. You need to partition the string in ‘K’ substrings such that each substring starts with an even digit and ends with an odd digit. Each substring must be of Length at least equal to ‘M’. Determine the total number of ways in which you can partition the string into ‘K’ substrings. Give answer modulo 1e9+7. Sample: N=9, M=2, K=3, S=’454569421′

Viewing 171 - 180 interview questions

Glassdoor has 16,587 interview questions and reports from Sde interviews. Prepare for your interview. Get hired. Love your job.