Using classes to represent structured data in Matlab
Catalogue
Using classes to represent structured data
Object as data structure
Data structure
TensileData class
Create an instance and assign it to data
Restrict attributes to specific values
Simplify interfaces with constructors
On demand calculation data
Display TensileData object
Method of drawing stress versus strain diagram
Tensi ...
Added by sticks464 on Tue, 01 Mar 2022 04:04:43 +0200
Leetcode6: zigzag transformation (medium, displacement processing)
catalogue
1. Title Description
2. Problem solving analysis
2.1 solution 1: two dimensional matrix simulation
2.2 solution 2: directly calculate the address
3. Code implementation
1. Title Description
A given string s is arranged in a Z-shape from top to bottom and from left to right according to the given number of lines numRows. For ...
Added by priya_cks on Tue, 01 Mar 2022 02:45:11 +0200
Chapter 5 sorting and paging
1, Sort
1.1 sorting rules
Sort using ORDER BY clause
ASC (ascend): ascendingDESC (descend): descending order
The ORDER BY clause is at the end of the SELECT statement
1.2 single column sorting
Example 1:
mysql> SELECT last_name, job_id, department_id, hire_date FROM employees ORDER BY hire_date;
+-------------+------------+------- ...
Added by w3evolutions on Mon, 28 Feb 2022 14:30:46 +0200
LeetCode brush notes binary tree path sum
112 path sum
Given a binary tree root and a value sum, judge whether there is a path where the sum of node values from the root node to the leaf node is equal to sum.
Enter a binary tree and a given integer, and output a Boolean value to indicate whether there are paths that meet the conditions.
Input: root = [5,4,8,11, null, 13,4,7,2, nu ...
Added by kat89 on Mon, 28 Feb 2022 14:18:07 +0200
Chapter 1 basic algorithm ACwing
Chapter I basic algorithm (I)
1, Content overview
Master the main ideas and have a deep understanding
Understand and memorize the code template (master the idea)
Template topic exercise
Understanding + memory
1. Sorting:
Quick rowMerge sort
2. Two points
Integer dichotomyFloating point binary
2, Quick sort
The main idea of ...
Added by orbitalnets on Mon, 28 Feb 2022 14:09:13 +0200
Binary tree level traversal: two-dimensional array output
Title Link: https://www.nowcoder.com/study/live/716/5/17
Given a binary tree, return the sequence traversal result of the binary tree (traversing layer by layer from left to right) For example: The given binary tree is {3,9,20, #, #, 15,7},
The result of the binary tree sequence traversal is [ [3], [9,20], [15,7]
]
Tips: 0 < = node numb ...
Added by MachineHead933 on Mon, 28 Feb 2022 10:02:39 +0200
Algorithm / sliding window
Sliding windows are divided into two types: unfixed window size and fixed window size: (commonly used when looking for substrings that meet certain requirements)
1) Unfixed window size: the window size will change. When the current window does not meet the requirements, it will move backward as a whole.
2) Fixed window size: the window size i ...
Added by gavin1996 on Mon, 28 Feb 2022 09:30:33 +0200
New solution of sequence query
New solution of sequence query
Topic background
The previous question "sequence query" said: A=[A0,A1,A2 ···, An] is a sequence composed of n+1 integers in the range of [0,N], which satisfies 0 = A0 < A1 < A2 < ·· < An < n. Based on sequence a, for any integer x within the range ...
Added by Eggzorcist on Mon, 28 Feb 2022 09:05:33 +0200
Leetcode 1601: the maximum number of building change requests that can be reached (diffcult)
catalogue
1. Title Description
2. Problem solving analysis
3. Code implementation
1. Title Description
We have n buildings, numbered from 0 to n - 1. There are several employees in each building. As it is the season to change buildings, some employees want to live in another building. Give you an array of requests, where requests[i] = [ ...
Added by optimiss on Mon, 28 Feb 2022 02:47:04 +0200
[true question 3 of blue bridge] the reform of blue bridge becomes difficult. If you want to enter the national competition, you can't lack any of these abilities
⭐ Introduction ⭐ ️
Hello, I'm Zhijie. There is only one month left for the countdown of the provincial competition of the Blue Bridge Cup. If you have practiced the real problem for nearly seven or eight years, you can obviously feel that the difficulty of the Blue Bridge Cup is becoming more and more difficult. Although it is far from being ...
Added by airdee on Mon, 28 Feb 2022 02:39:12 +0200