Data Structure and Algorithms--Implementation of Binary Tree
Several Binary Trees
1. Binary Tree
Compared with ordinary trees, binary trees have the following characteristics:
Each node has at most two subtrees, and most attention is paid to them. This means that the degree of any node is less than or equal to 2.
Subtrees are left-right; when ...
Posted on Sat, 25 May 2019 16:18:10 -0700 by Ruzzas
First of all, the principle is clear. In fact, it is very simple:
A. For a resource on the network, first send a request, return from the returned Content-Length to download the size of the file, and then create a file according to the size of the file.
this.fileSize = conn.getContentLength();//Get file size based on response ...
Posted on Sat, 25 May 2019 16:09:58 -0700 by phbock
Overview: Array length is fixed, when the added elements exceed the length of the array, we need to redefine the array. It's too troublesome. Java provides us with collection classes, which can store arbitrary objects. The length can be changed. It increases with the increase of elements and decreases with the decrease of element ...
Posted on Sat, 25 May 2019 15:57:26 -0700 by maskme
1. byte stream
1.1 byte stream, as its name implies, is a stream that operates on bytes. Byte streams can manipulate arbitrary data, such as media data, music, movies, pictures, etc. Of course, they can also manipulate characters. Character stream is based on byte stream. We know that a byte is eight binary bits. In UTF-8, a byte corresponds to ...
Posted on Sat, 25 May 2019 15:01:46 -0700 by kidsleep
In SQL queries, CASE can be used to replace the display of results. There are two main ways of using CASE:
Grammatical Form 1
when Expression then Expression
when Expression then Expression
The execution process of this statement is to compare the value of expression after CASE with that of expres ...
Posted on Sat, 25 May 2019 12:53:10 -0700 by l9pt5
1 Scene Problem
1.1 Read the contents of the configuration file
Consider an application that reads the contents of a configuration file.
Many application projects have application-related configuration files, most of which are customized by project developers, in which some application parameters are defined. Of course, in practical proje ...
Posted on Fri, 24 May 2019 17:35:40 -0700 by nishanthc12
Part V Link Query
-- Linking is the linking of one or more tables according to a certain condition to select the data needed.
-- 5.1 Internal Connection Query
select * from t_book,t_booktype where t_book.bookTypeId=t_booktype.id;
select tb.bookName,tb.author,tby.bookTypeName from t_book tb,t_booktype tby where t ...
Posted on Fri, 24 May 2019 13:13:44 -0700 by nickmanners
java database conactivity
java database connection technology programmer
Technology of data manipulation using java language
Use the framework to operate the database:
2. Introduction to JDBC
In order to simplify and unify the operation of database, SUN company has formulated ...
Posted on Fri, 24 May 2019 12:03:24 -0700 by kiwi2
Talking about Synchronized:
Synchronized is a Java keyword, a built-in feature of the Java language. If a code block is modified by synchronized, when one thread acquires a corresponding lock, when the code block is executed, the other threads
You can only wait until the thread that acquired the lock releases the lock. Thread that acqui ...
Posted on Fri, 24 May 2019 11:22:35 -0700 by GinsBabu
The overall content of the Android Handler mechanism series is as follows:
Thread of Android Handler Mechanism 1
ThreadLocal of Android Handler Mechanism 2
SystemClock Class of Android Handler Mechanism 3
Introduction to Looper and Handler of Android Handler Mechanism 4
Message Profile and Message Object Pool of Android Handler Mechanism 5
Posted on Thu, 23 May 2019 17:52:19 -0700 by eatadi