Spaces:
Sleeping
Sleeping
File size: 1,225 Bytes
1b74229 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
lite_metadata:
gradio_version: 3.32.0
class_string: gradio.interface.Interface
kwargs:
title: Gradio Webapp
description: Given a string s, find the length of the longest substring without
repeating characters
article: null
thumbnail: null
theme: gradio/seafoam
css: null
allow_flagging: never
inputs:
class_string: liteobj.listify
args:
- class_string: gradio.components.Textbox
kwargs:
label: s
outputs:
class_string: liteobj.listify
args:
- class_string: gradio.components.Number
kwargs:
label: output
precision: 0
fn:
class_string: gradify.gradify_closure
kwargs:
argmaps:
class_string: liteobj.listify
args:
- label: s
postprocessing: null
func_kwargs: {}
ldict:
class_string: gradify.exec_to_dict
kwargs:
source: "def lengthOfLongestSubstring(s):\n seen = {}\n start = 0\n\
\ max_len = 0\n for end in range(len(s)):\n if s[end] in\
\ seen:\n start = max(start, seen[s[end]] + 1)\n seen[s[end]]\
\ = end\n max_len = max(max_len, end - start + 1)\n return max_len\n"
|