上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 26 下一页
摘要: 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 阅读全文
posted @ 2017-06-07 16:25 清水汪汪 阅读(120) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/dingyuanpu/article/details/5852825 阅读全文
posted @ 2017-05-11 15:13 清水汪汪 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 类型转换有c风格的,当然还有c++风格的。c风格的转换的格式很简单(TYPE)EXPRESSION,但是c风格的类型转换有不少的缺点,有的时候用c风格的转换是不合适的,因为它可以在任意类型之间转换,比如你可以把一个指向const对象的指针转换成指向非const对象的指针,把一个指向基类对象的指针转换 阅读全文
posted @ 2017-05-11 14:40 清水汪汪 阅读(318) 评论(0) 推荐(0) 编辑
摘要: 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) 编辑
摘要: 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 阅读全文
posted @ 2017-04-02 12:02 清水汪汪 阅读(180) 评论(0) 推荐(1) 编辑
摘要: 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 阅读全文
posted @ 2017-04-02 11:43 清水汪汪 阅读(110) 评论(0) 推荐(1) 编辑
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 26 下一页