About 561 results
Open links in new tab
  1. Python program for the Longest Substring Without Repeating Characters

    Jun 21, 2022 · I write my Python program below for this Leetcode problem: Given a string s, find the length of the longest substring without repeating characters. Example 1: Input: s = "abcabcbb" Outpu...

  2. Leetcode longest substring without repeating characters

    Nov 2, 2020 · Runtime: 260 ms, faster than 19.36% of Python3 online submissions for Longest Substring Without Repeating Characters. Memory Usage: 14.4 MB, less than 100.00% of Python3 …

  3. Longest Substring Without Repeating Characters in JS

    May 14, 2019 · The task is taken from leetcode Given a string, find the length of the longest substring without repeating characters. Example 1: Input: "abcabcbb" Output: 3 Explanation: ...

  4. java - Longest substring without repeating characters - Code Review ...

    Sep 21, 2022 · Not only that, I m unsure if the substring () and indexOf () calls are causing the performance to be worse as follows. Runtime: 11 ms, faster than 71.13% of Java online submissions …

  5. "Longest Substring Without Repeating Characters" in Python

    Aug 12, 2018 · I was trying to solve this problem from Leetcode: Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc",

  6. Sliding window to solve "longest substring, no repeating chars"

    Dec 18, 2017 · Question: Longest Substring Without Repeating Characters Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the …

  7. Swift solution to Leetcode “Longest Substring Without Repeating …

    May 4, 2016 · From LeetCode medium 3. Longest Substring Without Repeating Characters: Given a string, find the length of the longest substring without repeating characters. Examples: Given …

  8. Given a string, find the length of the longest substring without ...

    Jul 1, 2018 · Given a string, find the length of the longest substring without repeating characters Ask Question Asked 7 years, 5 months ago Modified 6 years, 5 months ago

  9. Identify the Length of the Longest Substring Without Repeating …

    Oct 7, 2017 · 3 Length of Longest Substring Without Repeating Characters Problem (from Leetcode) Given a string, find the length of the longest substring without repeating characters. Examples Given …

  10. Longest Substring Without Repeating Characters, Haskell

    Nov 5, 2019 · It goes over each position of the string, tries to extend a substring until a repeated character is encountered and maintains the maximum while doing so. The algorithm is O (n^2).