摘要: 8.2Imagine you have a call center with three levels of employees: respondent, manager, and director. An incoming telephone call must be first allocate... 阅读全文
posted @ 2014-11-04 21:38 linyx 阅读(238) 评论(0) 推荐(0) 编辑
摘要: Implement pow(x, n).快速求幂,注意n是负数的情况。 1 class Solution { 2 public: 3 double pow(double x, int n) { 4 double ans = 1.0; 5 int symbol ... 阅读全文
posted @ 2014-11-04 19:45 linyx 阅读(124) 评论(0) 推荐(0) 编辑
摘要: The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integer n representing the total numb... 阅读全文
posted @ 2014-11-04 16:27 linyx 阅读(142) 评论(0) 推荐(0) 编辑