← 返回 instacart 的题目列表Decode Password from File
类型:online_judge
Write a program that reads a password byte by byte from a file. The first password is always valid, and encountering a duplicated index indicates the start of the second password. Ensure the program can loop to read passwords from the file.
Example
Input
File contents: [1,2,3,1,5,6]
Output
First Password: [1,2,3]