Difficulty: Medium Related Topics: Greedy Link: https://leetcode.com/problems/queue-reconstruction-by-height/ Description Suppose you have a random li ...
分类:
其他好文 时间:
2020-10-27 10:54:44
阅读次数:
28
ArrayList<ResultTime> list = new ArrayList<>(); //格式化时间 DateTimeFormatter md = DateTimeFormatter.ofPattern("MM-dd"); DateTimeFormatter mh = DateTimeFo ...
分类:
其他好文 时间:
2020-10-27 10:54:31
阅读次数:
21
##1. StudenDaoListImpl.java与StudentDaoArrayImpl.java有何不同? ###答:两者都是用来储存学生信息的,但是方法不同,前者是用链表来储存,后者是用数组来储存的。 ##2.StudentDao.java文件是干什么用的?为什么里面什么实现代码都没有? ...
分类:
其他好文 时间:
2020-10-26 11:30:33
阅读次数:
22
1 class Solution: 2 def longestMountain(self, A: List[int]) -> int: 3 n = len(A) 4 left = [0] * n # 初始化 5 for i in range(1, n): 6 left[i] = (left[i - ...
分类:
其他好文 时间:
2020-10-26 11:28:01
阅读次数:
20
package test /** * scala中的:: , +:, :+, :::, +++, 等操作; */ object listTest { def main(args: Array[String]): Unit = { val list = List(1,2,3) // :: 用于的是向队 ...
分类:
其他好文 时间:
2020-10-26 11:23:59
阅读次数:
20
题目介绍 给定二叉树,将其原地变成一个链表。 Example: 1 / \ 2 5 / \ \ 3 4 6 1 \ 2 \ 3 \ 4 \ 5 \ 6 Solutions 直观解法 发现链表的结果与先序遍历一致,因此先进行先序遍历,再根据遍历的结果构造链表。 # Definition for a b ...
分类:
其他好文 时间:
2020-10-26 11:17:57
阅读次数:
15
ssm + jdk1.8 + mysql5.4实现客户管理系统,一个简单的客户关系管理系统 管理用户的基本数据 客户的分配 客户的流失 已经客户的状态 ...
分类:
其他好文 时间:
2020-10-26 11:00:59
阅读次数:
24
一、Swagger2是什么? Swagger 是一个规范和完整的框架,用于生成、描述、调用和可视化 RESTful 风格的 Web 服务。 优点: 及时性 (接口变更后,能够及时准确地通知相关前后端开发人员) 规范性 (并且保证接口的规范性,如接口的地址,请求方式,参数及响应格式和错误信息) 一致性 ...
分类:
其他好文 时间:
2020-10-26 10:56:42
阅读次数:
19
1. 深度优先遍历 使用场景:常见于各种组合,树遍历,前序遍历、中序遍历、后续遍历 private void dfs(int[] arr, int target,int begin, Deque<Integer> path, Set<List<Integer>> res) { if ( path.s ...
分类:
编程语言 时间:
2020-10-26 10:56:27
阅读次数:
26
以ArrayList为例。 List<Integer> list = new ArrayList<>(); for(int i=0;i<11;i++){ List.add(i);} 遍历方式一:普通for循环(适合ArrayList。) for(int i=0;i<list.size();i++){ ...
分类:
其他好文 时间:
2020-10-26 10:41:31
阅读次数:
24