/**第一题
 * 说明:获取一个数字数组中的最大值
 * 示例:
 * 输入:[1, 5, 3, 9, 2, 7]
 * 输出:9
 */
//第二题
// sum(0.1, 0.2) === 0.3
function sum(a, b){
  
}
/**第三题
 * 提取子集
 * 说明:实现一个方法,可以将数组项中的children提取到数组项同级。
 * 示例:
 *   var list = [{name: 'a', children: [{name: 'b'}, {name: 'c'}]}, { name: 'd'}];
 *   extract(list);  // 返回 [{name: 'a'}, {name: 'b'}, {name: 'c'}, {name: 'd'}]
 *   var list = [{name: 'a', children: [{name: 'b'}]}, { children: [{ name: 'c'}] }];
 *   extract(list);  // 返回 [{name: 'a'}, {name: 'b'}, {name: 'c'}]
 */