知识点一:旋转 transform: rotate(180deg) //只能传一个参数,,正值是顺时针 负值是逆时针 度数用deg表示 沿着x轴旋转: transform: rotateX(180deg); 沿着Y轴旋转: transform: rotateY(180deg); 默认是沿着中心旋转。 ...
分类:
Web程序 时间:
2020-08-27 13:01:09
阅读次数:
73
题目 给定一个 n × n 的二维矩阵表示一个图像。 将图像顺时针旋转 90 度。 思路 没有想到。看过解答后知道可以转置加翻转即可,且能达到最优的时间复杂度O(N^2)。 实现 class Solution: def rotate(self, matrix: List[List[int]]) -> ...
分类:
其他好文 时间:
2020-08-03 12:19:41
阅读次数:
82
css3属性中关于制作动画的三个属性:Transform,Transition,Animation。 1、transform:描述了元素的静态样式,本身不会呈现动画效果,可以对元素进行 旋转rotate、扭曲skew、缩放scale和移动translate以及矩阵变形matrix。 div{ tra ...
分类:
Web程序 时间:
2020-07-22 23:36:58
阅读次数:
115
Splay: 像BST(二叉搜索树)一样插入查询,可以改变树的形状,可以区间翻转,可以实现动态树,不可持久化。 核心代码: 1 void rotate(int a) // 旋转 2 { 3 int b = fa[a], c = fa[b]; 4 int k = son[b][1] == a, w = ...
分类:
其他好文 时间:
2020-07-18 00:54:56
阅读次数:
87
创建一个没有背景的圆,然后声明透明度为0.1的黑色边框(看起来是灰色),修改左侧边框颜色。此时会有一个静态的看起来只有左边框有颜色的空心圆。然后声明一个该元素逆时针旋转360度的动画,并让该动画无限播放(infinite)即可。 使用的css3 特性: transform属性的 rotate,共一个 ...
分类:
Web程序 时间:
2020-07-18 00:31:25
阅读次数:
112
1,localStorage 存储数据支持5M大小,只有不清除历史记录,数据就在 var data = { left: 0, top: 0, scale: 1, rotate: 0 }; // localStorage本地存储 window.localStorage.cat_touchjs_data ...
分类:
其他好文 时间:
2020-07-16 18:08:47
阅读次数:
66
Given an array, rotate the array to the right by k steps, where k is non-negative. Follow up: Try to come up as many solutions as you can, there are a ...
分类:
其他好文 时间:
2020-07-16 00:20:51
阅读次数:
49
1.欧拉角旋转 public void Rotate(Vector3 eulers, [DefaultValue("Space.Self")] Space relativeTo); 就容易想到的就是transform.Rotate方法: 1 RotationObj.transform.Rotate( ...
分类:
编程语言 时间:
2020-07-13 21:43:11
阅读次数:
104
Rotate List (M) 题目 Given a linked list, rotate the list to the right by k places, where k is non-negative. Example 1: Input: 1->2->3->4->5->NULL, k = ...
分类:
其他好文 时间:
2020-07-11 09:40:09
阅读次数:
39
这题的rotate操作其实就是暗示可以把某一个数提到最前面 因此本题其实就是求取最长公共子序列 但是有个问题当转移遇到s[i]==t[j]的时候,不能直接转移,因为只有当他二十六个字母的后缀数组全部比t串大时才可以转移,否则如果匹配了当前两个 没有办法把后面的提上来变成相等 #include<bit ...
分类:
其他好文 时间:
2020-07-04 01:49:10
阅读次数:
82