给定一个无序的整数数组,找到其中最长上升子序列的长度。 示例: 输入: [10,9,2,5,3,7,101,18]输出: 4 解释: 最长的上升子序列是 [2,3,7,101],它的长度是 4。说明: 可能会有多种最长上升子序列的组合,你只需要输出对应的长度即可。你算法的时间复杂度应该为 O(n2) ...
分类:
其他好文 时间:
2020-08-18 13:57:25
阅读次数:
61
list1<Bean1>和list2<Bean2> 根据元素的playerId属性 取交集 Bean1和Bean2 都含有playerId属性 List<Bean1> intersectList = list1.stream() .filter(pe -> find1(pe.getPlayerId( ...
分类:
编程语言 时间:
2020-08-18 13:18:53
阅读次数:
240
Numpy的一些记录 产生numpy.array的方式 import numpy as np arr1 = np.array([1, 2, 3]) print(arr1) arr2 = np.zeros(3) print(arr2) arr3 = np.ones(3) print(arr3) arr ...
分类:
其他好文 时间:
2020-08-17 17:43:21
阅读次数:
65
一基础环境安装源ISOCentOS-7-x86_64-DVD-1810最小化安装系统后先更新[root@Server~]#yumupdate-y[root@Server~]#cat/etc/redhat-releaseCentOSLinuxrelease7.6.1810(Core)[root@Server~]#uname-r3.10.0-957.21.3.el7.x86_64关闭防火墙system
分类:
其他好文 时间:
2020-08-17 17:38:52
阅读次数:
75
题目描述: 给定二叉搜索树(BST)的根节点和一个值。 你需要在BST中找到节点值等于给定值的节点。 返回以该节点为根的子树。 如果节点不存在,则返回 NULL。 例如, 给定二叉搜索树: 4 / \ 2 7 / \ 1 3 和值: 2 你应该返回如下子树: 2 / \ 1 3 来源:力扣(Leet ...
分类:
其他好文 时间:
2020-08-17 16:46:20
阅读次数:
54
在链表类中实现这些功能: get(index):获取链表中第 index 个节点的值。如果索引无效,则返回-1。addAtHead(val):在链表的第一个元素之前添加一个值为 val 的节点。插入后,新节点将成为链表的第一个节点。addAtTail(val):将值为 val 的节点追加到链表的最后 ...
分类:
其他好文 时间:
2020-08-17 16:44:18
阅读次数:
71
题目地址:https://leetcode-cn.com/problems/merge-k-sorted-lists/ 解题思路:简单的分治算法 /** * Definition for singly-linked list. * struct ListNode { * int val; * Lis ...
分类:
编程语言 时间:
2020-08-15 22:27:55
阅读次数:
64
wxml <image wx:for="{{info}}" src="{{item.pic}}" bindtap="preview" data-list="{{item.pic}}" data-src="{{item.pic}}"></image> js Page({ //图片预览 preview: ...
分类:
微信 时间:
2020-08-13 12:33:33
阅读次数:
98
效果图: 1. 添加无搜索历史内容及样式 2. input传值给home-search 2.1 navbar 传值 2.2 home-search 接收 3. vuex的使用 3.1 创建目录 store,引入vuex实例 3.2 main.js中注册 3.3 页面调用 historyLists 3 ...
分类:
其他好文 时间:
2020-08-13 12:28:45
阅读次数:
58
This example shows how to implement the HARQ Indicator (HI) and physical HI channel (PHICH). You create the processing chain of coding hybrid indicato ...
分类:
其他好文 时间:
2020-08-13 12:11:36
阅读次数:
61