Skip to content

Commit 0ec8e07

Browse files
committed
feat 111
1 parent 9b5df13 commit 0ec8e07

File tree

1 file changed

+15
-23
lines changed

1 file changed

+15
-23
lines changed

README.md

Lines changed: 15 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212

1313

1414
## 今日面试题
15-
2019-07-19
15+
2019-07-23
1616

17-
> 109 题:编程题
17+
> 111 题:编程题,写个程序把 entry 转换成如下对象
1818
>
1919
> ```js
2020
> var entry = {
@@ -30,43 +30,35 @@
3030
> e: 'ae'
3131
> }
3232
> }
33-
> 写个程序把entry转换成如下对象
34-
> var output = {
33+
>
34+
> // 要求转换成如下对象
35+
> var output = {
3536
> 'a.b.c.dd': 'abcdd',
3637
> 'a.d.xx': 'adxx',
37-
> 'a.e': 'ae'
38+
> 'a.e': 'ae'
3839
> }
39-
> ```
40-
<br/>
40+
```
4141
42-
2019-07-22
4342

44-
> 第 110 题:编程题,请写一个函数,完成以下功能
45-
>
46-
> 输入
47-
> '1, 2, 3, 5, 7, 8, 10'
48-
> 输出
49-
> '1~3, 5, 7~8, 10'
5043

51-
解析:[第 110 题](https://github.com/Advanced-Frontend/Daily-Interview-Question/issues/201)
44+
解析:[111](https://github.com/Advanced-Frontend/Daily-Interview-Question/issues/206)
5245

5346
<br/>
5447

5548

5649

5750

5851
## 本周汇总
59-
2019-07-18
52+
2019-07-22
6053

61-
> 第 108 题:考虑到性能问题,如何快速从一个巨大的数组中随机获取部分元素。
54+
> 110 题:编程题,请写一个函数,完成以下功能
6255
>
63-
> 比如有个数组有100K个元素,从中不重复随机选取10K个元素。
64-
65-
66-
67-
解析:[第 107 题](https://github.com/Advanced-Frontend/Daily-Interview-Question/issues/188)
56+
> 输入
57+
> ``'1, 2, 3, 5, 7, 8, 10'``
58+
> 输出
59+
> ``'1~3, 5, 7~8, 10'``
6860
69-
<br/>
61+
解析:[第 110 题](https://github.com/Advanced-Frontend/Daily-Interview-Question/issues/201)
7062

7163
<br/>
7264

0 commit comments

Comments
 (0)