题目描述: 方法:动态规划+状态压缩 class Solution: def minNumberOfSemesters(self, n: int, dependencies: List[List[int]], k: int) -> int: dep = {} # 记录依赖于某节点的节点列表 for ...
分类:
其他好文 时间:
2020-07-01 09:44:49
阅读次数:
90
package com.wing.zx.cloud.system.modular.system.controller; public class Solution { /** * 每次进行取余操作 ( %10),取出最低的数字:y = x % 10 * 将最低的数字加到取出数的末尾:revertNu ...
分类:
其他好文 时间:
2020-07-01 09:21:23
阅读次数:
61
oCPC JS SDK 基础代码安装指南 最后更新时间:2020.04.10 视频指导 http://ocpc.baidu.com/developer/d/video/js/solution 安装步骤 获取代码 以下代码为SDK的安装代码。注:production值唯一,所有客户共用同一值,百度根据 ...
分类:
Web程序 时间:
2020-06-30 22:51:30
阅读次数:
136
Ubuntu安装,卸载软件命令 1.使用apt命令 sudo apt update #同步源 sudo apt list --upgradeable #列出可升级的安装包 sudo apt upgrade #升级软件 sudo apt full-upgrade 升级软件包并卸载当前软件包,作为系统升 ...
分类:
系统相关 时间:
2020-06-30 22:49:00
阅读次数:
81
网络文件共享部署 1. 安装 epel 库 yum upgrade -y yum -y install epel-release 2. 配置防火墙 firewall-cmd --add-service=nfs --permanent --zone=public firewall-cmd --add- ...
分类:
其他好文 时间:
2020-06-30 12:39:16
阅读次数:
46
https://www.cnblogs.com/grandyang/p/5144918.html 1. class Solution { public: int nthSuperUglyNumber(int n, vector<int>& primes) { vector<int> res(1,1) ...
分类:
其他好文 时间:
2020-06-30 10:56:23
阅读次数:
38
这题和62题类似,只不过这里多了障碍物,只需要把有障碍物的格子的方案数设置为0即可,其他格子还是原来的走法。 class Solution { public: int uniquePathsWithObstacles(vector<vector<int>>& obstacleGrid) { int ...
分类:
其他好文 时间:
2020-06-29 11:41:08
阅读次数:
36
1. class Solution { public: int missingNumber(vector<int>& nums) { sort(nums.begin(),nums.end()); for(int i=0;i<nums.size();++i) { if(nums[i]!=i) retu ...
分类:
其他好文 时间:
2020-06-29 11:35:36
阅读次数:
47
问题描述 安装服务端 Tiller helm init --upgrade --tiller-image registry.cn-hangzhou.aliyuncs.com/google_containers/tiller:v2.14.3 --stable-repo-url https://kube ...
分类:
Web程序 时间:
2020-06-29 09:24:36
阅读次数:
119
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