Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a data structure like stream, but weak?

Tags:

list

stream

scala

Weak as in weak references. Basically, I need a sequence of numbers where some of them can be unallocated when they aren't needed anymore.

like image 772
Anonymous Avatar asked Mar 27 '11 18:03

Anonymous


People also ask

Why is DSA so hard?

1. Lack of continuous learning: Learning programming requires a growth plan where students should acquire basic skills before going to an advanced level. Students often get trapped in complex examples and the dependencies of topics.

Can I master DSA in 3 months?

Usually, it takes 2-3 months to learn the basics and then a rigorous, six months regular practice of questions to master data structures and algorithms.

What is the easiest data structure?

Arrays. The first in our list of basic data structures is one of the simplest data structures. An array is a fixed-size structure that stores multiple items of the same kind of data sequentially. An array contains the same but fixed-size data type elements (also known as variables).

Which is the hardest data structure to learn?

From a structural perspective, I would say Graphs. We know so much mathematically about all the simpler structures: trees, lists, etc.


1 Answers

scalaz.EphemeralStream is what you want.

like image 106
Apocalisp Avatar answered Oct 03 '22 06:10

Apocalisp