LeetCode 56. Consolidated intervals

My LeetCode: https://leetcode-cn.com/u/ituring/ My LeetCode brush Title source [GitHub]: https://github.com/izhoujie/Algorithmcii LeetCode 56. Consolidated intervals subject Given a set of intervals, merge all overlapping intervals. Example 1: Input: [[1,3], [2,6], [8,10], [15,18]] Output: [[1,6], [8,10], [15,18]] Interpretation: The interval ...

Posted on Fri, 17 Apr 2020 09:50:10 -0700 by naitsir

C#New Language Features (6.0-8.0)

Read-only Auto Properties Make this property read-only by declaring an automatic property that has only a get accessor public string FirstName { get; } public string LastName { get; } Auto-read-only properties can be assigned in constructors, and assignments elsewhere will result in compilation errors. Automatic Attribute Initializer When de ...

Posted on Thu, 16 Apr 2020 00:50:22 -0700 by harmor

C × basic knowledge series - more usage of 9 strings

0. Preface In the previous article, I briefly introduced the relevant content of string, but didn't involve more relevant content. This article will try to explain a lot of string operations that will be encountered in the actual development work. 1. Create a string This section describes how to create a string C ා basic knowledge series - 2 st ...

Posted on Wed, 15 Apr 2020 12:14:32 -0700 by polson

Sword finger offer -- stack containing min function

Title: to define the data structure of the stack, please implement a min function in this type to get the minimum elements of the stack. Method 1: Time consuming, space saving import java.util.Stack; public class Solution { private Stack<Integer> stackData = new Stack<>(); private Stack<Integer> stackMin= ...

Posted on Wed, 15 Apr 2020 10:43:16 -0700 by dannynosleeves

Issue 02: Art of MySQL data type - large object field

I've shared one before MySQL big object example , let's talk about the advantages and disadvantages of large objects and the use scenarios in detail today. We divided MySQL's large object types into TEXT / BLOB and JSON to illustrate. 1, TEXT / BLOB type The difference between TEXT and BLOB is very simple. TEXT is stored in plaintext, with cor ...

Posted on Wed, 15 Apr 2020 01:52:58 -0700 by Daen

Data Structure and Algorithms Series 15 (Quick Sort)

1. Introduction 1.1. Why learn data structures and algorithms? Some people say that data structures and algorithms, computer networks, and operating systems are all the same. Without daily development, you might never use them in your life except for interviews. Some people say that I do business development. As long as I am familiar with A ...

Posted on Tue, 14 Apr 2020 21:42:30 -0700 by Hexxx

Line tree from entry to advanced

What is a line tree?? How to write line tree?? If you ask this question the day before the test, you will lose the first prize; if you are still hitting the first prize of popularization group, this blog will waste 5-20 minutes of your life. It is obvious from the above two sentences that the data structure of line segment tree is a transitio ...

Posted on Sat, 11 Apr 2020 22:10:58 -0700 by discombobulator

Some operations of jQuery on page labels and properties

Add and delete class attribute in jQuery: //Change value in class = '' $('#**').removeClass('**'); $('#**').addClass('**'); $("#**").removeClass('**').addClass('**'); //Change tag attribute value $('#**').attr("display", "none"); //Add property values to labels $('#**').attr({"Attribute name":"Attribute value"}); ...

Posted on Thu, 09 Apr 2020 11:20:05 -0700 by weyes1

Talk about the token expire in use of OAuth 2.0

Background of problem A private letter from a classmate asked such a question. Visit pig4cloud's Demonstration environment Check the return message of login request network as follows: { "access_token":"16d35799-9cbb-4c23-966d-ab606029a623", "token_type":"bearer", "refresh_token":"495dbde5-1bbb-43c9-b06b-ecac50aa5d53", "expires_ ...

Posted on Wed, 08 Apr 2020 05:09:38 -0700 by Zeekar

go language series - object oriented programming

Catalog object-oriented programming structural morphology Diagram of relationship between structure and structure variable (instance / object) The difference and connection between structural body and structural body variable (example) Layout of structure variables (instances) in memory [important] Fields / properties Create structure variab ...

Posted on Tue, 07 Apr 2020 21:28:55 -0700 by regiemon