摘要: 题目描述: Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the fart 阅读全文
posted @ 2018-01-03 17:17 zlz099 阅读(128) 评论(0) 推荐(0)
摘要: 题目描述: Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree [1,2,2,3,4,4,3] is 阅读全文
posted @ 2018-01-03 17:14 zlz099 阅读(156) 评论(0) 推荐(0)
摘要: 题目描述: Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. For example,"A man, a plan, a cana 阅读全文
posted @ 2018-01-03 17:13 zlz099 阅读(118) 评论(0) 推荐(0)
摘要: 题目描述: Given an array of integers, every element appears twice except for one. Find that single one. Note:Your algorithm should have a linear runtime c 阅读全文
posted @ 2018-01-03 17:11 zlz099 阅读(112) 评论(0) 推荐(0)