There is a set of data with a value greater than or equal to 12. the number of data items is not certain. if you want to display 12 data entries every six minutes, you need to fill in the number when it is not enough. what is the general idea? Help !!!!!

Source: Internet
Author: User
For example, if there are 15 arrays, 0-11 for the first time, 1-12 for the second time, 2-13 for the third time, and 3-14 for the fourth time, take 4-14 for the fifth time, and 5-0 for the fifth time (because there are only 15 digits, less than 12 digits are obtained from 5, so we need to use 0 as the complement), and so on, obtain the value once every six minutes. The approximate solution is as follows. for example, if the number of arrays is 15, the first value is 0-11, the second value is 1-12, and the third value is 2-13, take 3-14 for the fourth time, 4-14 for the fifth time, and 5-0 for the fifth time (because there are only 15, less than 12 for the fifth time, so we need to replace the value with 0), and so on, take the value once every six minutes,

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.