[LeetCode 45 55 1306]Jump Game I,II,III[JAVA]
Jump game, three questions in total.
55. Jump Game
1. topic
2. way of thinking
This problem is to consider whether we can reach the last position. When we reach each subscript, we can maintain a maximum subscript value to determine whether we can reach the last subscript of the array.
3. code
...
Posted by OttoBufonto on Fri, 17 Jan 2020 20:21:54 -0800
What are generics?
I. Concepts of Generics
Generics are a new feature in Java SE5. Generics are essentially type parameterized or parameterized types. Without creating new types, the types specified by generics can be used to control the specific restrictions on parameters.
2. Meaning of Generics
General classes and methods can only use specific types: either bas ...
Posted by fatepower on Fri, 17 Jan 2020 17:15:16 -0800
IOC container and dependency injection of Laravel
We combed before Laravel inversion of control and dependency injection In this article, we combine the Laravel framework to see how it is implemented.
1. Entry document
<?php
/**
* Laravel - A PHP Framework For Web Artisans
*
* @package Laravel
* @author Taylor Otwell <taylor@laravel.com>
*/
define('LARAVEL_START', ...
Posted by ConcreteDJ on Fri, 17 Jan 2020 06:54:21 -0800
WeChat public number development menu processing
I. Preface
WeChat public number development (1) WeChat access certification as developer
WeChat public number development (2) message processing
This article will implement
Get access_token according to AppID and AppSecret
Custom menu (create menu, query menu, delete menu)
Some tips in wechat documents:
access_token must be stored with at ...
Posted by big_c147 on Fri, 17 Jan 2020 05:22:26 -0800
Redis 5 - new cluster installation mode - redis cli - Cluster Create
outline
For the principle of cluster, please refer to Redis design and Implementation - working principle of cluster , I won't go into details here. I introduced how to use redis trib toolset to install cluster a long time ago How to build and use Redis cluster In the past two days, I read the official documents and found a new way of installa ...
Posted by Dillinger on Fri, 17 Jan 2020 03:15:30 -0800
spring data jpa many to many relationship reports a missed entity passed to persist error
Recently, when spring data jpa is used to maintain many to many relationships between tables, a strange problem arises. When a new object is put into the entity class to maintain many to many relationship set, and then saved with jpa, the following exception will appear.
org.springframework.dao.InvalidDataAccessApiUsageException: detached enti ...
Posted by Shadow Wolf on Fri, 17 Jan 2020 00:58:31 -0800
Data source and connection pool of Mybatis principle
In Java engineering projects, we often use the Mybatis framework to add, delete, query and modify the data in the database. Its principle is to encapsulate JDBC and optimize the connection of data sources.
Let's review the process of JDBC operating database.
JDBC operation database
When JDBC operates the database, you need to specify the co ...
Posted by The End on Thu, 16 Jan 2020 23:08:18 -0800
Springboot unit test@
In computer programming, unit testing is a software testing method, which is used to test a single unit of source code, a collection of one or more computer program modules, and related control data, use process and operation process to determine whether they are suitable for use. In short, when we are doing unit tests, we only test one code un ...
Posted by anthonydamasco on Thu, 16 Jan 2020 07:37:32 -0800
kerberos pitching Guide
Change from: https://www.jianshu.com/p/fc2d2dbd510b
Principle introduction
kerberos is mainly used for identity authentication in network communication, and its main feature is "complexity". So it's best to familiarize yourself with the principles of kerberos before entering the pit. Her ...
Posted by teguh123 on Thu, 16 Jan 2020 06:33:13 -0800
SpringBoot integrates Alibaba RocketMQ
What is RocketMQ
Alibaba message queuing version RocketMQ not only provides asynchronous decoupling and peak clipping and valley filling capabilities for distributed application systems, but also has the features of massive message accumulation, high throughput, reliable retry and other features required by Internet applications, as well as cha ...
Posted by blackwinged on Thu, 16 Jan 2020 04:37:27 -0800