Interviews
Get started
Prepare
Prepare
New questions added in Nov 2026 ->
Pricing
NEW
Sign in / up
Get full access
Loading workspace…
Data Table
Yangshun Tay
Ex-Meta Staff Engineer
Languages
Difficulty
Medium
Recommended duration to spend during interviews
2
0
mins
20 mins
Given a list of users, build a user data table that displays users in a paginated format.
See what you need to build
Requirements
Table requirements
The user data table should display the following columns: Id, Name, Age, Occupation.
Each row in the table represents a single user.
Pagination requirements
The pagination controls should allow the user to navigate to previous and next pages.
The pagination controls should display the current page number and the total number of pages.
Disable the previous-page control on the first page and the next-page control on the last page.
The table should update dynamically when the user navigates to a different page.
Provide an option to select the number of users displayed per page (e.g., 5, 10, 20).