码迷,mamicode.com
首页 >  
搜索关键字:depth-first search    ( 12393个结果
寒假三
爬取北京市政百姓信件内容 目标网址:http://www.beijing.gov.cn/hudong/hdjl/com.web.search.mailList.flow 将该网站中的所有网页代码进行获取 package util; import java.io.IOException;import ...
分类:其他好文   时间:2020-01-30 21:04:17    阅读次数:66
linux 安装ifconfig
一:使用yum命令下载安装wget 查看镜像中ifconfig安装包 yum search ifconfig yum install net-tools.x86_64 -y 下面按照提示一步步安装即可 如果没有安装net-tools也可以使用ip addr命令来查看ip ...
分类:系统相关   时间:2020-01-30 19:08:35    阅读次数:82
[LC] 285. Inorder Successor in BST
Given a binary search tree and a node in it, find the in-order successor of that node in the BST. The successor of a node p is the node with the small ...
分类:其他好文   时间:2020-01-30 12:39:54    阅读次数:54
[LC] 270. Closest Binary Search Tree Value
Given a non-empty binary search tree and a target value, find the value in the BST that is closest to the target. Note: Given target value is a floati ...
分类:其他好文   时间:2020-01-30 12:32:09    阅读次数:67
lunrjs - A bit like Solr, but much smaller and not as bright.
lunrjs https://github.com/olivernn/lunr.js Lunr.js is a small, full-text search library for use in the browser. It indexes JSON documents and provides ...
分类:Web程序   时间:2020-01-30 09:49:17    阅读次数:85
N - Aroma's Search CodeForces - 1293D
作为DIV2的D题来讲,这个题目不算难。 题目大意:再规定的时间内寻找宝藏,第i个宝藏的位置为a*x(i-1)+b,a*y(i-1)+b。然后给出初始位置xs,ys和时间t让求再时间t内能够寻找到多少宝藏。 题解: 两相邻的宝藏的坐标差一定是最小的。所以答案一定是连续的一组坐标。注意数据范围x的范围 ...
分类:其他好文   时间:2020-01-29 21:28:40    阅读次数:61
使用EAGLE 9画电路图(02) 绘制原理图
前言: "使用EAGLE 9画电路图(01) 下载安装运行&新建工程" 网上大部分教程会一步步教画元件库,然而我不会这么干.对于初学者来说,保持兴趣是很重要的,一大堆学下来,画电路的兴致都没了,咱们先用现成的封装库,快速出个图再考虑深入研究. 什么是原理图? 对于新手可能搞不懂原理图和印刷板的区别, ...
分类:其他好文   时间:2020-01-29 20:09:43    阅读次数:154
leetcode 653. Two Sum IV - Input is a BST
题目内容 Given a Binary Search Tree and a target number, return true if there exist two elements in the BST such that their sum is equal to the given targ ...
分类:其他好文   时间:2020-01-29 20:00:01    阅读次数:62
二叉查找树——A1099.Build a Binary Search Tree(30) 非完全二叉查找树,但是给出了左右孩子节点,利用左右孩子节点构建二叉查找树,与上一题形成对比
#include <bits/stdc++.h> #include <stdio.h> #include <stdlib.h> #include <queue> using namespace std; const int maxn = 110; struct Node{ int data; int ...
分类:其他好文   时间:2020-01-29 16:18:25    阅读次数:84
二叉查找树——A1043.Is it a Binary Search Tree(25)
#include <bits/stdc++.h> #include <stdio.h> #include <stdlib.h> #include <queue> using namespace std; struct node{ int data; node *left; node *right; ...
分类:其他好文   时间:2020-01-29 14:28:32    阅读次数:74
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!