摘要: Suppose you have N integers from 1 to N. We define a beautiful arrangement as an array that is constructed by these N numbers successfully if one of the following is true for the ith position (1 N: ... 阅读全文
posted @ 2017-09-29 22:39 xiejunzhao 阅读(341) 评论(0) 推荐(0)
摘要: You are given a data structure of employee information, which includes the employee's unique id, his importance value and his direct subordinates' id.For example, employee 1 is the leader of employee ... 阅读全文
posted @ 2017-09-29 22:30 xiejunzhao 阅读(433) 评论(0) 推荐(0)