The inner winding road of thirteen

Algorithm learning Chapter 1 Palindrome number Difficulty: simple Title: Give you an integer X. if x is a palindrome integer, return true; Otherwise, false is returned. Palindromes are integers whose positive (left to right) and reverse (right to left) reads are the same. For example, 121 is a palindrome, not 123. Idea: First convert an int ...

Added by Youko on Sun, 19 Dec 2021 22:12:21 +0200

Universal search - 2 Save xiaoha

2. Save xiaoha Task: The maze consists of n rows and m columns of cells (n and m are less than or equal to 50), and each cell is either an open space or an obstacle. The task is to help Xiao hum find the shortest path from the beginning of the maze to Xiao ha's location. Pay attention to the obstacles. Of course, Xiao hum can't go out of the ...

Added by MikeFairbrother on Sun, 19 Dec 2021 21:50:42 +0200

895. Maximum frequency stack

Problem Description The maximum frequency stack implements FreqStack, a class that simulates operations similar to the stack's data structure. FreqStack has two functions: push(int x), pushing the integer x onto the stack. pop(), which removes and returns the most frequent elements in the stack. If more than one element is most frequent ...

Added by Blesbok on Sun, 19 Dec 2021 20:18:34 +0200

Python mathematical modeling series: differential equations

preface Hello! buddy! Thank you very much for reading Haihong's article. If there are mistakes in the article, you are welcome to point out ~   Self introduction ˊ ᵕ ˋ) ੭ Nickname: Hai Hong Label: program ape | C + + player | student Introduction: I got acquainted with programming in C language and then transferred to computer major. ...

Added by johnnyblaze1980 on Sun, 19 Dec 2021 19:33:37 +0200

① Complete collection of classic algorithms in C language ★ (recommended Collection) √

① Complete collection of classic algorithms in C language (recommended Collection) 👈 one 💜 Tower of Hanoi explain The towers of Hanoi was brought to France by French M.Claus(Lucas) from Thailand in 1883. Hanoi was the capital of North Vietnam during the Vietnam War, which is now Ho Chi Minh City; In 1883, the French mathematician ...

Added by mightymouse on Sun, 19 Dec 2021 18:56:04 +0200

JavaScript data structure and algorithm

JavaScript data structure and algorithm (Part 2) In the last article, we learned a lot of data structures, including stack, queue, dictionary, linked list and so on. I hope you can absorb them one by one and we will make progress together. In this article, we will explore the mysteries of trees and graphs, and I will introduce several algorith ...

Added by zypher11 on Sun, 19 Dec 2021 17:50:43 +0200

Comprehensive graphic quick sort

Write before: Hello, I'm time. What we bring today is the quick sort in the sorting algorithm. I explained it graphically and tried to write it thoroughly. Don't say much, let's go! Mind map: 1. Quick sort concept The records to be arranged are separated into two independent parts by one-time sorting. If the keywords of one part of ...

Added by StewardManscat on Sun, 19 Dec 2021 16:37:36 +0200

Byte 8.29 written test replay (in question recall)

Byte 8.29 written test replay (in question recall) Question 1 natural numbers a and b Simple topic meaning Give the number a and B, and then give a number + 1 in the first round, a number + 2 in the second round, and a number + i in the i round. You can choose which number to add in each round. Ask you to become the same minimum number of ro ...

Added by gwolff2005 on Sun, 19 Dec 2021 15:49:49 +0200

"kuangbin takes you to fly" special program - special topic 16 KMP & extended KMP & Manacher

preface Personal summary: String Learning & summary (mainly the summary template) I haven't painted the topic for a long time. I regret not sticking to it. Now, brush the string & Computational Geometry & DP. For others, such as number theory and graph theory, it's ok to be familiar with that very basic algorithm.Thematic port ...

Added by premracer on Sun, 19 Dec 2021 15:35:02 +0200

[face recognition] realize smile recognition based on HOG feature and SVM algorithm

1, HOG feature extraction principle    HOG feature extraction process can be divided into five parts: detection window, normalized image, calculating gradient, statistical histogram, normalization of gradient histogram, and obtaining HOG feature vector. Detection window:    HOG divides the image through window and blo ...

Added by sullyman on Sun, 19 Dec 2021 13:11:19 +0200