摘要: Problem: You are given a map in form of a two-dimensional integer grid where 1 represents land and 0 represents water. Grid cells are connected horizo 阅读全文
posted @ 2016-12-16 12:58 SillyVicky 阅读(208) 评论(0) 推荐(0)
摘要: Problem: Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those lett 阅读全文
posted @ 2016-12-16 05:57 SillyVicky 阅读(594) 评论(0) 推荐(0)
摘要: Problem: Find the sum of all left leaves in a given binary tree. Summary: 求左子叶之和。 Analysis: 1. 求左子叶之和,即需要遍历整棵二叉树,常规的方法则为递归。首先我想到的是调用子函数,在子函数中递归,每递归至一个 阅读全文
posted @ 2016-12-16 05:42 SillyVicky 阅读(163) 评论(0) 推荐(0)