D
D
Dmitry Belman2016-03-18 22:35:23
Algorithms
Dmitry Belman, 2016-03-18 22:35:23

How to implement the desired persistent data structure?

I need to create an array, any element of which can be changed, thus obtaining a new (next) version of the array with the ability to access the first one. I got acquainted with the known persistent data structures, and from the height of my flight it seems to me that none of the main ones (persistent stack, queue and deque) is suitable. I write in Java.
Please tell me how this can be done

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2016-03-18
@all_bcs_of_you

ImmutableList

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question