先左右对称反转,再沿右对角线对折,面试记住就行了 代码: 1 class Solution { 2 public: 3 void rotate(vector<vector<int>>& matrix) { 4 int len = matrix.size(); 5 //左右翻 6 for(int i= ...
分类:
其他好文 时间:
2020-02-20 10:13:45
阅读次数:
76
一、定义动画过程中形成的状态用transformtransform 分为2D 和 3D,主要包含以下几种变换:旋转rotate、扭曲skew、缩放scale和移动 translate以及矩阵变形matrix,语法如下:1transform: rotate | scale | skew | trans... ...
分类:
其他好文 时间:
2020-02-18 13:24:01
阅读次数:
68
Html: <input type="range" value="0" [style.--thumb-rotate]="720 * $any(input.value)/100 + 'deg'" #input (input)="0"> CSS: input[type="range"]::-webkit ...
分类:
Web程序 时间:
2020-02-17 17:37:48
阅读次数:
91
安装中文包:sudo apt install language-pack-zh-han* language-pack-gnome-zh-han* 安装ibus:sudo apt install ibus ibus-clutter ibus-gtk ibus-gtk3 ibus-qt4 切换到ibus ...
分类:
系统相关 时间:
2020-02-13 21:08:41
阅读次数:
98
Given two numbers, hour and minutes. Return the smaller angle (in sexagesimal units) formed between the hour and the minute hand. Example 1: Input: ho ...
分类:
其他好文 时间:
2020-02-13 09:30:42
阅读次数:
57
题目如下: Given two numbers, hour and minutes. Return the smaller angle (in sexagesimal units) formed between the hour and the minute hand. Example 1: Inp ...
分类:
其他好文 时间:
2020-02-09 18:15:29
阅读次数:
313
1-安装必须软件sudopacman-Sibussudopacman-Sibus-rime2-添加配置文件~/.xprofileexportGTK_IM_MODULE=ibusexportXMODIFIERS=@im=ibusexportQT_IM_MODULE=ibusibus-daemon-d-x3-重启就好了
分类:
编程语言 时间:
2020-02-05 18:43:27
阅读次数:
224
x11, xorg, xserver, gtk, qt , kde, gnome都是啥 ...
61. Rotate List Given a linked list, rotate the list to the right by k places, where k is non negative. Example 1: Example 2: 思路:首先算出链表的长度(因为平移的时候以长度为 ...
分类:
其他好文 时间:
2020-01-31 18:46:14
阅读次数:
49
189. Rotate Array(旋转数组) 链接 https://leetcode cn.com/problems/rotate array 题目 给定一个数组,将数组中的元素向右移动?k?个位置,其中?k?是非负数。 示例 1: 输入: [1,2,3,4,5,6,7] 和 k = 3 输出: ...
分类:
其他好文 时间:
2020-01-31 14:02:14
阅读次数:
42