leetcode
bigggnu
这个作者很懒,什么都没留下…
展开
-
leetcode :Valid Parentheses
leetcode 题目如下: Valid Parentheses: Given a string containing just the characters ‘(‘, ‘)’, ‘{‘, ‘}’, ‘[’ and ‘]’, determine if the input string is valid.The brackets must close in the correct order, “原创 2015-05-03 22:03:07 · 263 阅读 · 0 评论 -
leetcode :Number of 1 Bits
leetcode 题目如下 : number of 1 bits : Write a function that takes an unsigned integer and returns the number of ’1’ bits it has (also known as the Hamming weight).For example, the 32-bit integer ’11’ ha原创 2015-05-03 21:59:05 · 355 阅读 · 0 评论 -
leetcode : count and say
leetcode 题目如下: count and say: The count-and-say sequence is the sequence of integers beginning as follows: 1, 11, 21, 1211, 111221, …1 is read off as “one 1” or 11. 11 is read off as “two 1s” or 21原创 2015-05-03 22:07:36 · 403 阅读 · 0 评论