You are given a string num
that represents a large number. A good number is defined as:
Your task: Return the largest good number as a string. If there is no such substring, return ""
(an empty string).
Example 1
Input: num = "6777133339"
Output: "777"
Example 2
Input: num = "2300019"
Output: "000"
Example 3
Input: num = "42352338"
Output: ""
3 <= num.length <= 1000
num
consists only of digits 0-9
https://drawtocode.vercel.app/problems/largest-3-repeated-digit-number-in-a-string
Loading component...
Loading component...