码迷,mamicode.com
首页 >  
搜索关键字:permutations ii    ( 7008个结果
python内置函数-排列组合函数
python内置函数-排列组合函数 product 笛卡尔积 (有放回抽样排列) permutations 排列 (不放回抽样排列) combinations 组合,没有重复 (不放回抽样组合) combinations_with_replacement 组合,有重复 (有放回抽样组合) 详细的参见 ...
分类:编程语言   时间:2020-07-01 14:13:21    阅读次数:81
210. Course Schedule II
package LeetCode_210 import java.util.* import kotlin.collections.ArrayList /** * 210. Course Schedule II * https://leetcode.com/problems/course-sched ...
分类:其他好文   时间:2020-06-30 22:58:57    阅读次数:116
matlab 绘制三维图并标注每个点的坐标
clc close all clear x = 1:20; y = 1:20; z = rand(1,20); plot3(x,y,z) xlabel 时间 ylabel 方位角(°) zlabel 高低角(°) grid on for ii=1:1:length(x) text(x(ii),y(i ...
分类:其他好文   时间:2020-06-30 22:35:46    阅读次数:131
0045. Jump Game II (H)
Jump Game II (H) 题目 Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array r ...
分类:其他好文   时间:2020-06-30 09:14:16    阅读次数:59
LeetCode63. 不同路径 II
这题和62题类似,只不过这里多了障碍物,只需要把有障碍物的格子的方案数设置为0即可,其他格子还是原来的走法。 class Solution { public: int uniquePathsWithObstacles(vector<vector<int>>& obstacleGrid) { int ...
分类:其他好文   时间:2020-06-29 11:41:08    阅读次数:36
46. Permutations 全排列
Given a collection of distinct integers, return all possible permutations. Example: Input: [1,2,3] Output: [ [1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1, ...
分类:其他好文   时间:2020-06-29 09:55:51    阅读次数:59
90. Subsets II
Given a collection of integers that might contain duplicates, nums, return all possible subsets (the power set). Note: The solution set must not conta ...
分类:其他好文   时间:2020-06-29 00:11:37    阅读次数:54
leetcode 简单题 13. 罗马数字转整数
罗马数字包含以下七种字符: I, V, X, L,C,D 和 M。 字符 数值 I 1 V 5 X 10 L 50 C 100 D 500 M 1000 例如, 罗马数字 2 写做 II ,即为两个并列的 1。12 写做 XII ,即为 X + II 。 27 写做 XXVII, 即为 XX + V ...
分类:其他好文   时间:2020-06-28 20:46:27    阅读次数:53
13. 罗马数字转整数
罗马数字包含以下七种字符: I, V, X, L,C,D 和 M。字符 数值I 1V 5X 10L 50C 100D 500M 1000例如, 罗马数字 2 写做 II ,即为两个并列的 1。12 写做 XII ,即为 X + II 。 27 写做 XXVII, 即为 XX + V + II 。通常 ...
分类:其他好文   时间:2020-06-28 13:39:42    阅读次数:56
LeetCode 第29场 双周赛 题目4 题解
第一次参加 LeetCode 的比赛,花了1小时多一点才AK,不过还是感觉挺好玩的。 前面3题实在太无聊了,就不说了。只记录一下有意思的第4题。 5435. 并行课程 II 题意:给你一个整数 n 表示某所大学里课程的数目,编号为 1 到 n ,数组 dependencies 中, dependen ...
分类:其他好文   时间:2020-06-28 09:35:31    阅读次数:90
7008条   上一页 1 ... 22 23 24 25 26 ... 701 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!