无向图 我们用邻接图来表示图 具体实现的代码 public class Graph { private final int V; private int E; private Bag<Integer>[] adj; public Graph(int V){ this.V = V; E = 0; ad ...
分类:
其他好文 时间:
2021-03-08 14:20:08
阅读次数:
0
包装类 基本数据类型所对应的引用数据类型 0bject可统一所有数据,包装类的默认值是null 包装类对应 基本数据类型 包装类型 byte Byte short Short int Integer long Long float Float double Double boolean Boolea ...
分类:
其他好文 时间:
2021-03-08 14:18:04
阅读次数:
0
Integer max = null; //今天天气阴 for (int i = 0; i < nums.length; i++) { boolean change = false; //我拿着雨伞来到青浦图书馆,当然这里j虽然是从比i大一个数的地方开始自增 //但最后也需要将数字从开始的地方开始自 ...
分类:
其他好文 时间:
2021-03-08 13:50:41
阅读次数:
0
public function lonlat_info(){ $url = 'http://api.map.baidu.com/reverse_geocoding/v3/?ak=**********&output=json&coordtype=bd09ll&location=33.351943643 ...
The magic shop in Mars is offering some magic coupons. Each coupon has an integer N printed on it, meaning that when you use this coupon with a produc ...
分类:
其他好文 时间:
2021-03-06 14:44:48
阅读次数:
0
练习71: 题目: 编写input()和output()函数输入,输出5个学生的数据记录。 程序: N = 5 # stu # num : string # name : string # score[4]: list student = [] for i in range(5): student. ...
分类:
编程语言 时间:
2021-03-06 14:13:52
阅读次数:
0
水~。 注意右半部为$0$的情况。 int main() { int T; cin>>T; while(T--) { string s; cin>>s; string a=s.substr(0,s.size()/2),b=s.substr(s.size()/2); int ts=stoi(s),ta ...
分类:
其他好文 时间:
2021-03-04 13:05:25
阅读次数:
0
Given an array of integers nums and an integer target. Return the number of non-empty subsequences of nums such that the sum of the minimum and maximu ...
分类:
其他好文 时间:
2021-03-03 12:23:05
阅读次数:
0
泛型 1.什么是泛型 1.1泛型概念:Java泛型是J2 SE1.5中引入的一个新特性,其本质是参数化类型,也就是说所操作的数据类型被指定为一个参数(type parameter), 这种参数类型可以用在类、接口和方法的创建中,分别称为泛型类、泛型接口、泛型方法。 1.2本质:参数化类型 1.3语法 ...
分类:
其他好文 时间:
2021-03-02 12:20:03
阅读次数:
0
We have a collection of stones, each stone?has a positive integer weight. Each turn, we choose the two?heaviest?stones?and smash them together. Suppos ...
分类:
其他好文 时间:
2021-03-02 12:02:57
阅读次数:
0