上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 23 下一页
摘要: Given a non-empty integer array, find the minimum number of moves required to make all array elements equal, where a move is incrementing a selected e 阅读全文
posted @ 2016-12-21 19:00 Black_Knight 阅读(277) 评论(0) 推荐(0) 编辑
摘要: The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Now your job is to find the total 阅读全文
posted @ 2016-12-21 10:50 Black_Knight 阅读(1412) 评论(0) 推荐(0) 编辑
摘要: Given a non-empty integer array of size n, find the minimum number of moves required to make all array elements equal, where a move is incrementing n  阅读全文
posted @ 2016-11-30 17:21 Black_Knight 阅读(206) 评论(0) 推荐(0) 编辑
摘要: Given a string s and a string t, check if s is subsequence of t. You may assume that there is only lower case English letters in both s and t. t is po 阅读全文
posted @ 2016-11-30 14:13 Black_Knight 阅读(573) 评论(0) 推荐(0) 编辑
摘要: Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representation and r 阅读全文
posted @ 2016-11-29 22:52 Black_Knight 阅读(1161) 评论(0) 推荐(0) 编辑
摘要: Note: This is an extension of House Robber. After robbing those houses on that street, the thief has found himself a new place for his thievery so tha 阅读全文
posted @ 2016-11-29 22:03 Black_Knight 阅读(397) 评论(0) 推荐(0) 编辑
摘要: You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping yo 阅读全文
posted @ 2016-11-29 20:41 Black_Knight 阅读(465) 评论(0) 推荐(0) 编辑
摘要: 对map集合进行排序 今天做统计时需要对X轴的地区按照地区代码(areaCode)进行排序,由于在构建XMLData使用的map来进行数据统计的,所以在统计过程中就需要对map进行排序。 一、简单介绍Map 在讲解Map排序之前,我们先来稍微了解下map。map是键值对的集合接口,它的实现类主要包括 阅读全文
posted @ 2016-11-29 13:13 Black_Knight 阅读(104487) 评论(1) 推荐(4) 编辑
摘要: 91. Decode Ways A message containing letters from A-Z is being encoded to numbers using the following mapping: 91. Decode Ways A message containing le 阅读全文
posted @ 2016-11-24 09:54 Black_Knight 阅读(195) 评论(0) 推荐(0) 编辑
摘要: Given a non-empty string check if it can be constructed by taking a substring of it and appending multiple copies of the substring together. You may a 阅读全文
posted @ 2016-11-16 21:46 Black_Knight 阅读(972) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 23 下一页