After reading these few pictures, ensure you understand the cycle, recursion, binary search

Click over " against the front started to write ", select the "star"

We together "look."

 

Author: programming school

Source: http: //codingpy.com

Finishing: Jun Unread

 

For data structures, has always been most people's short board, is not not learn, but easy to forget, then there is a very vivid explanation, we suddenly remember it? The answer is yes.

 

Gif Figure 10 below this we want to make to the cycle, recursion, binary search deeper understanding.

 

 

A circulation

 

GIF 1: The easiest while loop

 

 

 

GIF 2: band if / else loop

 

 

Second, recursive

 

: GIF 3 direct demonstration of the concept of recursion

 

GIF 4: Code Example recursion

 

 

 

GIF 5: recursion Fibonacci number

 

 

GIF 6: recursive factorial

 

 

 

 

Third, and passed by value is passed by reference

 

GIF 7: the difference between pass by value and pass by reference

 

 

 

Fourth, a binary search and retrieval linear

 

GIF 8: position 23 linear search and binary search request

 

 

 

GIF 9: position of a linear search and binary search request

 

 

GIF 10: a binary search tree

 

 

 

Sweep the  concerns of my public number

 

Programming experience, technology transition

Learning the second sideline

Guess you like

Origin www.cnblogs.com/codexs/p/11184915.html