摘要: 题目: Equations are given in the format A / B = k, where A and B are variables represented as strings, and k is a real number (floating point number). G 阅读全文
posted @ 2016-09-19 14:01 HelloWorld_5 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 题目: Given an encoded string, return it's decoded string. The encoding rule is: k[encoded_string], where the encoded_string inside the square brackets 阅读全文
posted @ 2016-09-08 18:03 HelloWorld_5 阅读(397) 评论(0) 推荐(0) 编辑
摘要: 题目: Write a function that takes a string as input and reverse only the vowels of a string. Example 1:Given s = "hello", return "holle". Example 2:Give 阅读全文
posted @ 2016-04-25 17:33 HelloWorld_5 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 题目: Write a function that takes a string as input and returns the string reversed. Example:Given s = "hello", return "olleh". 阅读全文
posted @ 2016-04-22 20:13 HelloWorld_5 阅读(428) 评论(0) 推荐(0) 编辑
摘要: 题目: The thief has found himself a new place for his thievery again. There is only one entrance to this area, called the "root." Besides the root, each 阅读全文
posted @ 2016-04-22 14:42 HelloWorld_5 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a nested list of integers, implement an iterator to flatten it. Each element is either an integer, or a list -- whose elements may also be i 阅读全文
posted @ 2016-04-21 13:33 HelloWorld_5 阅读(436) 评论(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 a 阅读全文
posted @ 2016-04-20 17:11 HelloWorld_5 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 题目: Given an integer (signed 32 bits), write a function to check whether it is a power of 4. Example:Given num = 16, return true. Given num = 5, retur 阅读全文
posted @ 2016-04-20 17:08 HelloWorld_5 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a positive integer n, break it into the sum of at least two positive integers and maximize the product of those integers. Return the maximum 阅读全文
posted @ 2016-04-20 17:04 HelloWorld_5 阅读(254) 评论(0) 推荐(0) 编辑
摘要: Ubuntu虚拟机下安装reviewboard参考许多资料以及实际操作后,写下如下较为完整的reviewboard安装过程。1.安装virtualbox2.新建64位Ubuntu系统,并安装Ubuntu系统,注意,不要勾选下载时更新选项,否则会安装失败。3.安装Python setuptools ... 阅读全文
posted @ 2015-10-27 15:08 HelloWorld_5 阅读(1982) 评论(0) 推荐(0) 编辑