https://leetcode-cn.com/problems/subsets/submissions/ 给定一组不含重复元素的整数数组 nums,返回该数组所有可能的子集(幂集)。 说明:解集不能包含重复的子集。 示例: 输入: nums = [1,2,3]输出:[ [3], [1], [2], ...
分类:
其他好文 时间:
2020-06-28 13:17:22
阅读次数:
330
栈stack - 是限定在表尾进行插入或删除的线性表 #ifndef __STACK_H__ #define __STACK_H__ #define TRUE 1 #define FALSE 0 #define OK 1 #define ERROR 0 #define INFEASIBLF -1 # ...
分类:
编程语言 时间:
2020-06-28 09:31:24
阅读次数:
81
Flatten Nested List Iterator (M) 题目 Given a nested list of integers, implement an iterator to flatten it. Each element is either an integer, or a list ...
分类:
其他好文 时间:
2020-06-28 09:23:02
阅读次数:
45
作为java开发的IDE,idea的2020 社区办还是比较好用的,比2018版的改进不少。 一个java注解的简单例子 package main;import java.lang.annotation.ElementType;import java.lang.annotation.Retentio ...
分类:
编程语言 时间:
2020-06-27 22:50:58
阅读次数:
131
问题 Description //DVDPlayer.java public class DVDPlayer { private static DVDPlayer instance = new DVDPlayer(); public static DVDPlayer getInstance(){ r ...
分类:
其他好文 时间:
2020-06-27 20:21:00
阅读次数:
75
题目要求:数组中有10首歌曲。要求随机播放全部歌曲且不能重复播放。 笔试时时间比较紧,只想到了play1()这种思路(运气好还是通过了),play2()是后来想到的稍微比play1()强一点的思路,play3()是网上看到的思路不一样,所以也发了出来(附有原文链接,如果不同意可以删除)。 /** * ...
分类:
编程语言 时间:
2020-06-27 17:31:15
阅读次数:
112
首先我们要有城市的json数据 以下以上饶市为例,是上饶市的json数据 {"type":"FeatureCollection","features":[{"type":"Feature","properties":{"adcode":361102,"name":"信州区","center":[11 ...
分类:
其他好文 时间:
2020-06-27 16:04:34
阅读次数:
117
添加Microsoft.Win32程序集 private void OnOpenFile(object sender, EventArgs e) { OpenFileDialog openFileDialog = new OpenFileDialog(); openFileDialog.Title ...
//给定一个二维数组,其每一行从左到右递增排序,从上到下也是递增排序。给定一个数,判断这个数是否在该二维数组中。 //要求时间复杂度 O(M + N),空间复杂度 O(1)。其中 M 为行数,N 为 列数。 //该二维数组中的一个数,小于它的数一定在其左边,大于它的数一定在其下边。因此,从右上角开始 ...
分类:
编程语言 时间:
2020-06-27 11:51:56
阅读次数:
72
1.3、自定义注解 public class Test03 { //对于没有默认值的注解必须显示赋值 // 有默认值的注解可以不再赋值 @MyAnnotation2(id = 11) public void test(){}; //注解只有一个参数时 多用value // 可以在配置的地方省略 va ...
分类:
其他好文 时间:
2020-06-27 11:28:46
阅读次数:
56