2016年6月23日

226. Invert Binary Tree

摘要: 1. 问题描述 Invert a binary tree. to Tag: Tree /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right 阅读全文

posted @ 2016-06-23 21:30 whl-hl 阅读(148) 评论(0) 推荐(0) 编辑

169. Majority Element

摘要: 1. 问题描述 Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times.You may assume t 阅读全文

posted @ 2016-06-23 21:29 whl-hl 阅读(133) 评论(0) 推荐(0) 编辑

导航