摘要:
LeetCode——Word Break Question Given a non empty string s and a dictionary wordDict containing a list of non empty words, determine if s can be segment 阅读全文
摘要:
http://blog.csdn.net/dingyuanpu/article/details/5852825 阅读全文
摘要:
类型转换有c风格的,当然还有c++风格的。c风格的转换的格式很简单(TYPE)EXPRESSION,但是c风格的类型转换有不少的缺点,有的时候用c风格的转换是不合适的,因为它可以在任意类型之间转换,比如你可以把一个指向const对象的指针转换成指向非const对象的指针,把一个指向基类对象的指针转换 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
LeetCode——Find the Difference Question Given two strings s and t which consist of only lowercase letters. String t is generated by random shuffling st 阅读全文
摘要:
LeetCode——Maximum Depth of Binary Tree Question Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longes 阅读全文