当前位置:网站首页>Tencent internship interview sorting
Tencent internship interview sorting
2022-07-03 14:50:00 【III VII】
come from : Tencent interview
one side
Linux Instruction how to check the memory occupation , How to check the occupied port
top
lsof
An array a[20][10] The first address of 100, ask a[11][5] What is the address of
As indicated in the question , Its representatives a[0][0] The address for 100;
So for 100+11410+5*4=560;
Memory storage and insertion of arrays and linked lists
Array storage is continuous , Convenient query , But it is inconvenient to insert ;
Linked list storage is not continuous , It's not convenient to inquire , But easy to insert ;
unordered_map and map The underlying implementation of , And how to choose the usage scenario
unorde_map Implementation based on hash table ;
map Based on black mangrove ;
#include when “” and <> The difference between
#include<>: The compiler looks for the header file directly from the system class library directory :
#include"": Find the project header from the default directory , Current project directory , It is the project engineering document (.vcxproj) directory . If the search fails under the current directory of the project , Then find the header file from the header file reference directory of the project configuration , The reference directory of the so-called project configuration , It is the header file reference directory we set in the project . If the search still fails in the header file reference directory of the project configuration , Then look for the header file from the system class library directory
vector When adding elements , Memory changes and push_back Pointer is used 、 Reference or copy
size()++;
capacity unchanged ;
If it exceeds, allocate 1.5 perhaps 2 Times the size of memory ;
Push_back Copy is used , Class also uses copy
TCP/UDP The difference between
- Whether it's connection oriented
- reliable
- Whether it supports one to many
- Consumed resource size ,
- Head length
TCP How to ensure its reliability
- The checksum
- flow control ( Face two ports )、 Congestion control
- Serial number and confirmation of receipt ;
- Three handshakes, four waves ;
- Over time retransmission
Interprocess communication method
- The Conduit
- Shared memory
- Message queue
- The signal
- Semaphore
- socket Socket
socket Compared with other advantages
Processes on different hosts can communicate ;
The transmission data is byte level , Transfer data can be customized , Small amount of data ( For mobile applications : Low cost )
Short data transmission time , High performance
It is suitable for real-time information interaction between client and server
Can encrypt , Strong data security
Write Bytes next time , That's all for this time 23333
边栏推荐
- Tonybot humanoid robot checks the port and corresponds to port 0701
- [engine development] rendering architecture and advanced graphics programming
- Fundamentals of PHP deserialization
- C string format (decimal point retention / decimal conversion, etc.)
- Luogu p5194 [usaco05dec]scales s solution
- Creation of data table of Doris' learning notes
- Detailed explanation of four modes of distributed transaction (Seata)
- [ue4] material and shader permutation
- [ue4] geometry drawing pipeline
- B2020 分糖果
猜你喜欢
![[ue4] material and shader permutation](/img/8f/7743ac378490fcd7b9ecc5b4c2ef2a.jpg)
[ue4] material and shader permutation

tonybot 人形机器人 查看端口并对应端口 0701

Paper sharing: generating playful palettes from images

pyQt界面制作(登录+跳转页面)

On MEM series functions of C language

Introduction to opengl4.0 tutorial computing shaders

提高效率 Or 增加成本,开发人员应如何理解结对编程?

How to color ordinary landscape photos, PS tutorial

QT program font becomes larger on computers with different resolutions, overflowing controls

How does vs+qt set the software version copyright, obtain the software version and display the version number?
随机推荐
基因家族特征分析 - 染色体定位分析
C language to implement a password manager (under update)
创业团队如何落地敏捷测试,提升质量效能?丨声网开发者创业讲堂 Vol.03
Analysis of gene family characteristics - chromosome location analysis
Happy capital new dual currency fund nearly 4billion yuan completed its first account closing
7-3 rental (20 points)
Zzuli:1047 logarithmic table
Puzzle (016.4) domino effect
406. 根据身高重建队列
puzzle(016.3)千丝万缕
[opengl] advanced chapter of texture - principle of flowmap
tonybot 人形機器人 紅外遙控玩法 0630
Zzuli:1059 highest score
[opengl] pre bake using computational shaders
Niuke bm83 string deformation (case conversion, string inversion, string replacement)
Zzuli:1057 prime number determination
[ue4] Niagara's indirect draw
牛客 BM83 字符串变形(大小写转换,字符串反转,字符串替换)
[opengl] bone animation blending effect
pyQt界面制作(登录+跳转页面)