![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
leetcode
icybug
这个作者很懒,什么都没留下…
展开
-
leetcode Generate Parenthesis
/******************************** Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. For example, given n = 3, a solution set is: "((())原创 2015-01-07 15:54:42 · 401 阅读 · 0 评论 -
LeetCode Rotate Image
You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). 从外圈往里旋转 void rotate(vector > &matrix) { int size = matrix.size(); int left = 0, right = size原创 2015-01-09 17:11:26 · 278 阅读 · 0 评论 -
LeetCode Binary Tree Postorder Traversal
Given a binary tree, return the postorder traversal of its nodes' values. For example: Given binary tree {1,#,2,3}, 1 \ 2 / 3 return [3,2,1]. vector postorderTrav原创 2015-01-13 11:18:53 · 243 阅读 · 0 评论