Skip to content

Latest commit

 

History

History
executable file
·
22 lines (10 loc) · 446 Bytes

Longest_Substring_Without_Duplication.md

File metadata and controls

executable file
·
22 lines (10 loc) · 446 Bytes

Longest Substring Without Duplication

Problem Statement

Write a function that takes in a string and that returns its longest substring without duplicate characters. Assume that there will only be one longest substring without duplication.

Sample input:"clementisacap" Sample output:"mentisac"

Explanation

We can use a Stack here

Solution

Check this Python code.