Example 1 · empty
- Arguments
- text
""
- Expected return
0
Test data
- Input
{"text":""}- Expected output
0
func LongestDistinct(text string) intExamples use {"text": "..."}.
The runner calls your functions directly; you do not need to parse JSON.
""
0
{"text":""}0
"abcd"
4
{"text":"abcd"}4
"abcaef"
5
{"text":"abcaef"}5
"zzzzz"
1
{"text":"zzzzz"}1
Checking execution availability…
View inputs and expected outputs. Examples do not run your code.