JavaSE02, method, recursive iteration

1, Input and output The first way: import java.util.Scanner; public class TestDemo { public static void main(String[] args) throws IOException { System.out.print("Enter a Char:"); char i = (char)System.in.read(); // Alt + ENTER System.out.println("your char is :"+i); } } The second way: 1. If an intege ...

Posted by achilles on Sat, 23 Oct 2021 20:42:57 -0700

[C language] ☀️ Dynamic memory management and related functions

catalogue 1, Why is there dynamic memory allocation 2, Dynamic memory function   malloc and free calloc realloc 1, Why is there dynamic memory allocation   There are two ways to open up space we have learned before: int main() { int a = 5; char ch = 'b'; int arr[20] = { 0 }; } The above ways of developing memory are tha ...

Posted by r.smitherton on Fri, 22 Oct 2021 20:10:50 -0700

Encapsulation of MyBatis output results

Encapsulate MyBatis   Output results resultType Resulttype: execute sql to get the type of ResultSet conversion, using the fully qualified name or alias of the type. Note that if a collection is returned, it should be set to the type contained in the collection, not the collection itself. resultType    And resu   ltMap can ...

Posted by n00854180t on Wed, 20 Oct 2021 22:10:00 -0700

Python handles Excel and learns these 14 methods to reduce the workload by more than half!

In the age of python, you have to learn some Python in finance, personnel, administration and other posts, which is easy and brain-saving! All operations are automatically implemented in Python, overtime? It doesn't exist! In fact, excel and python are both tools. We don't need to compare them and study which is easy to use. excel, as the most ...

Posted by z1haze on Sat, 16 Oct 2021 00:05:59 -0700

java determines whether a single linked list is a palindrome linked list

To judge whether a linked list is a palindrome linked list, you can use the stack or the speed pointer These are the codes sorted out according to Zuo Chengyun's algorithm course 1. With the help of stack structure, the feature of first in and last out Traverse the linked list and put it on the stack at one time, then traverse the linked list ...

Posted by james_kirk on Wed, 13 Oct 2021 10:25:33 -0700

Analysis and practice of sysbench principle

Sysbench is a popular testing tool. It is mainly used to test the performance of fileio, cpu, memory, threads, mutex, etc., but the most important thing is to test the performance of databases. It is often used to test MySQL, Drizzle, AttachSQL, Oracle, PostgreSQL and other related databases. It can also be extended to support other databases a ...

Posted by Chris Mayo on Wed, 13 Oct 2021 06:31:59 -0700

leetcode brush record day019:384 and 198

384. Medium difficulty: Method 1: Violence: time complexity O(n^2) space complexity O(n) Topic meaning: the topic requires us to implement a constructor and two methods of the Solution class 1. Solution(int[] nums) initializes the object with an integer array nums // Title passed in array nums public Solution(int[] nums) { // Array and n ...

Posted by DJTim666 on Thu, 07 Oct 2021 13:41:41 -0700

Acwing - 131. The largest rectangle in the histogram

131. The largest rectangle in the histogram - AcWing question bank Title Description tag: monotone stack A histogram is a polygon consisting of a series of rectangles aligned at a common baseline. Rectangles have equal widths, but can have different heights. For example, the left side of the legend shows a histogram composed of rect ...

Posted by coelex on Fri, 01 Oct 2021 12:02:00 -0700

Common class libraries for Python knowledge points

1. What is a time tuple? The processing time of 9 sets of numbers assembled by many Python functions in one meta: \ \ The above is struct_time tuple. This structure has the following properties: \ 2. Use datetime to get today's date and the date N days before Q: how do I get today's date in Python? How to get the date of the previous ...

Posted by JTapp on Sat, 25 Sep 2021 00:44:11 -0700

[C language] super detailed explanation ☀️ What kind of needle is the pointer? (solve the pointer problem at one time) (advanced level of pointer)

What is the needle in front? This article has written the basic knowledge of pointers, and then through this article to have a deeper understanding of pointers catalogue   1, Character pointer   2, Pointer array 3, Array pointer Array name and & array name Use of array pointers 4, Function pointer Function address Funct ...

Posted by danwatt on Fri, 24 Sep 2021 16:49:02 -0700