摘要: https://leetcode.com/problems/invert-binary-tree/ Invert a binary tree. Example: Input: Output: Trivia:This problem was inspired by this original twee 阅读全文
posted @ 2018-12-05 23:29 _Zlrrr 阅读(105) 评论(0) 推荐(0)
摘要: https://zufeoj.com/contest.php?cid=1483 问题 A: A 代码: #include <bits/stdc++.h> using namespace std; const int maxn = 1e5 + 10; int n; int num[maxn]; map 阅读全文
posted @ 2018-12-05 22:53 _Zlrrr 阅读(226) 评论(0) 推荐(0)
摘要: https://leetcode.com/problems/same-tree/ Given two binary trees, write a function to check if they are the same or not. Two binary trees are considere 阅读全文
posted @ 2018-12-05 19:51 _Zlrrr 阅读(133) 评论(0) 推荐(0)
摘要: https://leetcode.com/problems/zigzag-conversion/ The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you 阅读全文
posted @ 2018-12-05 13:58 _Zlrrr 阅读(143) 评论(0) 推荐(0)