随笔分类 -  Number

摘要:roman to integer and integer to roman in c++ 阅读全文
posted @ 2014-05-27 08:11 hellogiser 阅读(1638) 评论(0) 推荐(0)
摘要:add two numbers without arithmetic 阅读全文
posted @ 2014-05-24 14:13 hellogiser 阅读(1190) 评论(5) 推荐(1)
摘要:Find number which appears more than half times of array length. 阅读全文
posted @ 2014-05-22 09:21 hellogiser 阅读(441) 评论(0) 推荐(0)
摘要:Calculate a^n in log(n). 阅读全文
posted @ 2014-05-21 18:14 hellogiser 阅读(346) 评论(0) 推荐(0)
摘要:Continuous cards. 阅读全文
posted @ 2014-05-20 14:50 hellogiser 阅读(399) 评论(0) 推荐(0)
摘要:Print 1 to max number of N bits. 阅读全文
posted @ 2014-05-20 14:47 hellogiser 阅读(398) 评论(0) 推荐(0)
摘要:Ugly numbers. 阅读全文
posted @ 2014-05-20 14:45 hellogiser 阅读(390) 评论(0) 推荐(0)
摘要:Find a number which appears once in an array with all the other numbers appear twice. 阅读全文
posted @ 2014-05-20 14:38 hellogiser 阅读(387) 评论(0) 推荐(0)
摘要:Reorder an array so that odd numbers come before even numbers. 阅读全文
posted @ 2014-05-20 14:20 hellogiser 阅读(396) 评论(0) 推荐(0)
摘要:Find continuous sequences between 1 to N whose sum equals to S. 阅读全文
posted @ 2014-05-20 14:11 hellogiser 阅读(308) 评论(0) 推荐(0)
摘要:Number of 1 between 1 to N. 阅读全文
posted @ 2014-05-20 14:07 hellogiser 阅读(332) 评论(0) 推荐(0)
摘要:Josephus problem. 阅读全文
posted @ 2014-05-20 13:27 hellogiser 阅读(257) 评论(0) 推荐(0)
摘要:Find 2 numbers with given sum in sorted array. 阅读全文
posted @ 2014-05-20 13:03 hellogiser 阅读(240) 评论(0) 推荐(0)
摘要:Another way to calculate sum of 1 to N. 阅读全文
posted @ 2014-05-20 11:18 hellogiser 阅读(300) 评论(0) 推荐(0)