旋转
文章平均质量分 67
jmspan
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
LeetCode 247. Strobogrammatic Number II
原题网址:https://leetcode.com/problems/strobogrammatic-number-ii/ A strobogrammatic number is a number that looks the same when rotated 180 degrees (looked at upside down). Find all strobogrammati原创 2016-04-07 06:34:57 · 1061 阅读 · 0 评论 -
LeetCode 61. Rotate List(旋转链表)
原题网址:https://leetcode.com/problems/rotate-list/ Given a list, rotate the list to the right by k places, where k is non-negative. For example: Given 1->2->3->4->5->NULL and k = 2, return 4-原创 2016-05-21 09:13:10 · 1020 阅读 · 0 评论 -
LeetCode 54. Spiral Matrix(螺旋矩阵)
原题网址:https://leetcode.com/problems/spiral-matrix/ Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order. For example, Given the following mat原创 2016-05-21 06:56:42 · 761 阅读 · 0 评论 -
LeetCode 48. Rotate Image(旋转)
原题网址:https://leetcode.com/problems/rotate-image/ You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). Follow up: Could you do this in-place?原创 2016-05-21 05:34:52 · 449 阅读 · 0 评论 -
LeetCode 33. Search in Rotated Sorted Array(旋转数组搜索)
原题网址:https://leetcode.com/problems/search-in-rotated-sorted-array/ Suppose a sorted array is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2)原创 2016-05-20 10:36:45 · 556 阅读 · 0 评论 -
LeetCode 246. Strobogrammatic Number
原题网址:https://leetcode.com/problems/strobogrammatic-number/ A strobogrammatic number is a number that looks the same when rotated 180 degrees (looked at upside down). Write a function to determ原创 2016-04-07 06:08:22 · 1154 阅读 · 0 评论 -
LeetCode 189. Rotate Array(旋转数组)
原题网址:https://leetcode.com/problems/rotate-array/ Rotate an array of n elements to the right by k steps. For example, with n = 7 and k = 3, the array [1,2,3,4,5,6,7] is rotated to [5,6,7,1,2,原创 2016-05-04 01:22:23 · 2492 阅读 · 0 评论 -
LeetCode 153. Find Minimum in Rotated Sorted Array(旋转数组查找)
原题网址:https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/ Suppose a sorted array is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 might become 4 5 6 7原创 2016-05-26 01:02:22 · 494 阅读 · 0 评论 -
LeetCode 154. Find Minimum in Rotated Sorted Array II(旋转数组查找)
原题网址:https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii/ Follow up for "Find Minimum in Rotated Sorted Array": What if duplicates are allowed? Would this affect the run-time原创 2016-05-26 00:57:56 · 513 阅读 · 0 评论 -
HackerRank [Algo] Matrix Rotation
原题网址:https://www.hackerrank.com/challenges/matrix-rotation-algo You are given a 2D matrix, a, of dimension MxN and a positive integer R. You have to rotate the matrix R times and print th原创 2016-06-26 13:09:39 · 782 阅读 · 0 评论
分享