Available question text
Given a digit string s, repeatedly replace it by the sequence of pairwise sums modulo 10 of adjacent digits until only two digits remain, and determine whether those final two digits are equal; because |s| can be up to 1e5, the solution requires computing the final digits efficiently using the combinatorial (Pascal's triangle / binomial coefficient) weights modulo 10 rather than simulating all reductions.
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 3463. Check If Digits Are Equal in String After Operations II
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source