摘要: Invert a binary tree. 4 / \ 2 7 / \ / \1 3 6 9to 4 / \ 7 2 / \ / \9 6 3 1比较简单,二叉树里的题其实有点举一反三的意思,很多题会一道就差不多了。递归的反... 阅读全文
posted @ 2015-11-09 16:24 0giant 阅读(134) 评论(0) 推荐(0) 编辑
摘要: Write a SQL query to delete all duplicate email entries in a table named Person, keeping only unique emails based on its smallest Id.+----+-----------... 阅读全文
posted @ 2015-11-09 16:08 0giant 阅读(250) 评论(0) 推荐(0) 编辑
摘要: Find the contiguous subarray within an array (containing at least one number) which has the largest product.For example, given the array [2,3,-2,4], t... 阅读全文
posted @ 2015-11-09 15:12 0giant 阅读(180) 评论(0) 推荐(0) 编辑