摘要: 题目: 给你一幅由 N × N 矩阵表示的图像,其中每个像素的大小为 4 字节。请你设计一种算法,将图像旋转 90 度。 不占用额外内存空间能否做到? 示例 1: 给定 matrix = [ [1,2,3], [4,5,6], [7,8,9]], 原地旋转输入矩阵,使其变为:[ [7,4,1], [ 阅读全文
posted @ 2020-04-07 09:43 仓鼠爱画方格子 阅读(134) 评论(0) 推荐(0)
摘要: 题目: 来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/find-numbers-with-even-number-of-digits 给你一个整数数组 nums,请你返回其中位数为 偶数 的数字的个数。 示例 1: 输入:nums = [12, 阅读全文
posted @ 2020-04-03 14:57 仓鼠爱画方格子 阅读(389) 评论(0) 推荐(0)
摘要: 题目: 给你一个整数 n,请你帮忙计算并返回该整数「各位数字之积」与「各位数字之和」的差。 示例 1: 输入:n = 234输出:15 解释:各位数之积 = 2 * 3 * 4 = 24 各位数之和 = 2 + 3 + 4 = 9 结果 = 24 - 9 = 15 示例 2: 输入:n = 4421 阅读全文
posted @ 2020-04-02 13:24 仓鼠爱画方格子 阅读(325) 评论(0) 推荐(0)
摘要: 题目:(力扣(LeetCode) https://leetcode-cn.com/problems/guess-numbers) 小A 和 小B 在玩猜数字。小B 每次从 1, 2, 3 中随机选择一个,小A 每次也从 1, 2, 3 中选择一个猜。他们一共进行三次这个游戏,请返回 小A 猜对了几次 阅读全文
posted @ 2020-03-27 10:46 仓鼠爱画方格子 阅读(264) 评论(0) 推荐(0)
摘要: 题目: 给你一个非负整数 num ,请你返回将它变成 0 所需要的步数。 如果当前数字是偶数,你需要把它除以 2 ;否则,减去 1 。 示例 1: 输入:num = 14输出:6解释:步骤 1) 14 是偶数,除以 2 得到 7 。步骤 2) 7 是奇数,减 1 得到 6 。 class Solut 阅读全文
posted @ 2020-03-26 10:30 仓鼠爱画方格子 阅读(551) 评论(0) 推荐(0)
摘要: 转载于: https://blog.csdn.net/duck_arrow/article/details/102664854 阅读全文
posted @ 2020-03-25 10:25 仓鼠爱画方格子 阅读(1514) 评论(0) 推荐(0)
摘要: 原来D盘满了,我就把notepad剪切到了E盘,然后原来的那个edit with notepad++ 不见了。。。 windows + r ,输入 regedit 打开注册表,找到下面的路径 新建项 edit with notepad++, 继续新建项 command 右边默认的地方 双击修改值 确 阅读全文
posted @ 2020-03-24 15:43 仓鼠爱画方格子 阅读(282) 评论(0) 推荐(0)
摘要: maven配置文件中: 然后eclipse window —> preferences 阅读全文
posted @ 2020-03-24 15:24 仓鼠爱画方格子 阅读(244) 评论(0) 推荐(0)
摘要: // 创建队列(包括参数) try { // 没有异常说明这个queue存在 rabbitTemplate.getConnectionFactory().createConnection().createChannel(false) .queueDeclarePassive(queueName); 阅读全文
posted @ 2020-03-24 12:46 仓鼠爱画方格子 阅读(335) 评论(0) 推荐(0)
摘要: Module build failed: Error: Missing binding D:\workspace\sshapp-esb\sshapp-ekhips\sshapp-hip-front\sshapp-tool\node_modules\node-sass\vendor\win32-x64 阅读全文
posted @ 2020-03-17 16:12 仓鼠爱画方格子 阅读(915) 评论(0) 推荐(0)