摘要: 原题 A pupil Tim gets homework to identify whether three line segments could possibly form a triangle. However, this assignment is very heavy because th 阅读全文
posted @ 2017-07-20 17:23 l.shane 阅读(842) 评论(0) 推荐(0) 编辑
摘要: 原题 Given a non empty binary tree, return the average value of the nodes on each level in the form of an array. Example 1: Input: 3 / \ 9 20 / \ 15 7 O 阅读全文
posted @ 2017-07-20 16:36 l.shane 阅读(283) 评论(0) 推荐(0) 编辑
摘要: 原题 In MATLAB, there is a very useful function called 'reshape', which can reshape a matrix into a new one with different size but keep its original da 阅读全文
posted @ 2017-07-20 14:05 l.shane 阅读(167) 评论(0) 推荐(0) 编辑