Sword finger Offer 52. The first common node of the two linked lists
Sword finger Offer 52. The first common node of the two linked lists
Title: Enter two linked lists and find their first common node. As shown in the following two linked lists: The intersection begins at node c1.
Example 1: Input: intersectVal = 8, listA = [4,1,8,4,5], listB = [5,0,1,8,4,5], skipA = 2, skipB = 3 Output: Reference of ...
Posted by Blockis on Mon, 25 Oct 2021 21:44:10 -0700
2021-10-25 pta set reflection annotation and common shortcut keys for Eclipse
catalogue
Eclipse common shortcuts
Completion
6-6 jmu-Java-05 deletion of specified elements in set List (15 points)
Referee test procedure:
answer:
7-2 use of list (15 points)
Input format:
Output format:
Input example:
Output example:
answer:
Eclipse common shortcuts
/* * Eclipse common shortcuts &nbs ...
Posted by Miri4413 on Mon, 25 Oct 2021 21:29:16 -0700
Spring Boot + MyBatis module project construction
1, Foreword
Recently, the company's project is ready to start reconstruction. The framework is selected as SpringBoot+Mybatis. This article mainly records the process of building a SpringBoot multi module project in IDEA.
1. Development tools and system environment IDE: IntelliJ IDEA 2018.2 System environment: mac OSX
2. Project directory st ...
Posted by Backara_Drift on Mon, 25 Oct 2021 18:10:30 -0700
"21 days of good habits" phase I-4
I learned BroadcastReceiver from my teacher today. Let's record it.
Send standard broadcast (use static registration, that is, manually write the registration code in AndroidManifest.xml)
Take a look at my project structure
The MainActivity code is as follows
import android.content.ComponentName;
import android.conten ...
Posted by jb489 on Mon, 25 Oct 2021 16:05:37 -0700
Summary of Java Day 20
1.Set
1.1 Hash list
Hash List: You can understand that saving elements in an array is a chain table Time-key-value pairs (K and V) saved in a Hash list The hashCode:hash algorithm, which changes variable-length data to fixed-length data, is a secure encryption algorithm but does not guarantee uniqueness. If the same object generates ha ...
Posted by bufo on Mon, 25 Oct 2021 09:27:48 -0700
Java from introduction to actual combat Summary - 4.4, JDBC
Java from introduction to actual combat Summary - 4.4, JDBC
1. Introduction
JDBC (Java database connectivity) is a Java API for executing SQL statements. It can provide unified access to a variety of relational databases. It is composed of a group of classes and interfaces written in Java language. JDBC provides a benchmark by which mor ...
Posted by scottrad on Mon, 25 Oct 2021 07:15:04 -0700
Jump between Android app development activities (job 2)
Jump between Android app development activities (job 2)
Purpose of the experiment: (1) Click and jump the page with recycleView. For example, if a tab page is a news list, click a line to jump to the news details page; (2) The basic principle of this assignment is to understand the life cycle of activity and state transition operation;
1, ...
Posted by raister on Mon, 25 Oct 2021 05:44:03 -0700
Notes - javase common classes
1.String class The String class is immutable and cannot be modified after the String object is declared. String s1 = "a"; String s2 ="b"; s1= s1+s2; ...
Posted by sublevel4 on Mon, 25 Oct 2021 04:33:08 -0700
JAVA inheritance and polymorphism
Inheritance is one of the most remarkable features of object-oriented. Inheritance is to derive a new class from an existing class. The new class can absorb the data properties and behaviors of the existing class and expand new capabilities
1, Concept of inheritance
That is, the subclass inherits the properties and behaviors of the parent c ...
Posted by sundru on Mon, 25 Oct 2021 00:32:19 -0700
Blocking queue in java
preface
In the field of multithreading, the so-called blocking will suspend the thread (i.e. blocking) in some cases. Once the conditions are met, the suspended thread will wake up automatically. Why do I need to block the queue? The advantage is that we don't need to care about when to block the thread and what to wake up the thread, be ...
Posted by AustinP on Sun, 24 Oct 2021 23:20:30 -0700