码迷,mamicode.com
首页 >  
搜索关键字:hdu 3333 turing tree    ( 48510个结果
[模板]kd-tree
//It is made by jump~ #include <iostream> #include <cstdlib> #include <cstring> #include <cstdio> #include <cmath> #include <algorithm> #include <ctim ...
分类:其他好文   时间:2020-07-27 17:46:04    阅读次数:68
[LeetCode 1530] Number of Good Leaf Nodes Pairs
Given the root of a binary tree and an integer distance. A pair of two different leaf nodes of a binary tree is said to be good if the length of the s ...
分类:其他好文   时间:2020-07-27 15:58:17    阅读次数:93
j2EE的面试题总汇
基础面试 1、String、StringBuilder和StringBuffer 2、Vector,ArrayList,LinkedList HashTable HashMap TreeMap 3、http报文 4、Redirect和Forwod 5、线程同步,乐观锁,悲观锁 6、Sql查询语句的优 ...
分类:其他好文   时间:2020-07-27 15:44:51    阅读次数:68
leetcode-98-验证二叉搜索树
思路: 1.使用DFS遍历整颗树 2.二叉树的根节点的范围为INT_MIN,INT_MAX. 3.对于当前节点判断是否合法,合法条件:先遍历左子树的最大值是否小于当前节点的值,在遍历右子树,右子树的最小值是否大于当前节点的值 注意: 根节点的边界为 INT_MIN,INT_MAX 左子树的范围:lo ...
分类:其他好文   时间:2020-07-27 13:53:58    阅读次数:61
HDU 1518 Squre
Given a set of sticks of various lengths, is it possible to join them end-to-end to form a square? InputThe first line of input contains N, the number ...
分类:其他好文   时间:2020-07-27 09:42:59    阅读次数:80
hdu 2544 最短路(floyd)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2544 题意 给出一个 $n$ 点 $m$ 边的带权无向图,找出结点 $1$ 到结点 $n$ 的路径最小权。($n \le 100, m \le 10000$) 题解 $n$ 的范围较小,可以用 $O_{ ...
分类:其他好文   时间:2020-07-27 09:38:16    阅读次数:51
二叉排序树
二叉排序树 二叉排序树:BST: (Binary Sort(Search) Tree), 对于二叉排序树的任何一个非叶子节点,要求左子节点的值比当前节点的值小,右子节点的值比当前节点的值大。 二叉排序树创建和遍历 ? 一个数组创建成对应的二叉排序树,并使用中序遍历二叉排序树 使用中序遍历的二叉树结点 ...
分类:编程语言   时间:2020-07-27 09:35:38    阅读次数:81
HDU 2846 Repository
When you go shopping, you can search in repository for avalible merchandises by the computers and internet. First you give the search system a name ab ...
分类:其他好文   时间:2020-07-27 09:29:30    阅读次数:82
Java集合之Map
Map基础介绍 什么是map数据结构 底层就是一个数组结构,数组中的每一项又是一个链表,即数组和链表的结合体 Table是数组,数组的元素时Entry Entry元素时一个key-value键值对,它持有一个指向下一个Entry元素的引用,table数组的每个entry元素同时也作为当前Entry链 ...
分类:编程语言   时间:2020-07-27 09:25:59    阅读次数:75
hdu1325-并查集
//判断输入的数字是否可以构成一棵树 //前一个数是后一个的父亲节点,树的定义:有且仅有一个总根节点,根节点到其他任意节点路径唯一,每个节点只能被其根指向,入度只能为1 #include <stdio.h> #include <string.h> #define maxn 10002 int in[ ...
分类:其他好文   时间:2020-07-27 09:18:05    阅读次数:68
48510条   上一页 1 ... 44 45 46 47 48 ... 4851 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!