For data structure, has always been the short board of most people, not can’t learn, but easy to forget, so is there a very vivid explanation, let us remember it all of a sudden? The answer is yes.
The following 10 giFs will hopefully give you a deeper understanding of circular, recursive, binary search.
A, circulation
GIF 1: Simplest while loop
GIF 2: loop with if/else
Second, the recursion
GIF 3: A direct demonstration of recursive concepts
GIF 4: Code example of recursion
GIF 5: Recursive Fibonacci sequence
GIF 6: Recursive factorial
Public number inverse front start pen focus on sharing Java, Python, front-end, large field work experience, career development and other dry goods, pay attention to send small series finishing boutique programming video tutorial; Every day at 14:40 PM, every programmer should pay attention to the technology platform.
Pass by value and pass by reference
GIF 7: The difference between passing by value and passing by reference
Linear and dichotomous retrieval
GIF 8: Linear and binary search for the position of 23
GIF 9: Linear and binary search for the position of 1
GIF 10: Binary search tree
Public number inverse front start pen focus on sharing Java, Python, front-end, large field work experience, career development and other dry goods, pay attention to send small series finishing boutique programming video tutorial; Every day at 14:40 PM, every programmer should pay attention to the technology platform.