2018年5月10日

LeetCode第[46]题(Java):Permutations(求所有全排列) 含扩展——第[47]题Permutations 2

摘要: 题目:求所有全排列 难度:Medium 题目内容: Given a collection of distinct integers, return all possible permutations. 翻译:给定一组各不相同的整数,返回所有可能的排列。 Example: 我的思路:每种情况中,每一个 阅读全文

posted @ 2018-05-10 23:09 清风吹斜阳 阅读(383) 评论(0) 推荐(0) 编辑

LeetCode第[48]题(Java):Rotate Image

摘要: 题目:矩阵旋转 难度:Medium 题目内容: You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). Note: You have to rotate t 阅读全文

posted @ 2018-05-10 00:00 清风吹斜阳 阅读(841) 评论(0) 推荐(0) 编辑

导航