上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 30 下一页
摘要: 阅读全文
posted @ 2015-08-25 10:02 Rosanne 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 答案:int max = ((a+b)+abs(a-b))/2; 阅读全文
posted @ 2015-08-25 09:59 Rosanne 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-08-25 09:55 Rosanne 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 优先级运算符含义运算对象个数结合顺序1()初等运算符自左至右[]下标运算符->指向结构体成员运算符.结构体成员运算符2!单目运算符1(单目运算符)自右至左~++---负号*指针运算符&sizeof(类型)类型转换运算符3*乘法算数运算符2(双目运算符)自左至右/%4+2(双目运算符)自左至右-5>6... 阅读全文
posted @ 2015-08-24 15:40 Rosanne 阅读(231) 评论(0) 推荐(0) 编辑
摘要: PS:注意表达式的运算方向。 阅读全文
posted @ 2015-08-24 15:32 Rosanne 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 答案:第一段21,第二段12PS:注意运算符的优先级。答案:A 阅读全文
posted @ 2015-08-24 15:32 Rosanne 阅读(135) 评论(0) 推荐(0) 编辑
摘要: Description:Implement the following operations of a queue using stacks.push(x) -- Push element x to the back of queue.pop() -- Removes the element fro... 阅读全文
posted @ 2015-08-23 11:13 Rosanne 阅读(163) 评论(0) 推荐(0) 编辑
摘要: Description:Given a binary tree, return all root-to-leaf paths.For example, given the following binary tree: 1 / \2 3 \ 5All root-to-leaf pat... 阅读全文
posted @ 2015-08-23 10:31 Rosanne 阅读(185) 评论(0) 推荐(0) 编辑
摘要: Description:Given an array of numbersnums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the tw... 阅读全文
posted @ 2015-08-23 10:13 Rosanne 阅读(137) 评论(0) 推荐(0) 编辑
摘要: Description:Write a program to check whether a given number is an ugly number.Ugly numbers are positive numbers whose prime factors only include2, 3, ... 阅读全文
posted @ 2015-08-23 09:47 Rosanne 阅读(131) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 30 下一页