Kanzhun.com big data interview questions

Kanzhun

Kanzhun.com big data interview questions

 

1. Traverse all objects of Java Map, print key and value

2. There is an online server access log format as follows (use sql and shel to answer the questions)

Time interface ip address

2016-11-09 11:22:05 /api/user/login 110.23.5.33

2016-11-09 11:23:10 /api/user/detail 57.3.2.16

.....

2016-11-09 23:59:40 /api/user/login 200.6.5.166

Ask for the top10 ip address of the api/user/login interface at 14:00 (14-15) on November 9th

3. Given an integer array a, the array has been sorted (not in descending order), and then given an integer target, the writer provides a method to find out where the target appears in a (array subscript k, and Return k: If there is no target in the array a, there must be a position n that can be inserted and the array is still in order. Find this position n and return -1*(n+1).

4. There are three remote methods A, B, and C that achieve the same function, and the return type is also the same. Write a program to provide a method, access these three interfaces at the same time, and use the first returned result to return.

For specific access to methods A, B, and C, pseudo code can be used

Big data training

Guess you like

Origin blog.csdn.net/msjhw_com/article/details/109283340