题意 如果两个数的数位和一样那么这两个数就是友好数,称数位和为友好ID,现在要找出给定的序列中有几个不同的友好ID 思路 按照要求模拟就好了 记录有几个不同的友好ID,可以采用set 代码 #include <iostream> #include <vector> #include <queue> ...
分类:
其他好文 时间:
2021-03-15 11:31:00
阅读次数:
0
Description: Given the root of a binary tree, return the bottom-up level order traversal of its nodes' values. (i.e., from left to right, level by lev ...
分类:
其他好文 时间:
2021-03-15 11:13:18
阅读次数:
0
自定义方法: 文件 >首选项 >键盘快捷方式 批量缩进 Ctrl + [ //向左缩进 Ctrl + ] //向右缩进 转变大写/小写(自定义的) Ctrl + 7 //大写 Ctrl + 8 //小写 拆分编辑器 Ctrl + \ ...
分类:
其他好文 时间:
2021-03-15 10:54:41
阅读次数:
0
VS Code 装好ESLint 插件报黄线的问题,具体解决方法如下所示: ESLint is disabled since its execution has not been approved or denied yet. Use the light bulb menu to open the ...
分类:
移动开发 时间:
2021-03-15 10:51:43
阅读次数:
0
首先引用官方文档 # Packaging VS Code can be packaged for the following platforms: win32-ia32 | win32-x64 | darwin | linux-ia32 | linux-x64 | linux-arm These g ...
分类:
其他好文 时间:
2021-03-15 10:47:18
阅读次数:
0
题意 要让链表里的所有负数的结点排在非负数的前面,以及让所有的[0, K]的数字放在(k, ∞)的前面,而且要保持相对顺序不变。保证链表不为空 思路 依次遍历链表的每个结点进行标记,第一趟取出负数,第二趟取出[0, K]内的数字,第三趟取出剩下没有取的数字,标记的方式是令data = 100010, ...
分类:
其他好文 时间:
2021-03-15 10:43:58
阅读次数:
0
1 import os 2 os.environ['TF_CPP_MIN_LOG_LEVEL']='2' # to hidden the messages from tensorflow 3 from tensorflow import keras 4 from tensorflow.keras i ...
分类:
其他好文 时间:
2021-03-15 10:35:44
阅读次数:
0
1.从git上复制http路径 2.在vs code的工作区新建文件夹 3.选择添加远程储存库 4.输入复制的git路径然后命名远程储存库名称 5.选择从所有远程储存库中拉取分支 6.选择分支,切换当前的分支 6.1.点击左下角进入分支选择 6.2点击签出到 7.点击拉取,获取git代码 8.当更改 ...
分类:
Web程序 时间:
2021-03-09 13:05:26
阅读次数:
0
Description 题目见 https://leetcode.com/problems/diagonal-traverse-ii/ code 这是考验智商的题目~~ 我的代码 import bisect class Solution(object): def findDiagonalOrder( ...
分类:
其他好文 时间:
2021-03-09 12:53:59
阅读次数:
0
时间:2021/03/06 一.题目描述 对于一个十进制数A,将A转换为二进制数,然后按位逆序排列,再转换为十进制数B,我们称B为A的二进制逆序数。 例如对于十进制数173,它的二进制形式为10101101,逆序排列得到10110101,其十进制数为181,181即为173的二进制逆序数。 输入描述 ...
分类:
其他好文 时间:
2021-03-08 13:18:18
阅读次数:
0