- 博客(4)
- 收藏
- 关注
原创 [LeetCode]First Bad Version
You are a product manager and currently leading a team to develop a new product. Unfortunately, the latest version of your product fails the quality check. Since each version is developed based on the
2015-09-30 12:35:20 269
原创 [LeetCode]Perfect Squares
Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, ...) which sum to n.For example, given n = 12, return 3 because 12 = 4 + 4 + 4; given n =
2015-09-30 10:46:22 664
原创 [16腾讯在线笔试题1]-GrayCode
在一组树的编码中,若任意两个相邻的代码只有一位二进制不同,则称这种编码为格雷码(GrayCode)。请编写一个函数,使用递归的方法生成N位的格雷码并且保证这个函数的健壮性。看到题目开始确实没有思路,不妨我们先画一下格雷码树结构。3位格雷码。 0 1
2015-09-06 22:01:43 556
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人