leetcode
「已注销」
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
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 · 452 阅读 · 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 · 323 阅读 · 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 · 273 阅读 · 0 评论
分享