摘要: 标题:Construct Binary Tree from Preorder and Inorder Traversal通过率:26.5难度: 中等Given preorder and inorder traversal of a tree, construct the binary tree.No... 阅读全文
posted @ 2015-03-11 22:03 pku_smile 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 标题:Number of 1 Bits通过率:40.0%难度: 简单Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as theHamming ... 阅读全文
posted @ 2015-03-11 20:29 pku_smile 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 标题:Reverse Words in a String通过率: 14.8% 难度: 中等Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "... 阅读全文
posted @ 2015-03-11 20:24 pku_smile 阅读(131) 评论(0) 推荐(0) 编辑