算法
sunp823
积跬步,至千里;积小流,成江海
展开
-
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? 中文题目: 有一个NxN整数矩阵,请编写一个算法,将矩阵顺时针旋转90度。 给定一个NxN的矩阵,原创 2016-03-24 16:53:40 · 869 阅读 · 1 评论 -
leetcode_Count Numbers with Unique Digits
leetcode_Count Numbers with Unique DigitsGiven a non-negative integer n, count all numbers with unique digits, x, where 0 ≤ x < 10n.原创 2016-07-05 16:32:05 · 292 阅读 · 0 评论 -
leetcode_Valid Perfect Square
Valid Perfect SquareGiven a positive integer num, write a function which returns True if num is a perfect square else False. Note: Do not use any built-in library function such as sqrt.原创 2016-07-05 16:58:25 · 359 阅读 · 0 评论