First turn java essay (a) program = data structure + algorithm

Source: Internet
Author: User

When the university just learned to program, there is a very classic Word program = data structure + algorithm

There is a further understanding today.

Scene:

1. Current situation

(1) There is a ready-made packaged paging component that returns the result is Page. The type is: Page. Includes page paging information, data list Type.

(2) queried a list of data midresult. The type is list<map<string,object>>.

2. Desired Results

Now you want to process the page Midresult two result set. Returns the Page.

3, Solve the problem

The first thing to tangle with is what type of data is used to store it. With list or map<string,object> or list<map<string,object>>. At this point, the data structure is Used.

The traversal processes two sets, which can also be said to be algorithms.

4. Summary

In this way, it becomes perfect to withdraw the program = data structure + ALGORITHM.

Finally: self-thought program = data structure + algorithm is the essence of the realization of local functions! yeah!

First turn java essay (a) program = data structure + algorithm

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.