码迷,mamicode.com
首页 >  
搜索关键字:the unique mst    ( 5979个结果
19.2.3 [LeetCode 39] Combination Sum
Given a set of candidate numbers (candidates) (without duplicates) and a target number (target), find all unique combinations in candidates where the ...
分类:其他好文   时间:2019-02-03 18:11:43    阅读次数:150
LeetCode 62. Unique Paths
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or right at any p ...
分类:其他好文   时间:2019-02-03 18:05:27    阅读次数:184
Permutation Sequence LT60
The set [1,2,3,...,n] contains a total of n! unique permutations. By listing and labeling all of the permutations in order, we get the following seque ...
分类:其他好文   时间:2019-02-03 11:07:07    阅读次数:129
Codeforces 1108F MST Unification MST + LCA
Codeforces 1108F MST + LCA F. MST Unification Description: You are given an undirected weighted connected graph with $n$ vertices and $m$ edges withou ...
分类:其他好文   时间:2019-02-03 00:52:45    阅读次数:156
Remove Duplicates from Sorted Array - LeetCode
[toc] 题目链接 "Remove Duplicates from Sorted Array LeetCode" 注意点 解法二要考虑输入为空的情况 解法 解法一:只要两行!超级简单,使用了 "unique函数" 。时间复杂度为O(n) 解法二:来自官方题解。维护两个指针,i是慢指针,j是快指针。 ...
分类:其他好文   时间:2019-02-02 14:29:11    阅读次数:173
216. Combination Sum III
Find all possible combinations of k numbers that add up to a number n, given that only numbers from 1 to 9 can be used and each combination should be ...
分类:其他好文   时间:2019-02-01 23:27:38    阅读次数:269
MyBatis学习小结
一款轻量级的ORM框架 全局配置文件 SqlMapConfig.xml 基本映射文件 获取MySQL自增主键ID的两种方式 1.使用mysql的 LAST_INSERT_ID() 函数: 2.使用 useGeneratedKeys 属性,可在全局配置文件中将此属性设为true: 获取非自增主键的id ...
分类:其他好文   时间:2019-02-01 18:56:30    阅读次数:193
5.6 数据库表关系
多对一或者一对多 格式: 示例: 一个出版社可以出多本书 一对多 一本书可以被多个出版社出版 一对多 代码: 被关联表 关联表 详解 FK 字段在关联表创建,会新增一个 FK字段 建立于被关联表的映射 被关联表的被关联字段必须是唯一的,即多对一的 "一" 关联表的FK 字段是可以不唯一的, 即多对一 ...
分类:数据库   时间:2019-02-01 01:13:58    阅读次数:220
Python - 利用flask搭建一个共享服务器
零、概述 我利用flask搭建了一个简易的共享服务器,分享给大家 一、python代码 二、html代码 三、使用 1. 更改python代码中的rootdir,这里需要填你所共享的文件夹 2. render_template('test.html', ...),我将html命名为test.html ...
分类:编程语言   时间:2019-01-31 20:49:04    阅读次数:229
(模板)最小生成树
2019-01-30 最小生成树基本算法 定义: 给定一个边带权的无向图G=(V,E),n=|V|,m=|E|,由V中全部n个定点和E中n-1条边构成的无向连通子图被称为G的一颗生成树。 边的权值之和最小的生成树被称为无向图G的最小生成树。(Minimun Spanning Tree,MST). 定 ...
分类:其他好文   时间:2019-01-31 00:14:26    阅读次数:180
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!