该文被密码保护。 阅读全文
posted @ 2016-05-22 00:17 三石宝宝 阅读(62) 评论(0) 推荐(1) 编辑
摘要: lc 283 Move Zeroes [283 Move Zeroes][1] Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of 阅读全文
posted @ 2016-05-14 16:01 三石宝宝 阅读(144) 评论(0) 推荐(1) 编辑
摘要: Appreciation to our TA, +7, who designed this task. Client.cpp include include include "Factory.hpp" include "Product.hpp" int main() { UIFactory ui = 阅读全文
posted @ 2016-04-29 09:57 三石宝宝 阅读(267) 评论(1) 推荐(1) 编辑
摘要: lc 242 Valid Anagram [242 Valid Anagram][1] Given two strings s and t, write a function to determine if t is an anagram of s. For example, s = "anagra 阅读全文
posted @ 2016-04-21 22:50 三石宝宝 阅读(235) 评论(1) 推荐(1) 编辑
摘要: lc 231 Power of Two [231 Power of Two][1] Given an integer, write a function to determine if it is a power of two. analysation Easy problem. solution 阅读全文
posted @ 2016-04-21 22:16 三石宝宝 阅读(154) 评论(0) 推荐(1) 编辑
摘要: lc 191 Number of 1 Bits [191 Number of 1 Bits][1] Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also know 阅读全文
posted @ 2016-04-21 16:51 三石宝宝 阅读(185) 评论(0) 推荐(1) 编辑
摘要: lc 263 Ugly Number [lc 263 Ugly Number][1] Write a program to check whether a given number is an ugly number. Ugly numbers are positive numbers whose 阅读全文
posted @ 2016-04-19 13:53 三石宝宝 阅读(176) 评论(0) 推荐(1) 编辑
摘要: lc 258 Add Digits [lc 258 Add Digits][1] Given a non negative integer num, repeatedly add all its digits until the result has only one digit. For exam 阅读全文
posted @ 2016-04-19 10:57 三石宝宝 阅读(162) 评论(0) 推荐(1) 编辑
摘要: lc 292 Nim Game [292 Nim Game][1] You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of yo 阅读全文
posted @ 2016-04-19 10:20 三石宝宝 阅读(188) 评论(0) 推荐(1) 编辑