Available question text
Given a digit string and an integer m, return an array marking which prefixes of the string form numbers divisible by m; the core challenge is to efficiently check divisibility for each prefix by maintaining the running remainder (mod m) to handle large prefixes in O(n) time.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 2575. Find the Divisibility Array of a String
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source