c++/java/go data structure and algorithm dynamic array

Original address Array Basic concepts It is a data structure composed of a collection of elements of the same type, which allocates a continuous piece of memory for storageThe storage address corresponding to the element can be calculated by using the index of the element Basic use of c + + array #include <iostream> #include <ve ...

Added by aleigh on Sat, 05 Mar 2022 16:02:10 +0200

JavaScript quick start

catalogue 1, What is JavaScript II. JavaScript quick start 2.1 introduction of JavaScript 2.2 introduction to basic grammar 2.3 quick browsing of data types 2.4 strict inspection mode 1, What is JavaScript JavaScript is the most popular scripting language on the InternetInterpreted or just in time compiled languageThe standard for Ja ...

Added by kbrij on Sat, 05 Mar 2022 15:28:34 +0200

LeetCode-53 - Maximum subarray sum - Simple (greedy / divide and conquer)

preface In fact, the official also provides a method of dynamic planning. I'll make it up when I'm free (cry) One topic Give you an integer array nums. Please find a continuous sub array with the largest sum (the sub array contains at least one element) and return its maximum sum. A subarray is a contiguous part of an array. II. Examples an ...

Added by helbom on Sat, 05 Mar 2022 15:27:47 +0200

Flutter common components

Slider assembly It's a slider component that can slide. You know what I mean! This is the original look: Slider(value: 0, onChanged: (value) {}), This is the styled Slider: class _SliderDemoState extends State<SliderDemo> { // Set the callback value to zero, and each drag will change this value double _value = 0; @override Wi ...

Added by Griffin on Sat, 05 Mar 2022 15:22:04 +0200

STM32 timer input capture

STM32 timer input capture STM32F429 is used as a timer to capture the PWM waveform, and the cycle, frequency, duty cycle and forward pulse width of the waveform are measured. Basic principles The input acquisition of timer is mainly to measure the frequency, pulse width, duty cycle and other information of input signal. You need to understa ...

Added by astarmathsandphysics on Sat, 05 Mar 2022 15:10:37 +0200

Mining Linux kernel vulnerabilities in web Security

1, Brief description Syzkaller is a kernel fuzzy testing tool developed by Google. In short, it automatically inputs various effective, invalid and completely randomized parameter data to the kernel, and observes the operation status of the kernel, whether there are panic, memory leakage and other problems, so as to discover the vulnerabilitie ...

Added by majik_sheff on Sat, 05 Mar 2022 14:59:12 +0200

Optional air judgment operation manual

We programmers do a lot of null value checking. Although sometimes this kind of inspection is completely unnecessary, we are used to routine. Finally, Java 8 couldn't stand it anymore, so we introduced Optional so that the code we wrote was no longer so mean and inflexible. Pull the name of a member from the database according to the member ID, ...

Added by akshay on Sat, 05 Mar 2022 14:56:12 +0200

Blue Bridge Cup training

Catalogue 1. 2. 3.  4.  5. 1. Title Description Before the popularization of electronic computers, people often used a rough method to check whether the four operations were correct. For example: 248 * 15 = 3720 Sum the multiplier and the multiplicand bit by bit respectively. If it is a multi digit number, sum it bit by bit until i ...

Added by jscruggs on Sat, 05 Mar 2022 14:40:00 +0200

Linked list - learning notes

catalogue Knowledge points: Code template summary: Question: reference: Knowledge points: Linked list: a linear structure in which pointers are connected in series. Each node contains a pointer field and a data field. Type: single linked list (each node points to the next node), double linked list (each node refers to the forward node ...

Added by henryblake1979 on Sat, 05 Mar 2022 14:24:20 +0200

Day code 300 lines learning notes Day 10

1. Integrated task I Task content: Students' scores are stored in a matrix, where rows represent students and lists show subjects. For example, the 0 th line of Chinese and English indicates the student's score. Task requirements: 1. Random generation of student scores, with an interval of [50, 100]. 2. Find the best and worst students. Howe ...

Added by robburne on Sat, 05 Mar 2022 14:13:55 +0200