Tencent interview preparation

Fundamentals of Computer Networks

  • The difference between TCP and UDP.

  • How TCP to ensure reliable transmission.

  • TCP congestion control.

  • TCP three-way handshake, waving the four process and the role?

  • Corresponding TCP protocol? Corresponding UDP protocol?

  • http 404 and 500 interface (http status codes)

  • http method

  • http long connection, short connection

  • The process of entering a url

  • The difference between http, https's

  • ping belong to which layer

  • ARP, RARP meaning and difference

  • Forward proxy, reverse proxy: https://www.cnblogs.com/Anker/p/6056540.html

  • How to use TCP UDP

Theory test

  • Why cast test development? Understanding of the test development

  • If the developer is not a bug tell you how to do?

  • Test coin vending machines

  • There is a single-function list reversal (how to design test cases)

  • Test out a two-dimensional code subway station

database

  • Additions and deletions to change search database

  • Index, its role, read millions of queries a database how to do, read the first ten instructions

    The difference between processes and threads, inter-process communication, view the instruction memory and the meaning of the various parameters of concrete inside.

  • Four characteristics, the three major paradigms

operating system

  • linux basic commands: move files, view port numbers to view the last 10 lines of file

  • Memory cleaning algorithm

  • Communication between the difference between processes and threads, communication thread with thread, process

  • How to check under linux thread has not executed a success

  • Two processes simultaneously access a memory address is 0123456, is not a memory

  • How to determine whether a linux command executed successfully

  • How to view cpu utilization.

  • Deadlock

python

  • python knowledge: multi-threaded, multi-process, coroutines; python memory management

  • -m test.py and test.py difference python python

  • Linux execute python script commands

data structure

  • The difference between an array and a linked list

  • Balanced binary tree

  • Heap and stack data structure of difference

Algorithm title

  • Print multiplication table

  • Ring access, taking the maximum number m in the ring, and can not take every last predetermined adjacent

  • To tear an algorithm a function to return a string of the most frequent character and returns its number of occurrences? Talk about algorithm ideas? And how to optimize it?

  • There is a desktop application role is to send a file, how to test?

  • Given a string, this string output that occurs only once and the most forward position (with dict, traversed twice, O (n))

  • A rand6 () function returns an integer between 1-6 uniformly, () rand10 achieved by rand6 () returns an integer uniformly between 1-10.

  • Two strings, find a string in another string index (I thought it was an index of each character,

    After writing, the interviewer said to be the entire string and then change the last write or not comprehensive enough, did not consider exceptions)

  • 100 floors, two glass balls, the ball dropped to experiment since one does not break?

  • Two nodes of a tree seeking their nearest common parent

  • 1 to the number n, and to find all sequences of M, including M itself.

  • Incremental array to find two numbers and for a fixed value.

Guess you like

Origin www.cnblogs.com/anzhengyu/p/11318415.html