The longest substring without repetition -- LeetCode

Title Description Given a string, please find out the length of the longest substring that does not contain duplicate characters. Type: "abcabcbb" Output: 3 Explanation: because the longest substring without repeating characters is "abc", its length is 3. Enter: "bbbbb" Output: 1 Explanation: b ...

Added by starnol on Wed, 04 Dec 2019 17:38:27 +0200

Safety design of php interface

Safety design of php interface The security of the interface is mainly designed around the three mechanisms of Token, Timestamp and ign, which ensure that the data of the interface will not be tampered with and called repeatedly. The following is specific: (1)Token authorization mechanism: (Token is the credential of the client to access the ...

Added by Opv on Mon, 02 Dec 2019 16:28:56 +0200

Deep understanding of lambda expression and functional programming functional interface source code analysis

package com.java.design.java8; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringRunner; import java.util.Arrays; import java.util.Compar ...

Added by Cagecrawler on Sun, 01 Dec 2019 22:03:58 +0200

Unicode converteutil: converting Unicode to String

Unicode is a kind of character set coding. It is a character coding scheme developed by international organizations that can accommodate all the words and symbols in the world. It can represent any character. In java language, Unicode is composed of four hexadecimal digits, such as: u597d. java does not provide a tool class to d ...

Added by cody7 on Wed, 20 Nov 2019 21:25:48 +0200

QT realizes the function of simple calculator

Design sketch: 1. Define a class name expr, select dialog as the base class, or select the default class name and base class Click next to finish. The project is created. 2. Double click the. ui file in the interface file under the project file to enter the interface layout 3. Add buttons according to the functions you need to i ...

Added by soianyc on Sun, 17 Nov 2019 22:10:32 +0200

New features of ES6, ES7, ES8, ES9 and ES10

1. New features of ES6 (2015) class Modularization Arrow function Function parameter defaults Template string Destructuring assignment Extension operator Object attribute shorthand Promise Let and Const 1.1 module ES5 does not support native modularity, and modules are added as an important part of ES6. The function of the module is mainly co ...

Added by vivek on Fri, 15 Nov 2019 12:23:12 +0200

Spring Boot 2.X: integrated Swagger2 development API documentation (Online + offline)

Preface I believe that many back-end development projects will encounter the need to write api documents, whether it is to provide better docking for the front-end, mobile end, etc., or in the future for the convenience of handover, it will be required to write api documents. There are many pain points in handwritten api documents: When the do ...

Added by hmvrulz on Wed, 06 Nov 2019 04:54:00 +0200

python basic knowledge test -- 01 string

python basic knowledge test In the process of using python, many basic knowledge does not need to be gradually unfamiliar. In order to enhance the familiarity, we do corresponding tests for each basic knowledge point of python, and constantly summarize and review.Knowledge points: Character string lis ...

Added by shu on Tue, 22 Oct 2019 22:34:19 +0300

leetcode algorithm question 125 (simple 033) Rome numeric integer

leetcode Algorithmic Question 125 (Simple 033) Roman Number to Integer Topic introduction Given a string, verify that it is a palindrome string, only letters and numeric characters are considered, and the case of letters can be ignored. Note: In this topic, we define empty strings as valid palindrom ...

Added by ukweb on Wed, 02 Oct 2019 13:40:02 +0300

linux variable, cut_sort_wc_uniq_tee_tr_split command usage

View system variables:1.env command [root@localhost ~]# env 2.set command [root@localhost ~]# set *set can display user-defined variables Custom variables: 1. Define variables: [root@localhost ~]# a=test [root@localhost ~]# echo $a test 2. Naming rules for variables: can include upper and lower case letters, numbers, underscores (cannot start ...

Added by poncho4u on Tue, 17 Sep 2019 19:12:24 +0300