摘要: 题目描述 查找和排序 题目:输入任意(用户,成绩)序列,可以获得成绩从高到低或从低到高的排列,相同成绩 都按先录入排列在前的规则处理。 例示: jack 70 peter 96 Tom 70 smith 67 从高到低 成绩 peter 96 jack 70 Tom 70 smith 67 从低到高 阅读全文
posted @ 2016-08-07 13:01 琴影 阅读(717) 评论(0) 推荐(0) 编辑
摘要: Evaluation of Expression Tree <!-- .entry-header --> Given a simple expression tree, consisting of basic binary operators i.e., + , – ,* and / and som 阅读全文
posted @ 2016-08-07 09:35 琴影 阅读(383) 评论(0) 推荐(0) 编辑
摘要: Next Power of 2 <!-- .entry-header --> Write a function that, for a given no n, finds a number p which is greater than or equal to n and is a power of 阅读全文
posted @ 2016-08-07 09:03 琴影 阅读(469) 评论(0) 推荐(0) 编辑