上一页 1 2 3 4 5 6 ··· 46 下一页
摘要: Given 2 n + 2 numbers, every numbers occurs twice except two, find them. Have you met this question in a real interview? Yes Example Given [1,2,2,3,4... 阅读全文
posted @ 2015-09-17 16:18 卖程序的小歪 阅读(106) 评论(0) 推荐(0) 编辑
摘要: Given string A representative a positive integer which has N digits, remove any k digits of the number, the remaining digits are arranged according t... 阅读全文
posted @ 2015-09-17 15:06 卖程序的小歪 阅读(140) 评论(0) 推荐(0) 编辑
摘要: Given a (decimal e.g. 3.72) number that is passed in as a string, return the binary representation that is passed in as a string. If the fractional p... 阅读全文
posted @ 2015-09-15 00:25 卖程序的小歪 阅读(183) 评论(0) 推荐(0) 编辑
摘要: Calculate the an % b where a, b and n are all 32bit integers. Have you met this question in a real interview? Yes Example For 231 % 3 = 2 For 1001000... 阅读全文
posted @ 2015-09-14 00:37 卖程序的小歪 阅读(133) 评论(0) 推荐(0) 编辑
摘要: Given two 32 bit numbers, N and M, and two bit positions, i and j. Write a method to set all bits between i and j in N equal to M (e g , M becomes a ... 阅读全文
posted @ 2015-09-13 23:30 卖程序的小歪 阅读(390) 评论(0) 推荐(0) 编辑
摘要: Determine the number of bits required to flip if you want to convert integer n to integer m. Have you met this question in a real interview? Yes Exam... 阅读全文
posted @ 2015-09-13 22:46 卖程序的小歪 阅读(394) 评论(0) 推荐(0) 编辑
摘要: Given n pieces of wood with length L[i] (integer array). Cut them into small pieces to guarantee you could have equal or more than k pieces with the ... 阅读全文
posted @ 2015-09-13 12:23 卖程序的小歪 阅读(752) 评论(0) 推荐(0) 编辑
摘要: Implement int sqrt(int x). Compute and return the square root of x. Have you met this question in a real interview? Yes Example sqrt(3) = 1 sqrt(4) =... 阅读全文
posted @ 2015-09-12 23:22 卖程序的小歪 阅读(165) 评论(0) 推荐(0) 编辑
摘要: For a given sorted array (ascending order) and a target number, find the first index of this number in O(log n) time complexity. If the target number... 阅读全文
posted @ 2015-09-12 23:01 卖程序的小歪 阅读(115) 评论(0) 推荐(0) 编辑
摘要: Given an integer array, find a subarray with sum closest to zero. Return the indexes of the first number and last number. Have you met this question ... 阅读全文
posted @ 2015-09-12 22:29 卖程序的小歪 阅读(117) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 46 下一页