摘要: Given an integer, write an algorithm to convert it to hexadecimal. For negative integer, two’s complement method is used. Note: 题目标签:Bit Manipulation 阅读全文
posted @ 2017-06-28 23:46 Jimmy_Cheng 阅读(321) 评论(0) 推荐(0) 编辑
摘要: We define a harmonious array is an array where the difference between its maximum value and its minimum value is exactly 1. Now, given an integer arra 阅读全文
posted @ 2017-06-28 04:03 Jimmy_Cheng 阅读(396) 评论(0) 推荐(0) 编辑
摘要: Calculate the sum of two integers a and b, but you are not allowed to use the operator + and -. Example:Given a = 1 and b = 2, return 3. 题目标签:Bit Mani 阅读全文
posted @ 2017-06-28 02:38 Jimmy_Cheng 阅读(803) 评论(0) 推荐(0) 编辑