Category : algorithm

What is recursion? Wikipedia gives the following definition: The programming skill of program calling itself is called recursion. Recursion is widely used in programming languages as an algorithm. The above statement is slightly official. In short, recursion is calling itself, but this call has certain conditions, such as: The subproblem must be the same as ..

Read more

subject Title descriptionEveryone knows the Fibonacci sequence. Now you are required to enter an integer n. Please output the n-th term of the Fibonacci sequence (starting from 0, the 0-th term is 0). Basic idea This problem is actually treated as a counterexample of recursion in the sword-like offer. The essence of recursion is that ..

Read more

Project address:Link descriptionProject description:https://segmentfault.com/a/1190000005968734 About the usage and introduction of the project, you can see the above two links. The main content of this article is rightfilemap.jsThe paper analyzes the code step by step and introduces its operation principle and optimization strategy in detail. Preparation of knowledge points: NodeJSThe basic method of use (mainlyfsFile system); ..

Read more