Jump to content

Recommended Posts

Posted

if I have a list, lets say of months, or years or weeks...

 

What is the best way to validate that the list is sequential?

 

Example, lets assume a list contains month numbers.

 

10

9

8

5

4

3

 

I can ignore 12 and 11 since*10 is the top most value, and I can ignore 2 and 1 since 3 is the bottom most value.

 

but I want to insert the missing between values of 7 and 6, because there a values above and below it.

 

I have a way of accomplishing this, by looping a few times through the list, but it doesn't seem very intuitive or efficient.

 

any thoughts?

 

 

More...

 

View All Our Microsft Related Feeds

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...