← ALL NOTES
String

2264. Largest 3-Same-Digit Number in String

Given a digit string num, a "good" integer is a substring of three identical consecutive digits. Return the largest such (as a 3-character string), or empty if none. Find the maximum triple of equal…

Loading…