Fork me on GitHub
上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 37 下一页
摘要: The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Given two integers x and y, calcul 阅读全文
posted @ 2017-04-28 23:04 hellowOOOrld 阅读(270) 评论(0) 推荐(0)
摘要: 最近需要得到某个文件夹下所有文件名,于是就上网上查了查,得到如下的解决方案最多: 而且查到的最早的版本是这个:http://blog.csdn.net/cxf7394373/article/details/7195661. 但是放到我自己vs里却总是不行,运行到 就崩溃。 原因自己电脑系统为win1 阅读全文
posted @ 2017-04-28 20:28 hellowOOOrld 阅读(786) 评论(0) 推荐(0)
摘要: Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximu 阅读全文
posted @ 2017-04-26 21:29 hellowOOOrld 阅读(153) 评论(0) 推荐(0)
摘要: Given a 2D board and a word, find if the word exists in the grid.The word can be constructed from letters of sequentially adjacent cell,where "adjacen 阅读全文
posted @ 2017-04-23 11:22 hellowOOOrld 阅读(227) 评论(0) 推荐(0)
摘要: Given a binary tree, return the tilt of the whole tree.The tilt of a tree node is defined as the absolute difference between the sum of all left subtr 阅读全文
posted @ 2017-04-23 11:16 hellowOOOrld 阅读(317) 评论(0) 推荐(0)
摘要: Given an array of 2n integers, your task is to group these integers into n pairs of integer,say (a1, b1), (a2, b2), ..., (an, bn) which makes sum of m 阅读全文
posted @ 2017-04-23 11:14 hellowOOOrld 阅读(466) 评论(0) 推荐(0)
摘要: Given a positive 32-bit integer n, you need to find the smallest 32-bit integer which has exactly the same digits existing inthe integer n and is grea 阅读全文
posted @ 2017-04-09 14:17 hellowOOOrld 阅读(243) 评论(0) 推荐(0)
摘要: There is a brick wall in front of you. The wall is rectangular and has several rows of bricks.The bricks have the same height but different width. You 阅读全文
posted @ 2017-04-09 13:34 hellowOOOrld 阅读(1422) 评论(0) 推荐(0)
摘要: Given a string, you need to reverse the order of characters in each word within a sentence whilestill preserving whitespace and initial word order.Exa 阅读全文
posted @ 2017-04-09 13:23 hellowOOOrld 阅读(481) 评论(0) 推荐(0)
摘要: Given an array of integers and an integer k, you need to find the number of unique k-diff pairs in the array. Here a k-diff pair is defined as an inte 阅读全文
posted @ 2017-04-08 23:26 hellowOOOrld 阅读(229) 评论(0) 推荐(0)
上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 37 下一页