摘要: 题目 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 sym 阅读全文
posted @ 2018-10-02 14:47 shinjia 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 题目 Given two binary trees, write a function to check if they are the same or not. Two binary trees are considered the same if they are structurally id 阅读全文
posted @ 2018-10-02 11:19 shinjia 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 题目 Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. Note: The number of elements initialized in nums1 and 阅读全文
posted @ 2018-10-02 09:11 shinjia 阅读(79) 评论(0) 推荐(0) 编辑