Algorithm -- ten common sorting algorithms (implemented in python)
1, Bubble sorting
Algorithm idea:
When sorting the i (i = 1, 2,...) pass, start from the first element of the first n - i + 1 element in the sequence, and compare the two adjacent elements. If the former is greater than the latter, the two exchange positions, otherwise they will not exchange.
Bubble sorting method is to make the element ...
Posted by john87423 on Sun, 20 Feb 2022 19:25:05 +0100
Thinking Guide for learning algorithms and brushing questions
First of all, what we're talking about here are ordinary data structures. I'm not engaged in algorithm competition. Noriko was born. I can only solve conventional problems. In addition, the following is a summary of my personal experience. No algorithm book will write these things, so please try to understand my perspective and don't dwell on d ...
Posted by toovey on Sun, 20 Feb 2022 19:25:49 +0100
The 26th day of learning big data - supplementing IO stream and multithreading
Day 26 of learning big data - Supplementary IO stream and multithreading (1)
Summary of multithreading:
1, Overview of multithreading:
Process: The running program is an independent unit of the system for resource allocation. Each process has its own memory space and resources
Thread: It is a single sequential control flow of a process, ...
Posted by villas on Sun, 20 Feb 2022 19:16:41 +0100
java foundation - Object class
1, toString method in Object class:
java.lang.Object class is the root class in the Java language, that is, the parent class of all classes.
All method subclasses described in it can be used. When an Object is instantiated, the final parent class is Object.
To create a Person class:
public class Person {
private String name;
private ...
Posted by Hayce on Sun, 20 Feb 2022 19:16:19 +0100
c + + reading binary bin file
link ofstream is from memory to hard disk, and ifstream is from hard disk to memory. In fact, the so-called stream buffer is memory space In C + +, there is a stream class. All I/O is based on this "stream" class, including the file I/O we need to know 1. Inserter (< <)
Output data to the stream. For example, the system has a d ...
Posted by marcela1637 on Sun, 20 Feb 2022 19:14:51 +0100
JS - built in object String
String: a global object is a constructor for a string or a sequence of characters.
The following lists several properties and methods commonly used by String objects.
Properties:
The length property indicates the length of a string.
let string="hello"
document.write(string.length)//Return to 5
method:
The charAt() method returns the spec ...
Posted by ccx004 on Sun, 20 Feb 2022 19:07:19 +0100
Polymorphism of Python
The art and Tao of Python Programming: an introduction to Python language Link to the video course "the art and Tao of Python Programming: an introduction to Python language": https://edu.csdn.net/course/detail/27845
Polymorphism
The word polymorphism means having many forms. In programming, polymorphism means that the same function ...
Posted by lilywong on Sun, 20 Feb 2022 19:03:28 +0100
Advanced application of spring MVC -- transform the handwritten spring MVC into a real spring MVC
Source code (code cloud): https://gitee.com/yin_zhipeng/implement-_springmvc_of_myself.git
1, Handwritten spring MVC
For length reasons, I put it in this article https://blog.csdn.net/grd_java/article/details/123000127
2, Spring MVC advanced application
Spring MVC
Encapsulate the servlet and simplify the framework of servlet developmen ...
Posted by MilesWilson on Sun, 20 Feb 2022 19:02:24 +0100
vs2010+soui2+cfe3.3071 implement js call
preface
In the previous article The 90.6.0 version of vs2010+cef3 embeds cef3 into the mfc window , part of the windows of mfc are embedded into cef3; The following continuous test is based on the cef3 test under soui2. However, one of the pits learned after two days of testing that the version of cef3 used is too new (the latest at present), ...
Posted by plzhelpme on Sun, 20 Feb 2022 18:59:23 +0100
Vue3.0 project actual combat + ElementUI from entry to actual combat
If you are Xiaobai, this set of information can help you become a big bull. If you have rich development experience, this set of information can help you break through the bottleneck 2022web full set of video tutorial front-end architecture H5 vue node applet Video + data + code + interview questions.
Course address: Vue3 0 project actual ...
Posted by phwae on Sun, 20 Feb 2022 18:55:54 +0100