最长连续不重复子序列
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
Background
给定一个长度为 的整数序列,请找出最长的不包含重复的数的连续区间,输出它的长度。
Format
Input
第一行包含整数 。
第二行包含 个整数(均在 范围内),表示整数序列。
Output
共一行,包含一个整数,表示最长的不包含重复的数的连续区间的长度。
Samples
5
1 2 2 3 5
3
Limitation
2023/03/25 双指针算法-随堂测验
- Status
- Done
- Rule
- Ledo
- Problem
- 10
- Start at
- 2023-3-25 10:00
- End at
- 2023-3-25 11:00
- Duration
- 1 hour(s)
- Host
- Partic.
- 28