Talk about collection.Queue
As mentioned before, the main function of collections in Java is to hold other data and implement common data structures. So when we want to use common data structures such as "stack", "Queue", "linked list" and "array", we should think that we can directly use the Collection framework provided by JDK. Fo ...
Posted by lth2h on Mon, 09 Mar 2020 03:32:56 -0700
Things between linux processes
Before I wrote this article, I was afraid of the interprocess communication of linux. However, after reading some other articles, I found that the interprocess communication of linux is much more difficult than what I learned. First of all, the concept of thread under linux has been weakened. Thread ...
Posted by gterre on Mon, 09 Mar 2020 00:09:18 -0700
Python 3 standard library: math mathematical functions
1. math function
1.1 special constant
Many mathematical operations depend on special constants. math contains values of π (pi), e, Nan (not a number) and infinity (infinity).
import math
print(' π: {:.30f}'.format(math.pi))
print(' e: {:.30f}'.format(math.e))
print('nan: {:.30f}'.format(math.nan))
print('inf: {:.30f}'.format(math.inf))
...
Posted by lenhewitt on Sat, 07 Mar 2020 22:02:45 -0800
What do you know about spring's dependency injection?
A previous article: The difference between dependency lookup and dependency injection , this article talks about dependency lookup and dependency injection as the means to implement IOC. We use more dependency injection in our actual work. How much do you know about the specific patterns and types of ...
Posted by DannyM on Sat, 07 Mar 2020 18:40:34 -0800
The second part of JAVA basic learning -- array, string class, set class
Here we undertake Contents of the previous part
Let's learn about array, string class and collection class of Java language
array 80
Java's array concept is similar to C + +, it should be noted that array is an object
One-dimensional array
Directly specify the initial value to create an array ...
Posted by joel24 on Sat, 07 Mar 2020 03:20:01 -0800
Bin Packing of Google or tools
Refer to Google or tools for this article Official website documents Describes the use of or tools.
The description of packing problem is to put a set of items of given size into a container with fixed capacity. Generally, due to the capacity limitation of the container, it is impossible to put all item ...
Posted by decodv on Sat, 07 Mar 2020 03:00:56 -0800
The practice and application of thermostat strategy in inventor's quantification platform
Why is it called a thermostat. We name the system according to its ability to adapt to market, shock and trend. The system comes from our observation of the success of a particular system in a particular market area. This system can create dual strategies to make full use of the two models of the market.
First, we create a function to help ...
Posted by AaZmaN on Fri, 06 Mar 2020 23:55:44 -0800
Python learning diary 05
Catalog
Day.05
1. tuple
2. Practice of constructing program logic
3. Today's summary
Day.05
2020.02.23
Today's main learning content is tuple and training seven exercises to consolidate the basis of the previous study.
1. tuple
Tuples are created in the same way as lists, except that lists ar ...
Posted by azn_romeo_4u on Fri, 06 Mar 2020 23:32:34 -0800
24. Learn Java's day08
On the trap problem of variable parameter and method overload:
(1) Error: cannot declare method(int []) and method(int) in Test02Problem at the same time )
(2) Error: cannot declare method(int a, int args) and method(int args)
Because the above situation will lead to the situation that both methods ma ...
Posted by lucifersolutions on Fri, 06 Mar 2020 03:40:52 -0800
Analysis of seven sorting algorithms and implementation of C language source code
Analysis of seven sorting algorithms and implementation of C source code
Selection sort
First of all, initialize the first element of the array, the outer loop traverses the sorted array in turn, the inner loop traverses the array again, until the end of the array. If the elements need to be exchang ...
Posted by alex_funky_dj on Thu, 05 Mar 2020 20:11:39 -0800