← 返回 coinbase 的题目列表Pagination Problem
类型:online_judge
Given a collection of items, design a pagination function that displays k items per page, and return the list of items on the nth page. Assume there may be multiple pagination criteria, you need to provide an implementation to support multiple standard paginations.
Example
Input
items=['a','b','c','d','e','f','g'], k=3, n=1
Output
['a', 'b', 'c']