A. Dense Array 链接: https://codeforces.com/contest/1490/problem/A 思路: 贪心。找到一队不满足的数,求最大值是最小值2的几次幂倍就好。 代码: #include<iostream> #include<cstdio> #include<c ...
分类:
其他好文 时间:
2021-02-19 13:36:52
阅读次数:
0
java基础--容器 List、ArrayList、LinkList 1.容器的总体框架 详细的贴一张大佬的图 ,有点错的地方就是Map那个分支是单独的,和Collection接口没有任何关联。原文地址 2.容器简述 容器简单点可以说就是一个桶,你可以往桶里放东西、拿东西、查看数据 不同的桶放不一样 ...
分类:
编程语言 时间:
2021-02-19 13:22:05
阅读次数:
0
0 引言 本文将常用的指令记录下来,以备查询。 1 git Command Meaning Reference Linking git status view all files' state, tracked or untracked, commited or un commited git st ...
分类:
系统相关 时间:
2021-02-19 13:10:17
阅读次数:
0
组合求和( Combination Sum) 1. 题目描述 Given an array of distinct integers candidates and a target integer target, return a list of all unique combinations of ...
分类:
编程语言 时间:
2021-02-18 13:37:18
阅读次数:
0
Tomcat Web在英语中表示网页的意思,它用于表示Internet主机上供外界访问的资源,分为静态web资源和动态web资源。 静态web资源(如html 页面):指web页面中供人们浏览的数据始终是不变。 动态web资源:指web页面中供人们浏览的数据是由程序产生的,不同时间点访问web页面看 ...
分类:
编程语言 时间:
2021-02-18 13:10:12
阅读次数:
0
1. 题目描述 Given an array nums of distinct integers, return all the possible permutations. You can return the answer in any order. 2. Examples 示例1: Input ...
分类:
编程语言 时间:
2021-02-18 13:07:50
阅读次数:
0
Given an array of non negative integers, return the maximum sum of elements in two non overlapping (contiguous) subarrays, which have lengths and . (F ...
分类:
移动开发 时间:
2021-02-18 12:53:23
阅读次数:
0
深入理解gradle中的task 简介 在之前的文章中,我们讲到了如何使用gradle创建一个简单的task,以及task之间怎么依赖,甚至使用了程序来创建task。在本文中,我们会更加深入的去了解一下gradle中的task。 定义task 定义一个task可以有很多种方式,比如下面的使用stri ...
分类:
其他好文 时间:
2021-02-17 15:03:41
阅读次数:
0
给定一个非空且只包含非负数的整数数组 nums, 数组的度的定义是指数组里任一元素出现频数的最大值。 你的任务是找到与 nums 拥有相同大小的度的最短连续子数组,返回其长度。 示例 1: 输入: [1, 2, 2, 3, 1] 输出: 2 解释: 输入数组的度是2,因为元素1和2的出现频数最大,均 ...
分类:
编程语言 时间:
2021-02-17 14:37:36
阅读次数:
0
A company is planning to interview people. Given the array where ,?the cost of flying the person to city is , and the cost of flying the person to cit ...
分类:
其他好文 时间:
2021-02-17 14:20:21
阅读次数:
0