码迷,mamicode.com
首页 >  
搜索关键字:unique paths ii    ( 12050个结果
Ambulance Dispatch
Given the map of a city, with all the ambulance dispatch centers (救护车派遣中心) and all the pick-up spots marked. You are supposed to write a program to pr ...
分类:其他好文   时间:2020-04-28 13:22:15    阅读次数:61
java输出当前目录(获取当前路径)
System.out.println(System.getProperty("user.dir")); //windows 目录写法: String jsonData = new String(Files.readAllBytes(Paths.get("d:\\work\\test.json"))) ...
分类:编程语言   时间:2020-04-28 09:37:52    阅读次数:76
制作二级下拉菜单
涉及函数: offset(基准位置(可以是单元格可以是区域),行偏移,列偏移)。返回他的引用。可以扩大区域。 方法一:利用定义名称制作二级下拉菜单 如图所示: 第一步:定位所选区域(Ctrl+G)。在公式下面点击定义名称,选中首行定义。 第二部:数据验证——序列制作一级下拉菜单 第三部:数据验证—— ...
分类:其他好文   时间:2020-04-27 22:22:23    阅读次数:60
Mac卸载go
1.删除go目录 一般目录是 /usr/local/go sudo rm -rf /usr/local/go 2.清除环境变量配置 3. mac安装go后自动创建的问题也需要删除 sudo rm -rf /etc/paths.d/go ...
分类:系统相关   时间:2020-04-27 13:05:03    阅读次数:252
1111 Online Map
Input our current position and a destination, an online map can recommend several paths. Now your job is to recommend two paths to your user: one is t ...
分类:其他好文   时间:2020-04-26 19:22:16    阅读次数:72
青蛙跳台阶问题
链接:https://leetcode-cn.com/problems/qing-wa-tiao-tai-jie-wen-ti-lcof/solution/mian-shi-ti-10-ii-qing-wa-tiao-tai-jie-wen-ti-dong/ 一只青蛙一次可以跳上1级台阶,也可以跳上 ...
分类:其他好文   时间:2020-04-26 16:52:06    阅读次数:64
Find Minimum in Rotated Sorted Array II
Problem Suppose a sorted array is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2). Find the minimum ...
分类:其他好文   时间:2020-04-26 12:31:47    阅读次数:51
1、线性DP 213. 打家劫舍 II
https://leetcode-cn.com/problems/house-robber-ii/ //rob 0, not rob n-1 || not rob 0,not rob n-1 ==>rob(0,nums.length-2,nums) //not rob 0,rob n-1 || no ...
分类:其他好文   时间:2020-04-26 10:50:46    阅读次数:45
线段树-区间最值问题
2020-04-25 22:57:32 439. 线段树的构造 II 线段树是一棵二叉树,他的每个节点包含了两个额外的属性start和end用于表示该节点所代表的区间。start和end都是整数,并按照如下的方式赋值: 根节点的 start 和 end 由 build 方法所给出。 对于节点 A 的 ...
分类:其他好文   时间:2020-04-25 23:53:43    阅读次数:116
【LeetCode-回溯】全排列 II
题目描述 给定一个可包含重复数字的序列,返回所有不重复的全排列。 示例: 题目描述: https://leetcode cn.com/problems/permutations ii/ 做这题之前可以先做一下 "全排列" 。 思路 这题和 "全排列" 基本是一样的。这题中的数组可能包含重复的数字,所 ...
分类:其他好文   时间:2020-04-25 12:55:45    阅读次数:49
12050条   上一页 1 ... 60 61 62 63 64 ... 1205 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!