当前位置:网站首页>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
边栏推荐
- Common shortcut keys in PCB
- 分布式事务(Seata) 四大模式详解
- Plane vector addition
- [opengl] bone animation blending effect
- Find books ()
- Showmebug entered Tencent conference, opening the era of professional technical interview
- Tonybot Humanoïde Robot Infrared Remote play 0630
- retrofit
- 表单文本框的使用(一) 选择文本
- [qingniaochangping campus of Peking University] in the Internet industry, which positions are more popular as they get older?
猜你喜欢
![Luogu p5018 [noip2018 popularization group] symmetric binary tree problem solution](/img/89/da1a3a38e02671628f385de0f30369.png)
Luogu p5018 [noip2018 popularization group] symmetric binary tree problem solution

To improve efficiency or increase costs, how should developers understand pair programming?

复合类型(自定义类型)

Zzuli:1053 sine function

ASTC texture compression (adaptive scalable texture compression)

Implement Gobang with C language

On MEM series functions of C language

Use of form text box (I) select text

Sub-GHz无线解决方案Z-Wave 800 系列ZG23 soc和ZGM230S模块

Adc128s022 ADC Verilog design and Implementation
随机推荐
Zzuli:1058 solving inequalities
牛客 BM83 字符串變形(大小寫轉換,字符串反轉,字符串替換)
NOI OPENJUDGE 1.5(23)
Analysis of gene family characteristics - chromosome location analysis
分布式事务(Seata) 四大模式详解
Fundamentals of PHP deserialization
Qt—绘制其他东西
Luogu p3065 [usaco12dec]first! G problem solution
ASTC texture compression (adaptive scalable texture compression)
Protobuf and grpc
洛谷P4047 [JSOI2010]部落划分 题解
创业团队如何落地敏捷测试,提升质量效能?丨声网开发者创业讲堂 Vol.03
Vs+qt application development, set software icon icon
[opengl] pre bake using computational shaders
Zhejiang University Edition "C language programming (4th Edition)" topic set reference ideas set
Yolov5进阶之七目标追踪最新环境搭建(二)
Paper sharing: generating playful palettes from images
Piwigo 2.7.1 sqli learning
Devaxpress: range selection control rangecontrol uses
The latest M1 dedicated Au update Adobe audit CC 2021 Chinese direct installation version has solved the problems of M1 installation without flash back!