面试题库
正在加载内容
请稍候,正在为你获取题目资料。
← 返回 amazon 的题目列表
Random Playlist Generator with Constraints
类型:online_judge
Design a playlist class with a function to play a random song and ensure no repetition within the last N songs. Example Input songs=['A', 'B', 'C', 'D'], N=2