13 lines
207 B
TypeScript
13 lines
207 B
TypeScript
// @leet start
|
|
function lengthOfLongestSubstring(s: string): number {
|
|
let max = 0;
|
|
|
|
s.split("").map((value, index) => {
|
|
const seenString = new Set();
|
|
while (true) { }
|
|
});
|
|
|
|
return max;
|
|
}
|
|
// @leet end
|