注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
岗位是backend sde,求大米打赏看面经啦
第一题是写个api
The editor of a sports magazine must create a list of elite clubs in a nation. Use HTTP GET requests to access a database for football clubs (i.e., soccer clubs) via the URL {nation_name}. The database contains the estimated monetary value of each club, referred to as valuation. The query result is paginated and can be further accessed by appending &page={num} to the query string where num is the page number.
The query response from the API includes these fields:- page: the current page
- per_page: the maximum results per page
- total: the total number of records
- total_pages: the total number of pages for the query
- data: an array of JSON objects containing cluis found in the BST or not
Constraints
Code Snippet for Reference (Java)
java import java.io.; ... private static int isPresent(Node root, int val){ / For your reference class Node { Node left, right; int data; Node(int newData) { left = right = null; data = newData; } } */ } ... |