码迷,mamicode.com
首页 >  
搜索关键字:list add    ( 89211个结果
【Leetcode】排序相关
【Leetcode-215】 一、题目:数组中的第k大元素 在未排序的数组中找到第 k 个最大的元素。请注意,你需要找的是数组排序后的第 k 个最大的元素,而不是第 k 个不同的元素。 二、代码: def findKthLargest(self, nums: List[int], k: int) - ...
分类:编程语言   时间:2021-04-02 13:24:48    阅读次数:0
对象引用类型问题
https://bbs.csdn.net/topics/392275148 C# list<> add出现问题,重复add public class index_img { public string index_img_url { get; set; } public string index_i ...
分类:其他好文   时间:2021-04-02 13:23:35    阅读次数:0
ip route 命令介绍
ip route 可以用于查看网络的路由信息,并设置路由表 route n 显示所有路由 [root@ceph-104 ~]# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Ifac ...
分类:其他好文   时间:2021-04-02 13:16:37    阅读次数:0
MongoDB 角色权限
默认mongoDB 并没有用户限制,任何人都可以连接数据库 默认有 admin 、 config 、local、 test 四个数据库,show dbs 命令开始会显示前三个数据库,因为test 没有数据。 1、内置角色 ####1.1 当前数据库的角色 |角色| 能够执行的操作| | | | | ...
分类:数据库   时间:2021-04-02 13:14:47    阅读次数:0
2021-4-1 C++ STL之unordered_map
unordered_map unordered_map底层实现是哈希表,所以不会根据key来排序 undered_map<T1,T2> m; //T1是key值,T2是value值,初始的时候 m 是空映射 插入方式:键值对的形式插入 unordered_map<int, int> map; for ...
分类:编程语言   时间:2021-04-02 13:12:10    阅读次数:0
(办公)轻松学 React-Router 4(20210401)
命令创建项目:create-react-app hello-model-router 安装router:yarn add react-app-router-dom 按照例子来理解: 3.1. React router介绍 路由: path什么路径,component跳转到那个组件上. import  ...
分类:其他好文   时间:2021-04-02 13:10:28    阅读次数:0
shell同时执行在多个linux上
https://blog.csdn.net/weixin_33672109/article/details/92378342 #!/bin/bash if [ "$#" -ne 2 ] ; then echo "USAGE: $0 -f server_list_file cmd" exit -1 f ...
分类:系统相关   时间:2021-04-02 13:01:20    阅读次数:0
python中判断变量的类型
python的数据类型有:数字(int)、浮点(float)、字符串(str),列表(list)、元组(tuple)、字典(dict)、集合(set) 一般通过以下方法进行判断: 1、isinstance(参数1,参数2) 描述:该函数用来判断一个变量(参数1)是否是已知的变量类型(参数2) 类似于 ...
分类:编程语言   时间:2021-04-01 13:44:37    阅读次数:0
正反建树工具类
package com.tianee.webframe.util.tree; import java.beans.IntrospectionException; import java.lang.reflect.InvocationTargetException; import java.lang. ...
分类:其他好文   时间:2021-04-01 13:43:38    阅读次数:0
二叉树各种遍历的递归/迭代写法
一.二叉树的前序遍历 https://leetcode-cn.com/problems/binary-tree-preorder-traversal/ class Solution { public List<Integer> preorderTraversal(TreeNode root) { L ...
分类:其他好文   时间:2021-04-01 13:41:51    阅读次数:0
89211条   上一页 1 ... 77 78 79 80 81 ... 8922 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!