Programming Exercises

Find the longest substring without repeating characters

Hard

Problem Statement

Find the longest substring without repeating characters

Sample Input

"abcabcbb"

Sample Output

abc

Limits

Time: 2s · Memory: 256 MB

Code Editor
00:00
import java.util.*; public class Main { public static String longestUniqueSubstring() { String str = "abcabcbb"; // Your code here return ""; } }
Log in or sign up to run or submit your code.Log inSign up
Input
"abcabcbb"
Expected Output
abc