20 paths array for folders looped with even odd sub folder

Asked By 0 points N/A Posted on -
qa-featured

I have a set of fifty folders of which I want to loop each number with an even odd sub folder.

I have already figured out the Zipping part. What is left to do is the provision of the directory paths for the delivery files.

My aim is to accomplish the storage in a 20 paths array.

Is there anybody here who can assist?

I will appreciate.

SHARE
Answered By 55 points N/A #109116

20 paths array for folders looped with even odd sub folder

qa-featured

For a 20 path array you can use a doubly circular concept for it.

But in this case there must be a bit of a confusion because it will include 40 folders out of 50 if you use the 20 path array.

  • 1 path from an array contains 2 folders. 1 for which it is defined and the address of the other path. So every path has 2 folders technically.
  • But there is a mess of about 10 folders that how to address them. You can either change the size of the path array to 25 and then accommodate 2 in each so it makes a total of 50.
  • This is a linked list approach. You can also use a Doubly instead of Doubly circular, the only difference is that the doubly circular contains the address of the first folder in its last path array.

Related Questions