02 2020 档案
摘要:项目结构如下: 第一步:添加依赖: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://
阅读全文
摘要:#include <bits/stdc++.h> #include <stdio.h> #include <stdlib.h> #include <queue> using namespace std; const int N = 1111; vector<int> G[N];//邻接表 bool
阅读全文
摘要:package com.apress.reactor.example; import com.apress.reactor.example.domain.ToDo; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org
阅读全文
摘要:package com.apress.todo.repository; import com.apress.todo.domain.ToDo; import org.springframework.dao.EmptyResultDataAccessException; import org.spri
阅读全文
摘要:The Spring MVC is designed around the org.springframework.web.servlet. DispatcherServlet class. This servlet is very flexible and has a very robust fu
阅读全文
摘要:@RestController class WebApp{ @GetMapping('/') String index(){ "Spring Boot Rocks" } } Review the output from the command in your terminal. Note all t
阅读全文
摘要:先来看下手动配置bean的过程(第一章还没使用Spring Boot) A Simple Spring Web Application Let’s start by creating a Spring web application— a ToDo app that offers a REST AP
阅读全文
摘要:堆的详细创建过程:参考:https://www.jianshu.com/p/21bef3fc3030 明白堆的详细创建过程的前提是要理解Shift Down。 但是这明显不符合最大堆的定义,所以我们需要让该完全二叉树转换成最大堆!怎么转换成一个最大堆呢? 最大堆有一个特点就是其各个子树都是一个最大堆
阅读全文
摘要:插入元素: 取出元素: 白板编程:实现堆 创建堆:
阅读全文