码迷,mamicode.com
首页 >  
搜索关键字:rotate array    ( 30802个结果
《Javascript权威指南》学习笔记之十二:数组、多维数组和符合数组(哈希映射)
Array(数组)是JavaScript中较为复杂的数据类型,同Java、C#、VB等程序语言的数组相比,Javascript数组中的元素不必为相同的数据类型,可以在数组每个元素上混合使用数字、日期、字符串、Object,甚至添加一个嵌套数组。...
分类:编程语言   时间:2014-06-20 10:15:11    阅读次数:297
leetcode--Maximum Subarray
Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array[?2,1,?3,4,?1,2,1,...
分类:其他好文   时间:2014-06-20 08:59:38    阅读次数:235
leetcode--Convert Sorted Array to Binary Search Tree
Given an array where elements are sorted in ascending order, convert it to a height balanced BST./** * Definition for binary tree * public class TreeN...
分类:其他好文   时间:2014-06-11 21:58:10    阅读次数:300
css3-rotate实现超炫环形旋转特效
css3-rotate实现超炫环形旋转特效,css3特效,环形旋转,圆形旋转,css3-rotate实现超炫环形旋转特效是一款采用css3 rotate实现的蓝色环形旋转特效代码.http://www.huiyi8.com/css3/
分类:Web程序   时间:2014-06-11 12:58:15    阅读次数:245
android自定义控件(二)Canvas
一。重要方法1.translate2.scale3.rotate二。注意1.明确顺序canvas.rotate(45);canvas.drawRect(new Rect(50, 50, 100, 100), paint);如果顺序调换,则没有旋转的效果2.转换的时候,需要把转换的中心点移到shape...
分类:移动开发   时间:2014-06-11 12:48:30    阅读次数:379
[leetcode]Search Insert Position @ Python
原题地址:https://oj.leetcode.com/problems/search-insert-position/题意:Given a sorted array and a target value, return the index if the target is found. If n...
分类:编程语言   时间:2014-06-11 11:28:40    阅读次数:349
[leetcode]Plus One @ Python
原题地址:https://oj.leetcode.com/problems/plus-one/题意:Given a non-negative number represented as an array of digits, plus one to the number.The digits are...
分类:编程语言   时间:2014-06-11 11:25:27    阅读次数:304
[leetcode]Rotate Image @ Python
原题地址:https://oj.leetcode.com/problems/rotate-image/题意:You are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Fo...
分类:编程语言   时间:2014-06-11 09:43:59    阅读次数:1264
poj2752 水题
又2b了一次…… 1 var s:ansistring; 2 ans,pre:array[0..10000] of longint; 3 i,k,tot:longint; 4 procedure main; 5 begin 6 pre[1]:=0;k:=0; 7 for i:=...
分类:其他好文   时间:2014-06-11 08:42:01    阅读次数:211
关于结构体的一个特殊用法(总觉得遇到的问题就该记录一下哇)
关于结构体的一个特殊用法 //写法一 struct array { int count; char *buf; } //写法二 struct array { int count; char buf[0]; } 如果一个buf用作一个buffer的话,这时候如果malloc一块内存, 用方法一,buf是指针的话,指向这块申请出的内存的话,这里arr...
分类:其他好文   时间:2014-06-07 12:13:20    阅读次数:273
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!