ICode9

精准搜索请尝试: 精确搜索
  • 支持双端插入的可撤销回文自动机2022-09-08 14:30:47

    支持双端插入的可撤销回文自动机 打多校看到的科技,板子++ 参考来源:https://ac.nowcoder.com/acm/contest/view-submission?submissionId=53195473 template <class T, int SIZE, T offset> struct Depam { struct Node { int len, pos, fail; int nxt[SI

  • [LeetCode] 1315. Sum of Nodes with Even-Valued Grandparent 祖父节点值为偶数的节点和2022-08-31 13:00:20

    Given the root of a binary tree, return the sum of values of nodes with an even-valued grandparent. If there are no nodes with an even-valued grandparent, return 0. A grandparent of a node is the parent of its parent if it exists. Example 1: Input:

  • ODA 12.1.2.7.0 patch的新变化2022-08-23 12:02:13

    Patch steps before 12.1.2.6.0:1. Copy the patch bundle on both nodes(all nodes):# /tmp/p18284007_210000_Linux-x86-64_1of2.zip# /tmp/p18284007_210000_Linux-x86-64_2of2.zip2. Unpack the patch bundle on both nodes(all nodes):# /opt/oracle/oak/bin/oakcli unpa

  • 1112022-08-23 00:01:36

    week4 完成作业: 1.自定义写出10个定时任务的示例: 比如每周三凌晨三点执行data命令 要求尽量的覆盖各种场景 2. 图文并茂说明Linux进程和内存概念 3. 图文并茂说明Linux启动流程 4. 自定义一个systemd服务定时去其他服务器上检查/tmp/下文件的个数,如果发现数量有变化就记录变化情

  • 哈密顿回路2022-08-21 20:32:49

    https://www.acwing.com/problem/content/description/1617/ 思路: 需要满足:1. 第一个点和最后一个点相同,这样才能形成回路。 2.要有恰好有n+1个点,因为哈密顿回路本身就要求经过图中每个顶点。 3. 且每个顶点都必须遍历到。 4. 每两个点之间都要有边相连接。 #include <iostream>

  • 团伙头目2022-08-21 20:02:07

    https://www.acwing.com/problem/content/1520/ 思路: 先找到在一个团伙中的人(可以用树的dfs来做,也可以用并查集来做),然后遍历每一个合法的集合,找到里面的头目。 并查集的做法 #include <iostream> #include <unordered_map> #include <cstring> #include <vector> #include <algor

  • vis.js 网络拓扑结构2022-07-12 15:32:38

    https://visjs.org/#download_install     更详细的教程从上面网址上面获取 近日因工作需要研究了这个js. 做了个简单的demo,记录一下 <!doctype html> <html lang="en"> <head>     <meta charset="UTF-8">     <meta name="viewport"           conte

  • 利用Jsoup高亮html页面中的关键词2022-07-10 17:03:24

    代码 import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import org.jsoup.nodes.Element; import org.jsoup.nodes.Node; import org.jsoup.nodes.TextNode; import org.jsoup.parser.Tag; import java.io.File; import java.io.IOException; import java.util.List;

  • color flip2022-07-10 08:34:01

    886. Possible Bipartition Medium We want to split a group of n people (labeled from 1 to n) into two groups of any size. Each person may dislike some other people, and they should not go into the same group. Given the integer n and the array di

  • N 叉树的前序遍历2022-07-02 11:10:03

    来源:力扣(LeetCode) 链接:https://leetcode.cn/problems/n-ary-tree-preorder-traversal 给定一个 n 叉树的根节点  root ,返回 其节点值的 前序遍历 。 n 叉树 在输入中按层序遍历进行序列化表示,每组子节点由空值 null 分隔(请参见示例)。 点击查看代码 class Solution { publi

  • oracle的IP访问列表2022-06-29 13:01:17

    Windows版本Oracle 19c。 在sqlnet.ora中添加下面语句 tcp.validnode_checking=yes tcp.invited_nodes=(127.0.0.1,132.1.1.2,10.1.1.0/20) #tcp.excluded_nodes=() 重启监听,登录不上,出现奇怪的错误。 重启一下oracle主服务就能解决了。 要修改上面的配置,还是要重启主服务。 可

  • dfs2022-06-27 07:00:55

    785. Is Graph Bipartite? Medium 4979279Add to ListShare There is an undirected graph with n nodes, where each node is numbered between 0 and n - 1. You are given a 2D array graph, where graph[u] is an array of nodes that node u is adjacent t

  • leidenalg包教程-12022-06-18 01:00:37

    leidenalg包教程 目录leidenalg包教程安装介绍高级技巧1. 优化器2. Resolution profile 分辨率配置文件3. 固定(确定)节点 安装 简单来说,可以使用pip install leidenalg直接安装。 也可以使用源码进行安装, 安装这个包需要C核心库igraph和python包python-igraph,然后可以通过python se

  • 克鲁斯卡尔算法-公交站问题2022-06-15 06:31:06

    1.背景 2.代码 package com.ldp.algorithm.demo05Kruskal; import org.junit.Test; import java.util.Arrays; /** * @create 06/14 9:04 * @description <P> * 克鲁斯卡尔算法-公交站问题 * 1.找出所有边 * 2.对边按照权值排序 * 3.从小到大加入边(要求加入时不构成回

  • 知识图谱案例2022-06-14 19:04:10

    使用neo4j对三元组文件构建知识图谱 1.安装neo4j (使用jdk8以上) 2.修改neo4j.conf    3导入csv neo4j-admin import --database=text.db --nodes=./bin/mfd/concept.csv --nodes=./bin/mfd/executive.csv --nodes=./bin/mfd/question.csv --relationships=./bin/mfd/executive_

  • LAB-02:指定节点不可用2022-06-14 11:37:32

    LAB-02:指定节点不可用 LAB 需求 将名为 k8s-node-1 的 node 设置为不可用,并且重新调度该 node 上所有的 pods。 LAB 预配 # 编写一个2副本的 deployments,至少一个 pod 调度到 k8s-node-1上。user1@k8s-master:~/cka/2$ cat deployment-nginx-pod-nodes.yaml apiVersion: apps

  • Python按层级遍历打印二叉树2022-06-09 21:08:17

    [本文出自天外归云的博客园] 通过列表构造树,按层级遍历打印二叉树: #!/usr/bin/python # Write Python 3 code in online editor and run it. class TreeNode(): def __init__(self, val): self.val = val self.left = None self.right = None def l

  • 牛客网高频算法题系列-BM13-判断一个链表是否为回文结构2022-06-06 12:31:12

    牛客网高频算法题系列-BM13-判断一个链表是否为回文结构 题目描述 给定一个链表,请判断该链表是否为回文结构。 回文是指该字符串正序逆序完全一致。 原题目见:BM13 判断一个链表是否为回文结构 解法一:链表遍历 首先,考虑特殊情况,如果链表为空或只有一个链表,默认是回文结构,直接返

  • Djikstra算法记录一下2022-05-25 03:31:22

    代码我忘记到哪里抄的了,这个博客就是为了保存下代码,所以没有写出处,如果需要的话可以联系我补出处。 代码如下: def dijkstra(graph,src): # graph:邻接矩阵,src:起点 if graph == None: return None # 顶点集合 nodes = [i for i in range(len(graph))] # 获取顶点列表,用邻

  • 课堂练习——neo4j简单使用2022-05-21 16:01:46

    启动neo4j: neo4j.bat console 进入neo4j数据库的conf目录下,编辑neo4j.conf文件:将当前数据库设置为你要建立的数据库名称(数据库不能重名): dbms.active_database= graph.db 将数据库kg(数据库csv)文件拷贝到bin目录下 导入数据到数据库 neo4j-admin import --mode=

  • 太酷了,手把手教你用 Python 绘制桑基图2022-05-11 15:03:45

    桑基图,它的核心是对不同点之间,通过线来连接。线的粗细代表流量的大小。很多工具都能实现桑基 图,比如:Excel、tableau,我们今天要用 Pyecharts 来绘制。 因为没有用户行为路径相关的公开数据,所以本次实现可视化是根据泰坦尼克号,其生存与遇难的人的 数据,来分析流向路径。学会思

  • ztree.js 禁止点击事件和鼠标禁用2022-05-06 17:35:40

    先看样式         var _t = this; var setting = { view: { fontCss: { color: "#5E5F61" }, showIcon: true, showLine: false }, data: { simpleData:

  • MindSpore加载图数据集2022-05-06 11:00:29

    加载图数据集 MindSpore提供的mindspore.dataset模块可以帮助用户构建数据集对象,分批次地读取文本数据。 图的概念 通常一个图(graph) G是由一系列的节点(vertices) V以及边(eage)E组成的,每条边都连接着图中的两个节点,用公式可表述为:G = F(V, E),简单的图如下所示。 图中包含节

  • Cypher Fundamentals-Creating Relationships2022-05-05 23:31:47

    Cypher Fundamentals Reading Data from Neo4j Introduction to Cypher Retrieving Nodes Finding Relationships Traversing Relationships Finding Emil Filtering Queries Finding Specific Actors Writing Data to Neo4j Creating Nodes Creating a Node Creating

  • Cypher Fundamentals-Reading Data from Neo4j2022-05-04 14:32:40

    Cypher Fundamentals Reading Data from Neo4j Introduction to Cypher Retrieving Nodes Finding Relationships Traversing Relationships Finding Emil Filtering Queries Finding Specific Actors Writing Data to Neo4j Creating Nodes Creating a Node Creating

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有