给定一个数组,将数组中的元素向右移动 k 个位置,其中 k 是非负数。 示例 1: 示例 2: 说明: 尽可能想出更多的解决方案,至少有三种不同的方法可以解决这个问题。 要求使用空间复杂度为 O(1) 的原地算法。 解法1: class Solution { public void rotate(i ...
分类:
编程语言 时间:
2019-03-28 00:39:03
阅读次数:
205
编译opencv记录 1.opencv,opencv_contrib包, 3.4.5版本 2. 到opencv/build 目录下 删除所有文件 $rm -rf * 3. 打开cmake图形界面 $cmake-gui ~设置source code和build binaries 路径 ~点击Confi ...
分类:
其他好文 时间:
2019-03-27 18:23:54
阅读次数:
198
1、 Package java.math Provides classes for performing arbitrary-precision integer arithmetic (BigInteger) and arbitrary-precision decimal arithmetic (B ...
分类:
编程语言 时间:
2019-03-22 10:27:09
阅读次数:
158
1.创建相应的文件目录:如下 2.使用画图获取底色 在网上查找颜色的十六进制格式 3.修改相应的代码代码地址如下: 链接:https://pan.baidu.com/s/1mmgTKCZnf_xDoIh15TbqFg 提取码:z6dq 复制这段内容后打开百度网盘手机App,操作更方便哦 4.效果图如 ...
分类:
Web程序 时间:
2019-03-19 21:23:21
阅读次数:
204
You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). Note: You have to rotate the image in-place, which ...
分类:
其他好文 时间:
2019-03-19 15:02:26
阅读次数:
174
1、translate(x,y) 设置盒子位移2、scale(x,y) 设置盒子缩放3、rotate(deg) 设置盒子旋转4、skew(x-angle,y-angle) 设置盒子斜切5、perspective 设置透视距离6、transform-style flat | preserve-3d 设 ...
分类:
Web程序 时间:
2019-03-10 09:49:20
阅读次数:
218
当我们无法获取ip地址时可以使用dhcp来动态获取ip地址,安装dhcpcd5和dhcpcd gtk 使用ifconfig查看网卡名称,比如我本子上的有线网无法获取到ipv4,而我的有线网卡的名称为enp7s0,那么使用下面的命令即可获取到ipv4地址 dhcpcd gtk是用来查看当前各网络设备的 ...
分类:
系统相关 时间:
2019-03-05 21:20:28
阅读次数:
1327
goal: Reference https://github.com/pointwise/ArrayCopyRotate ...
分类:
其他好文 时间:
2019-03-05 21:09:29
阅读次数:
170
48. Rotate Image You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). Note: You have to rotate the imag ...
分类:
Web程序 时间:
2019-02-24 22:59:17
阅读次数:
239
控制海龟面对方向:绝对角度&海龟角度 -turtle.left(angle) 海龟向左转 -turtle.right(angle) 海龟向右转 --angle 海龟转向的角度 turtle.setheading(angle) 别名 turtle.seth(angle) 改变行进方向,海龟走角度 -a ...
分类:
其他好文 时间:
2019-02-23 00:50:46
阅读次数:
208