摘要: LeetCode——Move Zeroes Question Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non 阅读全文
posted @ 2017-04-03 16:04 清水汪汪 阅读(141) 评论(1) 推荐(1) 编辑
摘要: LeetCode——Construct the Rectangle Question For a web developer, it is very important to know how to design a web page's size. So, given a specific rec 阅读全文
posted @ 2017-04-03 12:02 清水汪汪 阅读(188) 评论(1) 推荐(1) 编辑
摘要: LeetCode——Add Digits Question Given a non negative integer num, repeatedly add all its digits until the result has only one digit. For example: Given 阅读全文
posted @ 2017-04-03 10:16 清水汪汪 阅读(119) 评论(0) 推荐(1) 编辑
摘要: LeetCode—— Invert Binary Tree Question invert a binary tree. Trivia: This problem was inspired by this original tweet by Max Howell: Google: 90% of ou 阅读全文
posted @ 2017-04-03 09:44 清水汪汪 阅读(200) 评论(0) 推荐(1) 编辑
摘要: LeetCode——Sum of Two Integers Question Calculate the sum of two integers a and b, but you are not allowed to use the operator + and . Example: Given a 阅读全文
posted @ 2017-04-03 09:33 清水汪汪 阅读(136) 评论(0) 推荐(1) 编辑