校招 未知部门 / 客户端开发 / 一面/二面

[面试日期] 2023-12-03 [面试时长] 未知
[学校背景] 未知 | 未知 [学历背景] 未知
[发布人] 面试之星官方收录
<h2>美团客户端 一面 二面 面筋</h2> <h4>美团 一面</h4><p>实习:</p><ol><li>日志库的替换是自己的想的吗,为什么会加快这么多</li><li>为什么使用protobuf作为压缩选择</li><li>protobuf压缩的原理是什么</li></ol><p>八股</p><ol><li>线程和协程</li><li>进程通信的方式是什么</li><li>线程通信的方式是什么</li><li>死锁的条件是什么</li><li>tcp和udp的差异</li><li>HTTP中get和post的差异</li><li>http如何实现断点续传,如果这个时候客户端收到一般就结束了的话</li><li>https可以被中间人劫持吗</li><li>C++源码到可执行文件</li><li>动态链接和静态链接</li><li>指针和引用的区别</li><li>vector的扩容原理</li><li>如何在高德地图、美团地图、百度地图来回切换</li></ol><p>代码题:</p><pre> const int a; int const a; const int* a; int* const a; // 这些差别是什么 </pre><pre> int *a; float *b; float c; long long d; // 这些sizeof是多少 </pre><pre> struct A{ int* a; char b[10]; int c; float d }; // 这个sizeof是多少 </pre><pre> char *s[3][5] = {&quot;a&quot;,&quot;c&quot;,&quot;grea&quot;}; // sizeof(s)的大小是什么 </pre><pre> #include &lt;iostream&gt; using namespace std; class Base { public: // virtual void makesound() { // cout &lt;&lt; &quot;Base is asking&quot; &lt;&lt; endl; // } void makesound() { cout &lt;&lt; &quot;Base is asking&quot; &lt;&lt; endl; } }; class Derive : public Base { public: void makesound() { cout &lt;&lt; &quot;Derive is asking&quot; &lt;&lt; endl; } }; int main() { Base* b = new Derive(); b-&gt;makesound(); delete b; // Don&#x27;t forget to release the allocated memory } </pre><h4>美团 地图 二面</h4><ul><li>写一下拷贝构造函数</li><li>写一下单例类</li></ul><p></p><p>题外话:还是第一次这样考C++基础的,不错</p>
AI 推荐面试题