注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
第一题SQL,第二题算法dfs,第三题Frontend,第四题写后端API
其中第三题感觉是题目的设置有问题,UI test跑不出来额,不知道其他朋友有没有这个问题
1.
write a query to print the name and the weather and the weather type for each plant that blooms in only one type of weather. the order of output does not matter.
Each row should contain plant name, weather.type.
there are 2 tables
(tables省略)
2. A set of computers need to be connected using ethernet cables. Two computers are said to be connected if they have either a direct or indirect connection to each other via cables. An example of a direct connection would be a cable connecting computers 1 and 2. If computer 2 were then directly connected to computer 3, we would say that computers 1 and 3 are indirectly connected. A cable only connects two distinct computers. No two computers are connected by more than one cable.
Initially, some groups of computers are connected to each other. If some groups of computers are disconnected, one operation may be performed: remove the cable between any two computers and connect any other pair of computers with the cable. Determine the minimum number of operations to connect all the computers. Report -1 as the answer if it is not possible to connect all the computers.
Example:
comp_nodes = 4
comp_edges = 3
c from = [1 1 3]
C_to = [2e location details. The object has the following schema:
*
* city: (String)
country: (String)
region: (String)
*
*
*
Complete the bestUniversityByCountry where given the name of a country as a parameter, return the name of the university with the highest rank in the country specified. If the country does not have a university within the data, return an empty string ("") instead.
Function Description
* Complete the function bestUniversityByCountry in the editor.
* bestUniversityByCountry has the following parameters: string country: name of the country whose universities have to be filtered
* Return string: the highest rated university or an empty string ('"). |