美团面试题

美团面试题

美团面试题

1.Runtime

2.Runloop

3.内存管理

4.组件化

5.Flutter

6.前端

7.iOS 引用计数和 GC 的区别

参考链接:简书-垃圾回收和自动引用计数

8.算法(二叉树最大深度)

LeetCode 题目链接:二叉树的最大深度

1
2
3
4
5
6
7
8
9
10
11
12
13
var max = function(a, b) {
if (a > b) {
return a;
}
return b;
}

var maxDepth = function(root) {
if (root == null) {
return 0;
}
return max(maxDepth(root.left), maxDepth(root.right)) + 1;
};
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×