Baidu recruit written Replay Spring 2020

https://www.nowcoder.com/discuss/395176?type=post&order=time&pos=&page=1


The first question I do Violence Act TLE framework and then add the memory space is overrun

I by 30%

The answer is

tricky way
lcm is the largest and second-largest reciprocal guarantee gcd is 1

The third title search or memory dp can do
but I have not even had time to adjust to the program no

side is not a good memory but you can press the right point increase in the storage order
which limits the right direction can not point to reduce the non-simplified diagram as a directed map

The second question intends to turn into topk do not do it the first time being no longer available disk filled pit

Guess you like

Origin www.cnblogs.com/Akarinnnn/p/12620869.html